/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:15:25: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'll* {aka long long int*}' [-Wformat=]
  scanf("%d%d%d",&n,&m,&s);
                         ^
foo.cpp:21:27: error: 'memset' was not declared in this scope
   memset(sum,0,sizeof(sum));
                           ^
foo.cpp:23:23: warning: unknown conversion type character 'l' in format [-Wformat=]
   printf("%lld : ",mid);
                       ^
foo.cpp:23:23: warning: too many arguments for format [-Wformat-extra-args]
foo.cpp:34:24: warning: unknown conversion type character 'l' in format [-Wformat=]
  printf("%lld",abs(t-s));
                        ^
foo.cpp:34:24: warning: too many arguments for format [-Wformat-extra-args]

信息

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