robots.cpp: In function 'void readip()':
robots.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
robots.cpp:147:5: note: in expansion of macro 'REP'
147 | REP(i, 1, n) REP(j, 1, m) cin >> a[i][j];
| ^~~
robots.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
robots.cpp:147:18: note: in expansion of macro 'REP'
147 | REP(i, 1, n) REP(j, 1, m) cin >> a[i][j];
| ^~~
robots.cpp: In function 'bool sub1::check()':
robots.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
robots.cpp:153:9: note: in expansion of macro 'REP'
153 | REP(i, 1, n) REP(j, 1, m) if (a[i][j] == 'A' || a[i][j] == 'C') return false;
| ^~~
robots.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
robots.cpp:153:22: note: in expansion of macro 'REP'
153 | REP(i, 1, n) REP(j, 1, m) if (a[i][j] == 'A' || a[i][j] == 'C') return false;
| ^~~
robots.cpp: In function 'void sub1::bfs(int, int, int)':
robots.cpp:174:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
174 | auto [x, y] = q.front(); q.pop();
| ^
robots.cpp:94:28: warning: unnecessary parentheses in declaration of 'd' [-Wparentheses]
94 | #define FOR(i, n) for (int (i) = 0; (i) < (n); ++(i))
| ^
robots.cpp:175:13: note: in expansion of macro 'FOR'
175 | FOR(d, 4) {
| ^~~
robots.cpp: In function 'void sub1::solve()':
robots.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
robots.cpp:187:9: note: in expansion of macro 'REP'
187 | REP(i, 1, n) REP(j, 1, m) if (a[i][j] >= '1' && a[i][j] <= '9')
| ^~~
robots.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
robots.cpp:187:22: note: in expansion of macro 'REP'
187 | REP(i, 1, n) REP(j, 1, m) if (a[i][j] >= '1' && a[i][j] <= '9')
| ^~~
robots.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
robots.cpp:190:9: note: in expansion of macro 'REP'
190 | REP(i, 1, n) REP(j, 1, m) if (Dist[0][i][j] != -1 && Dist[1][i][j] != -1)
| ^~~
robots.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
robots.cpp:190:22: note: in expansion of macro 'REP'
190 | REP(i, 1, n) REP(j, 1, m) if (Dist[0][i][j] != -1 && Dist[1][i][j] != -1)
| ^~~
robots.cpp: In function 'void file()':
robots.cpp:125:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
125 | freopen(PROB".inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
robots.cpp:126:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
126 | freopen(PROB".out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~