boat.cpp: In function 'void readip()':
boat.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
boat.cpp:149:5: note: in expansion of macro 'REP'
149 | REP(i, 1, n) {
| ^~~
boat.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
boat.cpp:158:5: note: in expansion of macro 'REP'
158 | REP(i, 0, 500) {
| ^~~
boat.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
boat.cpp:160:9: note: in expansion of macro 'REP'
160 | REP(j, 1, i) {
| ^~~
boat.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
boat.cpp:166:5: note: in expansion of macro 'REP'
166 | REP(i, 0, 500) inv[i] = pw(i, mod - 2);
| ^~~
boat.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
boat.cpp:168:5: note: in expansion of macro 'REP'
168 | REP(i, 1, m) {
| ^~~
boat.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
boat.cpp:171:9: note: in expansion of macro 'REP'
171 | REP(j, 1, n) {
| ^~~
boat.cpp: In function 'void solve()':
boat.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
boat.cpp:178:5: note: in expansion of macro 'REP'
178 | REP(i, 0, m) dp[0][i] = 1;
| ^~~
boat.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
boat.cpp:180:5: note: in expansion of macro 'REP'
180 | REP(i, 1, n) {
| ^~~
boat.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
boat.cpp:181:9: note: in expansion of macro 'REP'
181 | REP(j, 1, m) {
| ^~~
boat.cpp:93:29: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
93 | #define REPD(i,a,b) for(int (i)=(a); (i)>=(b);--i)
| ^
boat.cpp:184:17: note: in expansion of macro 'REPD'
184 | REPD(k, i, 1) {
| ^~~~
boat.cpp: In function 'void file()':
boat.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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
boat.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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~