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:94:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
94 | #define FOR(i, n) for (int (i) = 0; (i) < (n); ++(i))
| ^
chase.cpp:163:5: note: in expansion of macro 'FOR'
163 | FOR(i, adj[u].size()) {
| ^~~
chase.cpp:94:41: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | #define FOR(i, n) for (int (i) = 0; (i) < (n); ++(i))
| ~~~~^~~~~
chase.cpp:163:5: note: in expansion of macro 'FOR'
163 | FOR(i, adj[u].size()) {
| ^~~
chase.cpp:94:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
94 | #define FOR(i, n) for (int (i) = 0; (i) < (n); ++(i))
| ^
chase.cpp:168:5: note: in expansion of macro 'FOR'
168 | FOR(i, adj[u].size()) {
| ^~~
chase.cpp:94:41: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | #define FOR(i, n) for (int (i) = 0; (i) < (n); ++(i))
| ~~~~^~~~~
chase.cpp:168:5: note: in expansion of macro 'FOR'
168 | FOR(i, adj[u].size()) {
| ^~~
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:171:9: note: in expansion of macro 'REP'
171 | REP(x, 0, V) {
| ^~~
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:177:9: note: in expansion of macro 'REP'
177 | 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:183:5: note: in expansion of macro 'REP'
183 | REP(i, 0, V) up[u][i] = down[u][i] = 0;
| ^~~
chase.cpp:93:29: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
93 | #define REPD(i,a,b) for(int (i)=(a); (i)>=(b);--i)
| ^
chase.cpp:190:5: note: in expansion of macro 'REPD'
190 | REPD(i, adj[u].size() - 1, 0) {
| ^~~~
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:194:9: note: in expansion of macro 'REP'
194 | REP(x, 0, V) {
| ^~~
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:201:9: note: in expansion of macro 'REP'
201 | REP(x, 0, V) {
| ^~~
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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~