记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:13: error: redefinition of 'c'
    5 |         int c=a;
      |             ^
foo.c:3:21: note: previous definition of 'c' with type 'int'
    3 |         int a=0,b=0,c=0;
      |                     ^
foo.c:7:10: warning: statement with no effect [-Wunused-value]
    7 |         a/10;
      |         ~^~~
foo.c:13:32: error: expected ';' before ':' token
   13 |                 for(int m=0;m<i:m++){
      |                                ^
      |                                ;
foo.c:17:20: error: expected ';' before '}' token
   17 |                 a=c
      |                    ^
      |                    ;
   18 |         }
      |         ~           
foo.c:20:22: error: subscripted value is neither array nor pointer nor vector
   20 |                 c=c+a[i];
      |                      ^
foo.c:10:13: warning: variable 'n' set but not used [-Wunused-but-set-variable]
   10 |         int n[b];
      |             ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
A4-1 回文数专题:数字之和
语言
C
递交时间
2023-09-23 20:59:21
评测时间
2023-09-23 20:59:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes