pokemonmaster.cpp: In function 'void dfs(int, int, int)':
pokemonmaster.cpp:14:58: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
14 | void dfs(int a,int b,int x){ use[poke[a][b]] = vis[a][b] = 1;
pokemonmaster.cpp:15:18: error: too few arguments to function 'bool valid(int, int, int)'
15 | if (valid(a-1, b)) dfs(a-1, b, x);
| ^
pokemonmaster.cpp:10:6: note: declared here
10 | bool valid(int a,int b,int x){
| ^~~~~
pokemonmaster.cpp:16:18: error: too few arguments to function 'bool valid(int, int, int)'
16 | if (valid(a+1, b)) dfs(a+1, b, x);
| ^
pokemonmaster.cpp:10:6: note: declared here
10 | bool valid(int a,int b,int x){
| ^~~~~
pokemonmaster.cpp:17:18: error: too few arguments to function 'bool valid(int, int, int)'
17 | if (valid(a, b-1)) dfs(a, b-1, x);
| ^
pokemonmaster.cpp:10:6: note: declared here
10 | bool valid(int a,int b,int x){
| ^~~~~
pokemonmaster.cpp:18:18: error: too few arguments to function 'bool valid(int, int, int)'
18 | if (valid(a, b+1)) dfs(a, b+1, x);
| ^
pokemonmaster.cpp:10:6: note: declared here
10 | bool valid(int a,int b,int x){
| ^~~~~