/in/foo.cc: In function 'state readInput()':
/in/foo.cc:46:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | for(int j = 0; j < s.size(); j++) {
| ~~^~~~~~~~~~
In file included from /usr/include/c++/12/cassert:44,
from /in/foo.cc:7:
/in/foo.cc: In function 'void solve()':
/in/foo.cc:123:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
123 | assert(i == buf.size());
| ~~^~~~~~~~~~~~~
/in/foo.cc: In function 'void dfs(state&, int, int)':
/in/foo.cc:85:32: warning: 'zy' may be used uninitialized [-Wmaybe-uninitialized]
85 | int nx = zx+dir[i][0], ny = zy+dir[i][1];
| ^~
/in/foo.cc:77:13: note: 'zy' was declared here
77 | int zx, zy, zp;
| ^~
/in/foo.cc:85:13: warning: 'zx' may be used uninitialized [-Wmaybe-uninitialized]
85 | int nx = zx+dir[i][0], ny = zy+dir[i][1];
| ^~
/in/foo.cc:77:9: note: 'zx' was declared here
77 | int zx, zy, zp;
| ^~