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