记录详情

Compile Error

foo.cc:27:10: error: stray '\357' in program
   27 |   if(a!=e)
      |          ^
foo.cc:27:11: error: stray '\274' in program
   27 |   if(a!=e)
      |           ^
foo.cc:27:12: error: stray '\211' in program
   27 |   if(a!=e)
      |            ^
foo.cc: In function 'int main()':
foo.cc:9:2: error: 'd' was not declared in this scope
    9 |  d=c*10+b;
      |  ^
foo.cc:10:2: error: 'e' was not declared in this scope
   10 |  e=a+d;
      |  ^
foo.cc:12:7: warning: unused variable 'f' [-Wunused-variable]
   12 |   int f=e;
      |       ^
foo.cc:14:7: warning: unused variable 'f' [-Wunused-variable]
   14 |   int f=e/10;
      |       ^
foo.cc:13:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   13 |  else if(e>=10&&e<100)
      |       ^~
foo.cc:15:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   15 |   int g=e%10;
      |   ^~~
foo.cc:16:2: error: 'else' without a previous 'if'
   16 |  else if(e>=100&&e<1000)
      |  ^~~~
foo.cc:17:7: warning: unused variable 'f' [-Wunused-variable]
   17 |   int f=e/100;
      |       ^
foo.cc:16:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   16 |  else if(e>=100&&e<1000)
      |       ^~
foo.cc:18:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   18 |   int g=e%100/10;
      |   ^~~
foo.cc:18:7: error: redeclaration of 'int g'
   18 |   int g=e%100/10;
      |       ^
foo.cc:15:7: note: 'int g' previously declared here
   15 |   int g=e%10;
      |       ^
foo.cc:20:2: error: 'else' without a previous 'if'
   20 |  else if(e>=1000&&e<10000)
      |  ^~~~
foo.cc:21:7: warning: unused variable 'f' [-Wunused-variable]
   21 |   int f=e/1000;
      |       ^
foo.cc:20:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   20 |  else if(e>=1000&&e<10000)
      |       ^~
foo.cc:22:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   22 |   int g=e%1000/100;
      |   ^~~
foo.cc:22:7: error: redeclaration of 'int g'
   22 |   int g=e%1000/100;
      |       ^
foo.cc:15:7: note: 'int g' previously declared here
   15 |   int g=e%10;
      |       ^
foo.cc:23:7: error: redeclaration of 'int h'
   23 |   int h=e%100/10;
      |       ^
foo.cc:19:7: note: 'int h' previously declared here
   19 |   int h=e%10;
      |       ^
foo.cc:27:6: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
   27 |   if(a!=e)
      |      ^
foo.cc:29:6: error: expected ')' before '}' token
   29 |   j++
      |      ^
      |      )
   30 |   }
      |   ~   
foo.cc:27:5: note: to match this '('
   27 |   if(a!=e)
      |     ^
foo.cc:30:3: error: expected primary-expression before '}' token
   30 |   }
      |   ^
foo.cc:15:7: warning: unused variable 'g' [-Wunused-variable]
   15 |   int g=e%10;
      |       ^
foo.cc:19:7: warning: unused variable 'h' [-Wunused-variable]
   19 |   int h=e%10;
      |       ^
foo.cc:24:7: warning: unused variable 'i' [-Wunused-variable]
   24 |   int i=e%10;
      |       ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1134 回文数
语言
C++
递交时间
2022-08-02 15:48:13
评测时间
2022-08-02 15:48:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes