/ Vijos /

记录详情

Compile Error

/in/foo.cc:7:24: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define ALL_P MAXM*MAXP+MAXN
                        ^
/in/foo.cc:18:7: note: in expansion of macro 'ALL_P'
 }edge[ALL_P*MAXN<<1];
       ^~~~~
/in/foo.cc: In function 'int SPFA(int&, int&)':
/in/foo.cc:52:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<dir[t].size();i++)
                     ~^~~~~~~~~~~~~~
/in/foo.cc:84:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if(y)
         ^~
/in/foo.cc:85:17: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
             y++;x++;
                 ^
/in/foo.cc:72:17: warning: variable 'z' set but not used [-Wunused-but-set-variable]
         int x,y,z;
                 ^
/in/foo.cc: At global scope:
/in/foo.cc:94:5: error: expected unqualified-id before 'return'
     return 0;
     ^~~~~~
/in/foo.cc:95:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1726 美食节
语言
C++
递交时间
2018-03-28 16:14:21
评测时间
2018-03-28 16:14:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes