/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:11:20: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
         scanf("%d %d",&w[i]);
                   ~^
foo.c:15:20: error: 'c' undeclared (first use in this function)
     for(j=sum/2;j>=c[i];j--)
                    ^
foo.c:15:20: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&m);
     ^~~~~~~~~~~~~~
foo.c:11:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d %d",&w[i]);
         ^~~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1153 猫狗大战
语言
C
递交时间
2021-04-11 21:04:53
评测时间
2021-04-11 21:04:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes