/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'void Init()':
foo.cpp:19:27: warning: unknown conversion type character 'l' in format [-Wformat=]
  scanf("%d%d%lld",&n,&m,&S);
                           ^
foo.cpp:19:27: warning: too many arguments for format [-Wformat-extra-args]
foo.cpp: In function 'void slove()':
foo.cpp:5:19: warning: left shift count >= width of type [enabled by default]
 #define INF 1<<64-1
                   ^
foo.cpp:28:6: note: in expansion of macro 'INF'
  ans=INF;
      ^
foo.cpp:5:14: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
 #define INF 1<<64-1
              ^
foo.cpp:28:6: note: in expansion of macro 'INF'
  ans=INF;
      ^
foo.cpp:49:21: warning: unknown conversion type character 'l' in format [-Wformat=]
  printf("%lld\n",ans);
                     ^
foo.cpp:49:21: warning: too many arguments for format [-Wformat-extra-args]
foo.cpp: In function 'int main()':
foo.cpp:53:7: error: 'init' was not declared in this scope
  init();
       ^

信息

递交者
类型
递交
题目
P1740 聪明的质检员
语言
C++
递交时间
2014-10-16 14:01:07
评测时间
2014-10-16 14:01:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes