/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void spfa()':
/in/foo.cc:22:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<e1[now].size();i++){
               ~^~~~~~~~~~~~~~~
/in/foo.cc:27:23: warning: value computed is not used [-Wunused-value]
      flag3[e1[now][i]]==1;
      ~~~~~~~~~~~~~~~~~^~~
/in/foo.cc: In function 'void dfs1(int)':
/in/foo.cc:36:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<e2[pos].size() ;i++){
              ~^~~~~~~~~~~~~~~
/in/foo.cc:37:42: error: 'dfs' was not declared in this scope
   if(flag1[e2[pos][i]]==0) dfs(e2[pos][i]);
                                          ^
/in/foo.cc: In function 'void dfs2(int)':
/in/foo.cc:42:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<e1[pos].size() ;i++){
              ~^~~~~~~~~~~~~~~
/in/foo.cc:43:42: error: 'dfs' was not declared in this scope
   if(flag4[e1[pos][i]]==0) dfs(e1[pos][i]);
                                          ^
/in/foo.cc: In function 'void bfs()':
/in/foo.cc:51:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int j=0;j<e1[i].size() ;j++){
                ~^~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:69:7: error: 'dfs' was not declared in this scope
  dfs(t);
       ^

信息

递交者
类型
递交
题目
P1909 寻找道路
语言
C++
递交时间
2018-09-12 22:10:38
评测时间
2018-09-12 22:10:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes