covering.cpp: In function 'int Rleft(int, std::vector<std::vector<bool> >, int)':
covering.cpp:70:27: warning: unused variable 'r' [-Wunused-variable]
70 | int u = y+1, d = y-1, r = x+1, l = x-1;
| ^
covering.cpp: In function 'int Rright(int, std::vector<std::vector<bool> >, int)':
covering.cpp:84:36: warning: unused variable 'l' [-Wunused-variable]
84 | int u = y+1, d = y-1, r = x+1, l = x-1;
| ^
covering.cpp: In function 'int Rup(int, std::vector<std::vector<bool> >, int)':
covering.cpp:98:18: warning: unused variable 'd' [-Wunused-variable]
98 | int u = y+1, d = y-1, r = x+1, l = x-1;
| ^
covering.cpp: In function 'int Rdown(int, std::vector<std::vector<bool> >, int)':
covering.cpp:112:9: warning: unused variable 'u' [-Wunused-variable]
112 | int u = y+1, d = y-1, r = x+1, l = x-1;
| ^
covering.cpp: In function 'int sameRow()':
covering.cpp:4:12: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'
4 | #define YY second
| ^~~~~~
covering.cpp:153:48: note: in expansion of macro 'YY'
153 | int x = special[i].XX, y = special.YY;
| ^~
covering.cpp: In function 'int main()':
covering.cpp:173:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
173 | scanf("%d%d", &N,&M);// N = y M = x
| ~~~~~^~~~~~~~~~~~~~~
covering.cpp:178:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
178 | scanf("%d", &grid[x][y]);
| ~~~~~^~~~~~~~~~~~~~~~~~~
covering.cpp:190:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
190 | scanf("%d", &K);
| ~~~~~^~~~~~~~~~
covering.cpp:194:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
194 | scanf("%d%d", &a,&b);
| ~~~~~^~~~~~~~~~~~~~~