全部评论 20

  • 1。使用了未定义/未声明的标识符:

    useless_func_4(x)等函数在代码中确实有定义,但main函数使用了未在main之前声明的函数。

    2。宏定义可能导致语法错误:

    START_OF_PROGRAM do {和 END_OF_PROGRAM } while(0)宏可能导致main函数被错误展开。

    3.多个函数定义了相同的名字(虽然在不同参数类型下):

    多个useless_func_函数,虽然参数类型或数量不同,但在C++中可能因调用时的参数匹配问题导致重载解析失败。

    1周前 来自 湖南

    5
  • 666

    2026-03-01 来自 湖南

    2
  • 你这就随便写点函数充数罢了

    2026-02-28 来自 浙江

    2
  • asa

    1周前 来自 江西

    1
  • isuigfaidf

    2026-02-28 来自 北京

    1
  • /bangbangt

    2026-02-28 来自 广东

    1
  • 所以你前面写那么多干嘛?能用的代码就5行!

    20小时前 来自 浙江

    0
  • v

    昨天 来自 浙江

    0
  • #include<algorithm>
    #include<cassert>
    #include<cctype>
    #include<chrono>
    #include<climits>
    #include<cmath>
    #include<cstddef>
    #include<cstdint>
    #include<cstdio>
    #include<cstdlib>
    #include<cstring>
    #include<ctime>
    #include<exception>
    #include<fstream>
    #include<functional>
    #include<iomanip>
    #include<ios>
    #include<iostream>
    #include<istream>
    #include<iterator>
    #include<limits>
    #include<locale>
    #include<map>
    #include<memory>
    #include<mutex>
    #include<new>
    #include<numeric>
    #include<ostream>
    #include<queue>
    #include<random>
    #include<set>
    #include<sstream>
    #include<stack>
    #include<stdexcept>
    #include<string>
    #include<thread>
    #include<tuple>
    #include<type_traits>
    #include<typeinfo>
    #include<unordered_map>
    #include<unordered_set>
    #include<utility>
    #include<vector>
    #define ENABLE_VERBOSE_LOGGING 1
    #define ENABLE_TIMING 1
    #define ENABLE_THREAD_SAFETY 1
    #define USE_MULTITHREADING 0
    #define MAX_ITERATIONS 1
    #define START_OF_PROGRAM do {
    #define END_OF_PROGRAM } while(0)
    #define BEGIN_NAMESPACE namespace {
    #define END_NAMESPACE }
    #define UNUSED(x) ((void)(x))
    #define IGNORE_RETURN_VALUE(x) if (x) {}
    #define LIKELY(x) (__builtin_expect(!!(x), 1))
    #define UNLIKELY(x) (__builtin_expect(!!(x), 0))
    #define PROGRAM_NAME "A+B Solver"
    #define PROGRAM_VERSION "9.9.9"
    #define PROGRAM_AUTHOR "Dr. Overkill"
    #define PROGRAM_LICENSE "GPLv3+ with extra verbosity clause"
    using namespace std;
    int useless_func_1(int x) {
    return x + 1;
    }
    int useless_func_2(int x) {
    return x - 1;
    }
    int useless_func_3(int x) {
    return x * 2;
    }
    int useless_func_4(int x) {
    return x / 2;
    }
    int useless_func_5(int x) {
    return x % 3;
    }
    int useless_func_6(int x) {
    return x * x;
    }
    int useless_func_7(int x) {
    return x + x;
    }
    int useless_func_8(int x) {
    return x - x;
    }
    int useless_func_9(int x) {
    return x * 10;
    }
    int useless_func_10(int x) {
    return x / 10;
    }
    int useless_func_11(int x) {
    return x + 100;
    }
    int useless_func_12(int x) {
    return x - 100;
    }
    int useless_func_13(int x) {

    昨天 来自 浙江

    0
  • ok

    3天前 来自 浙江

    0
  • ok

    5天前 来自 浙江

    0
  • 这是啥题?编号是多少?

    1周前 来自 广东

    0
  • 前面一眼AI,后面才是真的逻辑

    1周前 来自 广东

    0
  • 2026-02-28 来自 广东

    0
  • 666

    2026-02-28 来自 广东

    0
  • 编译错误: /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function _start': (.text+0x24): undefined reference to main'
    collect2: error: ld returned 1 exit status

    2026-02-28 来自 浙江

    0
  • /bangbangt

    2026-02-28 来自 重庆

    0
  • 2026-02-28 来自 浙江

    0
  • 史上最长代码

    2026-02-28 来自 浙江

    0
  • 666

    2026-02-28 来自 浙江

    0
暂无数据

提交答案之后,这里将显示提交结果~

首页