0_0_37963394_4402.cpp: In function 'void bfs()':
0_0_37963394_4402.cpp:37:59: error: 'INF' was not declared in this scope
for(int i = 0; i <= n; i++) dist[i][0] = dist[i][1] = INF, st[i][0] = st[i][1] = 0;
^
0_0_37963394_4402.cpp:57:13: error: 'vi' was not declared in this scope
vi temp;
^
0_0_37963394_4402.cpp:59:34: error: 'temp' was not declared in this scope
if(g[it] != cnt) temp.pb(it);
^
0_0_37963394_4402.cpp:61:26: error: 'temp' was not declared in this scope
for(auto t : temp) {
^
0_0_37963394_4402.cpp:63:42: error: no matching function for call to 'std::priority_queue<Node>::push(<brace-enclosed initializer list>)'
q.push({t, dist[t][0], 0});
^
0_0_37963394_4402.cpp:63:42: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
from 0_0_37963394_4402.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = Node; _Sequence = std::vector<Node, std::allocator<Node> >; _Compare = std::less<Node>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = Node]
push(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const Node&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = Node; _Sequence = std::vector<Node, std::allocator<Node> >; _Compare = std::less<Node>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = Node]
push(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<Node>::value_type&& {aka Node&&}'
0_0_37963394_4402.cpp:65:26: error: 'temp' was not declared in this scope
for(auto t : temp) S.erase(t);
^
0_0_37963394_4402.cpp: In function 'void solve()':
0_0_37963394_4402.cpp:91:43: error: 'INF' was not declared in this scope
if(min(dist[i][0], dist[i][1]) == INF) cout << -1 << ' ';
^
0_0_37963394_4402.cpp: At global scope:
0_0_37963394_4402.cpp:97:10: error: '::main' must return 'int'
int main() {
^
|