foo.cc: In function 'void dfs1(int, int)':
foo.cc:21:30: error: expected ')' before '!' token
21 | if(map[y+i][x-chang]!
| ~ ^
| )
foo.cc:8:19: warning: unused variable 'k' [-Wunused-variable]
8 | int chang=1,i,k;
| ^
foo.cc: In function 'void dfs2(int, int)':
foo.cc:38:30: error: expected ')' before '!' token
38 | if(map[y-chang][x-i]!
| ~ ^
| )
foo.cc:44:32: error: expected ')' before '!' token
44 | if(map[y+i+1][x-chang]!
| ~ ^
| )
foo.cc:34:19: warning: unused variable 'k' [-Wunused-variable]
34 | int chang=1,i,k;
| ^
[Hydro](https://hydro.ac)提供评测服务