0_0_38572411_13330.cpp:47:5: error: 'cout' does not name a type; did you mean 'cosl'?
cout<<"NO"<<endl;
^~~~
cosl
0_0_38572411_13330.cpp:48:5: error: expected unqualified-id before 'return'
return;
^~~~~~
0_0_38572411_13330.cpp:49:2: error: expected ';' after struct definition
}
^
;
0_0_38572411_13330.cpp: In member function 'void node::bfs()':
0_0_38572411_13330.cpp:16:12: error: 'book' was not declared in this scope
memset(book,0,sizeof(book));//1. queue<node>q;
^~~~
0_0_38572411_13330.cpp:16:12: note: suggested alternative: 'bool'
memset(book,0,sizeof(book));//1. queue<node>q;
^~~~
bool
0_0_38572411_13330.cpp:20:5: error: 'q' was not declared in this scope
q.push(start);
^
0_0_38572411_13330.cpp:36:33: error: 't' was not declared in this scope
now.v[j] = min(V[i],t.v[i] + t.v[j]);
^
0_0_38572411_13330.cpp: In function 'int main()':
0_0_38572411_13330.cpp:62:9: error: 'bfs' was not declared in this scope
bfs();
^~~
|