0_0_28857858_14843.cpp: In function 'int BFS()':
0_0_28857858_14843.cpp:32:13: error: expected initializer before 'next'
node front next;
^
0_0_28857858_14843.cpp:34:3: error: 'front' was not declared in this scope
front = q.front();
^
0_0_28857858_14843.cpp:41:5: error: 'std::next' does not have class type
next.step = front.step + 1;
^
0_0_28857858_14843.cpp:42:5: error: 'std::next' does not have class type
next.m = front.m;
^
0_0_28857858_14843.cpp:45:6: error: 'std::next' does not have class type
next.n = n;
^
0_0_28857858_14843.cpp:46:6: error: 'std::next' does not have class type
next.s = front.s - temp;
^
0_0_28857858_14843.cpp:48:6: error: 'std::next' does not have class type
next.s = 0;
^
0_0_28857858_14843.cpp:49:6: error: 'std::next' does not have class type
next.n = front.n + front.s;
^
0_0_28857858_14843.cpp:52:5: error: 'std::next' does not have class type
next.step = front.step + 1;
^
0_0_28857858_14843.cpp:53:5: error: 'std::next' does not have class type
next.n = front.n;
^
0_0_28857858_14843.cpp:56:6: error: 'std::next' does not have class type
next.m = m;
^
0_0_28857858_14843.cpp:57:6: error: 'std::next' does not have class type
next.s = front.s - temp;
^
0_0_28857858_14843.cpp:59:6: error: 'std::next' does not have class type
next.s = 0;
^
0_0_28857858_14843.cpp:60:6: error: 'std::next' does not have class type
next.m = front.m + front.s;
^
0_0_28857858_14843.cpp:63:5: error: 'std::next' does not have class type
next.step = front.step + 1;
^
0_0_28857858_14843.cpp:64:5: error: 'std::next' does not have class type
next.m = next.m;
^
0_0_28857858_14843.cpp:64:14: error: 'std::next' does not have class type
next.m = next.m;
^
0_0_28857858_14843.cpp:67:6: error: 'std::next' does not have class type
next.n = front.n - temp;
^
0_0_28857858_14843.cpp:68:6: error: 'std::next' does not have class type
next.s = s;
^
0_0_28857858_14843.cpp:70:6: error: 'std::next' does not have class type
next.n = 0;
^
0_0_28857858_14843.cpp:71:6: error: 'std::next' does not have class type
next.s = front.s + front.n;
^
0_0_28857858_14843.cpp:74:5: error: 'std::next' does not have class type
next.step = front.step + 1;
^
0_0_28857858_14843.cpp:75:5: error: 'std::next' does not have class type
next.s = front.s;
^
0_0_28857858_14843.cpp:78:6: error: 'std::next' does not have class type
next.n = front.n - temp;
^
0_0_28857858_14843.cpp:79:6: error: 'std::next' does not have class type
next.m = m;
^
0_0_28857858_14843.cpp:81:6: error: 'std::next' does not have class type
next.n = 0;
^
0_0_28857858_14843.cpp:82:6: error: 'std::next' does not have class type
next.m = front.n + front.m;
^
0_0_28857858_14843.cpp:85:5: error: 'std::next' does not have class type
next.step = front.step + 1;
^
0_0_28857858_14843.cpp:86:5: error: 'std::next' does not have class type
next.n = front.n;
^
0_0_28857858_14843.cpp:89:6: error: 'std::next' does not have class type
next.m = front.m - temp;
^
0_0_28857858_14843.cpp:90:6: error: 'std::next' does not have class type
next.s = s;
^
0_0_28857858_14843.cpp:92:6: error: 'std::next' does not have class type
next.m = 0;
^
0_0_28857858_14843.cpp:93:6: error: 'std::next' does not have class type
next.s = front.s + front.m;
^
0_0_28857858_14843.cpp:96:5: error: 'std::next' does not have class type
next.step = front.step + 1;
^
0_0_28857858_14843.cpp:97:5: error: 'std::next' does not have class type
next.s = front.s;
^
0_0_28857858_14843.cpp:100:6: error: 'std::next' does not have class type
next.m = front.m - temp;
^
0_0_28857858_14843.cpp:101:6: error: 'std::next' does not have class type
next.n = n;
^
0_0_28857858_14843.cpp:103:6: error: 'std::next' does not have class type
next.m = 0;
^
0_0_28857858_14843.cpp:104:6: error: 'std::next' does not have class type
next.n = front.m + front.n;
^
0_0_28857858_14843.cpp:107:12: error: 'std::next' does not have class type
if(!inq[next.n][next.m]){
^
0_0_28857858_14843.cpp:107:20: error: 'std::next' does not have class type
if(!inq[next.n][next.m]){
^
0_0_28857858_14843.cpp:108:16: error: no matching function for call to 'std::queue<node>::push(<unresolved overloaded function type>)'
q.push(next);
^
0_0_28857858_14843.cpp:108:16: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from 0_0_28857858_14843.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:215:7: note: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = node; _Sequence = std::deque<node, std::allocator<node> >; std::queue<_Tp, _Sequence>::value_type = node]
push(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:215:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const value_type& {aka const node&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:220:7: note: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = node; _Sequence = std::deque<node, std::allocator<node> >; std::queue<_Tp, _Sequence>::value_type = node]
push(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:220:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::queue<node>::value_type&& {aka node&&}'
|