/ new_bzoj /

记录详情

Compile Error

/in/foo.cc:68:1: error: expected '}' at end of input
 }
 ^
/in/foo.cc: In member function 'void node::add(int, int, int)':
/in/foo.cc:13:5: error: 'e' was not declared in this scope
     e[++cnt]=(node){to,head[from],w};
     ^
/in/foo.cc: In member function 'void node::spfa()':
/in/foo.cc:32:33: error: 'e' was not declared in this scope
         for(int i=head[now];i;i=e[i].nxt)
                                 ^
/in/foo.cc: In member function 'int node::main()':
/in/foo.cc:55:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
   if(x==2) if(a==b) {printf("-1\n");return 0;}else add(a,b,1);
     ^
/in/foo.cc:64:3: error: 'ans' was not declared in this scope
   ans+=dis[i];
   ^~~
/in/foo.cc:66:16: error: 'ans' was not declared in this scope
  printf("%lld",ans);
                ^~~
/in/foo.cc: At global scope:
/in/foo.cc:68:1: error: expected unqualified-id at end of input
 }
 ^

信息

递交者
类型
递交
题目
糖果
语言
C++
递交时间
2019-06-01 15:38:57
评测时间
2019-06-01 15:38:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes