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:155:5: note: in expansion of macro 'REP'
155 | 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:155:18: note: in expansion of macro 'REP'
155 | REP(i, 1, n) REP(j, 1, m) cin >> a[i][j];
| ^~~
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:158:5: note: in expansion of macro 'REP'
158 | REP(i, 1, n) REP(j, 1, m) if (inside(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:158:18: note: in expansion of macro 'REP'
158 | REP(i, 1, n) REP(j, 1, m) if (inside(i, j)) {
| ^~~
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:163:13: note: in expansion of macro 'FOR'
163 | FOR(d, 4) if (!inside(i + dx[d], j + dy[d])) {
| ^~~
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:176:5: note: in expansion of macro 'REP'
176 | REP(i, 1, n) REP(j, 1, m) if (id[i][j] > 0) { // go from an important cell
| ^~~
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:176:18: note: in expansion of macro 'REP'
176 | REP(i, 1, n) REP(j, 1, m) if (id[i][j] > 0) { // go from an important cell
| ^~~
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:177:9: note: in expansion of macro 'FOR'
177 | FOR(d, 4) if (!inside(i + dx[d], j + dy[d])) {
| ^~~
robots.cpp: In function 'void 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:198:5: note: in expansion of macro 'REP'
198 | REP(i, 1, numRobot) REP(j, 1, numRobot) dp[i][j].assign(cnt + 1, INF);
| ^~~
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:198:25: note: in expansion of macro 'REP'
198 | REP(i, 1, numRobot) REP(j, 1, numRobot) dp[i][j].assign(cnt + 1, INF);
| ^~~
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:199:5: note: in expansion of macro 'REP'
199 | REP(i, 1, n) REP(j, 1, m) if (a[i][j] >= '0' && 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:199:18: note: in expansion of macro 'REP'
199 | REP(i, 1, n) REP(j, 1, m) if (a[i][j] >= '0' && a[i][j] <= '9')
| ^~~
robots.cpp:93:29: warning: unnecessary parentheses in declaration of 'l' [-Wparentheses]
93 | #define REPD(i,a,b) for(int (i)=(a); (i)>=(b);--i)
| ^
robots.cpp:202:5: note: in expansion of macro 'REPD'
202 | REPD(l, numRobot, 1) REP(r, l, numRobot) {
| ^~~~
robots.cpp:92:28: warning: unnecessary parentheses in declaration of 'r' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
robots.cpp:202:26: note: in expansion of macro 'REP'
202 | REPD(l, numRobot, 1) REP(r, l, numRobot) {
| ^~~
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:205:9: note: in expansion of macro 'REP'
205 | REP(i, 1, cnt) {
| ^~~
robots.cpp:92:28: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
robots.cpp:206:13: note: in expansion of macro 'REP'
206 | REP(k, l, r - 1) minimize(dp[l][r][i] , dp[l][k][i] + dp[k + 1][r][i]);
| ^~~
robots.cpp:215:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
215 | auto [du, u] = heap.top(); heap.pop();
| ^
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:250:5: note: in expansion of macro 'REP'
250 | REP(i, 1, cnt) minimize(res, dp[1][numRobot][i]);
| ^~~
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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~