记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:12:5: error: expected ',' or ';' before 'for'
     for (i = 0; i < n; i++) {
     ^~~
/in/foo.c:12:19: warning: statement with no effect [-Wunused-value]
     for (i = 0; i < n; i++) {
                 ~~^~~
/in/foo.c:12:27: error: expected ';' before ')' token
     for (i = 0; i < n; i++) {
                           ^
/in/foo.c:12:27: error: expected statement before ')' token
/in/foo.c:14:5: error: expected ';' before '}' token
     }
     ^
/in/foo.c:16:2: error: expected ';' before 'sum'
  sum=a*result
  ^~~
/in/foo.c:4:18: warning: unused variable 'sum' [-Wunused-variable]
     int a, n, i, sum;
                  ^~~

信息

递交者
类型
自测
语言
C
递交时间
2024-11-22 16:21:21
评测时间
2024-11-22 16:21:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes