0_0_25995699_2064.cpp: In function 'bool SPFA()':
0_0_25995699_2064.cpp:23:2: error: expected primary-expression before 'for'
for (i=0;i<n;i++){
^
0_0_25995699_2064.cpp:23:11: error: 'i' was not declared in this scope
for (i=0;i<n;i++){
^
0_0_25995699_2064.cpp:33:23: error: 'val' was not declared in this scope
if (dis[to]>dis[x]+val){
^
|