0_0_17078763_19354.cpp:16:12: error: expected unqualified-id before 'int'
int r, int c;
^
0_0_17078763_19354.cpp: In constructor 'node::node(int, int)':
0_0_17078763_19354.cpp:18:35: error: class 'node' does not have any field named 'c'
node(int rr, int cc) : r(rr), c(cc) { }
^
0_0_17078763_19354.cpp: In function 'void bfs()':
0_0_17078763_19354.cpp:29:21: error: no matching function for call to 'node::node(int&, int&, int)'
node w(r1, c1, 0);
^
0_0_17078763_19354.cpp:29:21: note: candidates are:
0_0_17078763_19354.cpp:18:5: note: node::node(int, int)
node(int rr, int cc) : r(rr), c(cc) { }
^
0_0_17078763_19354.cpp:18:5: note: candidate expects 2 arguments, 3 provided
0_0_17078763_19354.cpp:17:5: note: node::node()
node(){ }
^
0_0_17078763_19354.cpp:17:5: note: candidate expects 0 arguments, 3 provided
0_0_17078763_19354.cpp:15:8: note: constexpr node::node(const node&)
struct node{
^
0_0_17078763_19354.cpp:15:8: note: candidate expects 1 argument, 3 provided
0_0_17078763_19354.cpp:15:8: note: constexpr node::node(node&&)
0_0_17078763_19354.cpp:15:8: note: candidate expects 1 argument, 3 provided
0_0_17078763_19354.cpp:30:14: error: 'struct node' has no member named 'c'
d[w.r][w.c] = 0;
^
0_0_17078763_19354.cpp:34:27: error: 'struct node' has no member named 'c'
if(u.r == r2 && u.c == r2){ print(u); return ; }
^
0_0_17078763_19354.cpp:34:44: error: 'print' was not declared in this scope
if(u.r == r2 && u.c == r2){ print(u); return ; }
^
0_0_17078763_19354.cpp:37:23: error: 'struct node' has no member named 'c'
int y = u.c + dc[i];
^
0_0_17078763_19354.cpp:38:31: error: 'o' was not declared in this scope
if(x >= 0 && y >= o && x < r && y < c && d[x][y] < 0){
^
0_0_17078763_19354.cpp:39:36: error: 'struct node' has no member named 'c'
d[x][y] = d[u.r][u.c] + 1;
^
0_0_17078763_19354.cpp: In function 'int main()':
0_0_17078763_19354.cpp:51:21: error: 'o' was not declared in this scope
for(int i = o; i < r; ++i)
^
0_0_17078763_19354.cpp:54:37: error: expected primary-expression before '%' token
scanf("%d %d %d %d%c", &r1, %c1, &r2, &c2, &ch);
^
|