grader.c: In function 'int main()':
grader.c:15:6: warning: variable 'res' set but not used [-Wunused-but-set-variable]
15 | int res;
| ^~~
wombats.cpp: In function 'int escape(int, int)':
wombats.cpp:41:10: error: no matching function for call to 'edge::edge()'
41 | edge e,nb;
| ^
wombats.cpp:10:5: note: candidate: 'edge::edge(int, int, unsigned int)'
10 | edge(int xi, int yi, unsigned int di)
| ^~~~
wombats.cpp:10:5: note: candidate expects 3 arguments, 0 provided
wombats.cpp:6:8: note: candidate: 'constexpr edge::edge(const edge&)'
6 | struct edge
| ^~~~
wombats.cpp:6:8: note: candidate expects 1 argument, 0 provided
wombats.cpp:6:8: note: candidate: 'constexpr edge::edge(edge&&)'
wombats.cpp:6:8: note: candidate expects 1 argument, 0 provided
wombats.cpp:41:12: error: no matching function for call to 'edge::edge()'
41 | edge e,nb;
| ^~
wombats.cpp:10:5: note: candidate: 'edge::edge(int, int, unsigned int)'
10 | edge(int xi, int yi, unsigned int di)
| ^~~~
wombats.cpp:10:5: note: candidate expects 3 arguments, 0 provided
wombats.cpp:6:8: note: candidate: 'constexpr edge::edge(const edge&)'
6 | struct edge
| ^~~~
wombats.cpp:6:8: note: candidate expects 1 argument, 0 provided
wombats.cpp:6:8: note: candidate: 'constexpr edge::edge(edge&&)'
wombats.cpp:6:8: note: candidate expects 1 argument, 0 provided
wombats.cpp:50:51: warning: narrowing conversion of 'h[e.edge::x][(e.edge::y - 1)]' from 'int' to 'unsigned int' [-Wnarrowing]
50 | if(e.y>0) nb = {e.x,e.y-1,h[e.x][e.y-1]};
| ~~~~~~~~~~~~^
wombats.cpp:60:20: error: 'c' was not declared in this scope
60 | if(e.y<c-1) nb = {e.x,e.y+1,h[e.x][e.y]};
| ^
wombats.cpp:60:51: warning: narrowing conversion of 'h[e.edge::x][e.edge::y]' from 'int' to 'unsigned int' [-Wnarrowing]
60 | if(e.y<c-1) nb = {e.x,e.y+1,h[e.x][e.y]};
| ~~~~~~~~~~^
wombats.cpp:70:20: error: 'r' was not declared in this scope
70 | if(e.x<r-1) nb = {e.x+1,e.y,v[e.x][e.y]};
| ^
wombats.cpp:70:51: warning: narrowing conversion of 'v[e.edge::x][e.edge::y]' from 'int' to 'unsigned int' [-Wnarrowing]
70 | if(e.x<r-1) nb = {e.x+1,e.y,v[e.x][e.y]};
| ~~~~~~~~~~^
wombats.cpp:79:15: error: 'r' was not declared in this scope
79 | cout << d[r-1][V2] << endl;
| ^
wombats.cpp:80:1: warning: no return statement in function returning non-void [-Wreturn-type]
80 | }
| ^