/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'void init()':
foo.cpp:43:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if(m<adj[1].size()) {printf("-1"); exit(0); }
      ^
foo.cpp:49:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0,v,w;i<adj[now].size();++i,++c) {
                    ^
foo.cpp: In function 'bool check(ll)':
foo.cpp:83:10: error: 'dfs' was not declared in this scope
  if(dfs(1)) return true;
          ^
foo.cpp:86:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0,v;i<adj[1].size();++i) {
                  ^
foo.cpp: In function 'bool dfs(int)':
foo.cpp:110:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0,v;i<adj[u].size();++i) {
                 ^
foo.cpp: In function 'int main()':
foo.cpp:126:17: warning: unknown conversion type character 'l' in format [-Wformat=]
  printf("%lld",R);
                 ^
foo.cpp:126:17: warning: too many arguments for format [-Wformat-extra-args]
foo.cpp: In function 'bool check(ll)':
foo.cpp:104:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P1783 疫情控制
语言
C++
递交时间
2015-10-19 14:10:53
评测时间
2015-10-19 14:10:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes