/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:61:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
  scanf("%d%d%d",&n,&m,&s);
                         ^
foo.cpp:61:25: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
foo.cpp:61:25: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
foo.cpp:62:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  if(n==0){printf("%d\n",s);return 0}
                          ^
foo.cpp:62:36: error: expected ';' before '}' token
  if(n==0){printf("%d\n",s);return 0}
                                    ^
foo.cpp:64:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   scanf("%d%d",&w[i],&v[i]);
                           ^
foo.cpp:64:27: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
foo.cpp:68:33: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   scanf("%d%d",&q[i][1],&q[i][2]);
                                 ^
foo.cpp:68:33: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
foo.cpp:70:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d\n",com(z));
                      ^
foo.cpp:72:1: error: expected ';' before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1740 聪明的质检员
语言
C++
递交时间
2015-08-08 10:44:39
评测时间
2015-08-08 10:44:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes