chase.cpp: In function 'void readip()':
chase.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
chase.cpp:145:5: note: in expansion of macro 'REP'
145 | REP(i, 1, n) cin >> a[i];
| ^~~
chase.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
chase.cpp:146:5: note: in expansion of macro 'REP'
146 | REP(i, 2, n) {
| ^~~
chase.cpp: In function 'void initdfs(int, int)':
chase.cpp:92:28: warning: unnecessary parentheses in declaration of 'x' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
chase.cpp:160:9: note: in expansion of macro 'REP'
160 | REP(x, 0, V) {
| ^~~
chase.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
chase.cpp:165:5: note: in expansion of macro 'REP'
165 | REP(i, 1, V) maximize(dp[u][i], dp[u][i - 1]);
| ^~~
chase.cpp: In function 'void solve()':
chase.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
chase.cpp:171:9: note: in expansion of macro 'REP'
171 | REP(i, 1, n) {
| ^~~
chase.cpp:92:28: warning: unnecessary parentheses in declaration of 'x' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
chase.cpp:173:13: note: in expansion of macro 'REP'
173 | REP(x, 1, n) REP(j, 0, V) dp[x][j] = -1e18;
| ^~~
chase.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
chase.cpp:173:26: note: in expansion of macro 'REP'
173 | REP(x, 1, n) REP(j, 0, V) dp[x][j] = -1e18;
| ^~~
chase.cpp:92:28: warning: unnecessary parentheses in declaration of 'x' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
chase.cpp:175:13: note: in expansion of macro 'REP'
175 | REP(x, 0, V) maximize(res, dp[i][x]);
| ^~~
chase.cpp:92:28: warning: unnecessary parentheses in declaration of 'x' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
chase.cpp:184:5: note: in expansion of macro 'REP'
184 | REP(x, 0, V) maximize(res, dp[1][x]);
| ^~~
chase.cpp: In function 'void file()':
chase.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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
chase.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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~