记录详情

Compile Error

foo.c: In function 'main':
foo.c:10:15: error: stray '\357' in program
     for(k=0;k<(n-1);k++)
               ^
foo.c:10:16: error: stray '\274' in program
     for(k=0;k<(n-1);k++)
                ^
foo.c:10:17: error: stray '\210' in program
     for(k=0;k<(n-1);k++)
                 ^
foo.c:10:21: error: expected ';' before ')' token
     for(k=0;k<(n-1);k++)
                     ^
foo.c:10:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(k=0;k<(n-1);k++)
     ^~~
foo.c:10:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
     for(k=0;k<(n-1);k++)
                       ^
foo.c:10:26: error: expected ';' before ')' token
     for(k=0;k<(n-1);k++)
                          ^
foo.c:10:26: error: expected statement before ')' token
foo.c:7:7: warning: unused variable 'a' [-Wunused-variable]
   int a=j;
       ^
foo.c:6:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&j);
   ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1029 比比谁更小
语言
C
递交时间
2021-11-30 14:42:49
评测时间
2021-11-30 14:42:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes