记录详情

Compile Error

/in/foo.cc: In function 'void kp(int, int)':
/in/foo.cc:7:11: warning: unused variable 'e' [-Wunused-variable]
 int b,c,d,e;
           ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:25:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
 scanf("%d%d",&n,&m);
                   ^
/in/foo.cc:25:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc:29:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
 scanf("%d",&a[i]);
                 ^
/in/foo.cc:37:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
 printf("%d", sum);
                 ^
/in/foo.cc:40:1: error: expected ';' before 'return'
 return 0;
 ^~~~~~

信息

递交者
类型
递交
题目
排队打水
题目数据
下载
语言
C++
递交时间
2019-01-27 10:46:04
评测时间
2019-01-27 10:46:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes