cultivation.cpp: In function 'int main()':
cultivation.cpp:29:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for(int m = 1; m < v[k].size(); m++) {
| ~~^~~~~~~~~~~~~
cultivation.cpp:17:17: warning: unused variable 'u' [-Wunused-variable]
17 | int u = i, d = j;
| ^
cultivation.cpp:17:24: warning: unused variable 'd' [-Wunused-variable]
17 | int u = i, d = j;
| ^
cultivation.cpp:8:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d %d", &r, &c);
| ~~~~~^~~~~~~~~~~~~~~~~
cultivation.cpp:10:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
cultivation.cpp:11:37: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | for(int i = 0; i < n; i++) scanf("%d %d", &g[i].first, &g[i].second);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~