记录详情

Compile Error

foo.c: In function 'main':
foo.c:11:3: error: expected ';' before 'for'
   for(n=1;n<=12;n++)
   ^~~
foo.c:5:24: warning: unused variable 'z' [-Wunused-variable]
   int n,c=0,s=0,flag=1,z;
                        ^
foo.c:5:17: warning: unused variable 'flag' [-Wunused-variable]
   int n,c=0,s=0,flag=1,z;
                 ^~~~
foo.c:5:13: warning: unused variable 's' [-Wunused-variable]
   int n,c=0,s=0,flag=1,z;
             ^
foo.c:5:9: warning: unused variable 'c' [-Wunused-variable]
   int n,c=0,s=0,flag=1,z;
         ^
foo.c:8:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&y[n]);
     ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1028 C程序设计综合练习题
语言
C
递交时间
2021-11-30 15:49:17
评测时间
2021-11-30 15:49:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes