/ JoyAc /

记录详情

Compile Error

/in/foo.cc: In function 'bool ishuiwen(std::__cxx11::string)':
/in/foo.cc:11:7: error: 's' was not declared in this scope
    if(s==b)return ture;
       ^
/in/foo.cc:11:19: error: 'ture' was not declared in this scope
    if(s==b)return ture;
                   ^~~~
/in/foo.cc: In function 'std::__cxx11::string add(int, std::__cxx11::string)':
/in/foo.cc:19:13: error: 'maxn' was not declared in this scope
    int numa[maxn],numb[maxn],numc[maxn];
             ^~~~
/in/foo.cc:24:22: error: 'numa' was not declared in this scope
   if (isdigit(a[i])) numa[len-i] = a[i] - '0'; //对于十六进制的特判,如果是数字减去 0 ,下同
                      ^~~~
/in/foo.cc:25:8: error: 'numa' was not declared in this scope
   else numa[len-i] = a[i] - 'A' + 10; //如果不是数字减去 A 再加上 10
        ^~~~
/in/foo.cc:26:22: error: 'numb' was not declared in this scope
   if (isdigit(b[i])) numb[len-i] = b[i] - '0';
                      ^~~~
/in/foo.cc:27:8: error: 'numb' was not declared in this scope
   else numb[len-i] = b[i] - 'A' + 10;
        ^~~~
/in/foo.cc:31:3: error: 'numc' was not declared in this scope
   numc[lenc] = numa[lenc] + numb[lenc] + x;
   ^~~~
/in/foo.cc:31:16: error: 'numa' was not declared in this scope
   numc[lenc] = numa[lenc] + numb[lenc] + x;
                ^~~~
/in/foo.cc:31:29: error: 'numb' was not declared in this scope
   numc[lenc] = numa[lenc] + numb[lenc] + x;
                             ^~~~
/in/foo.cc:36:2: error: 'numc' was not declared in this scope
  numc[lenc] = x;
  ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:48:13: error: 's' was not declared in this scope
  scanf("%s",s);
             ^
/in/foo.cc:49:18: error: 'strlen' was not declared in this scope
  int len=strlen(m);
                  ^
/in/foo.cc:49:6: warning: unused variable 'len' [-Wunused-variable]
  int len=strlen(m);
      ^~~

信息

递交者
类型
自测
题目
P1014 回文数
语言
C++
递交时间
2021-11-23 18:21:23
评测时间
2021-11-23 19:00:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes