adventure.cpp: In function 'void solve(int)':
adventure.cpp:13:20: warning: comparison of integer expressions of different signedness: 'int' and 'll' {aka 'long long unsigned int'} [-Wsign-compare]
13 | for (int i = 0; i < n*m; i++) {
| ~~^~~~~
adventure.cpp:22:22: warning: unused variable 'd' [-Wunused-variable]
22 | ll u = tmp.second, d = tmp.first;
| ^
adventure.cpp: In function 'int main()':
adventure.cpp:38:20: warning: comparison of integer expressions of different signedness: 'int' and 'll' {aka 'long long unsigned int'} [-Wsign-compare]
38 | for (int i = 0; i < n; i++) {
| ~~^~~
adventure.cpp:39:21: warning: comparison of integer expressions of different signedness: 'int' and 'll' {aka 'long long unsigned int'} [-Wsign-compare]
39 | for (int j = 0; j < m; j++) {
| ~~^~~
adventure.cpp:44:20: warning: comparison of integer expressions of different signedness: 'int' and 'll' {aka 'long long unsigned int'} [-Wsign-compare]
44 | for (int i = 0; i < n; i++) {
| ~~^~~
adventure.cpp:45:21: warning: comparison of integer expressions of different signedness: 'int' and 'll' {aka 'long long unsigned int'} [-Wsign-compare]
45 | for (int j = 0; j < m; j++) {
| ~~^~~
adventure.cpp:59:20: warning: comparison of integer expressions of different signedness: 'int' and 'll' {aka 'long long unsigned int'} [-Wsign-compare]
59 | for (int i = 0; i < n; i++) {
| ~~^~~
adventure.cpp:60:21: warning: comparison of integer expressions of different signedness: 'int' and 'll' {aka 'long long unsigned int'} [-Wsign-compare]
60 | for (int j = 0; j < m; j++) {
| ~~^~~
adventure.cpp:65:11: warning: comparison of integer expressions of different signedness: 'int' and 'll' {aka 'long long unsigned int'} [-Wsign-compare]
65 | if (i != n - 1) {
| ~~^~~~~~~~
adventure.cpp:71:11: warning: comparison of integer expressions of different signedness: 'int' and 'll' {aka 'long long unsigned int'} [-Wsign-compare]
71 | if (j != m - 1) {
| ~~^~~~~~~~