bridges.cpp: In function 'void readip()':
bridges.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridges.cpp:173:5: note: in expansion of macro 'REP'
173 | REP(i, 1, m) cin >> Edge[i].u >> Edge[i].v >> Edge[i].w;
| ^~~
bridges.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridges.cpp:175:5: note: in expansion of macro 'REP'
175 | REP(i, 1, q) cin >> Query[i].type >> Query[i].u >> Query[i].w;
| ^~~
bridges.cpp: In function 'void init()':
bridges.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridges.cpp:179:5: note: in expansion of macro 'REP'
179 | REP(i, 1, n) par[i] = i, sz[i] = 1;
| ^~~
bridges.cpp: In function 'void solve()':
bridges.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridges.cpp:215:9: note: in expansion of macro 'REP'
215 | REP(i, l, r) {
| ^~~
bridges.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridges.cpp:227:9: note: in expansion of macro 'REP'
227 | REP(i, 1, m) if (mark[i] != num) remained_edge[++numRemain] = Edge[i];
| ^~~
bridges.cpp:92:28: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridges.cpp:244:13: note: in expansion of macro 'REP'
244 | REP(k, l, i) if (Query[k].type == 1)
| ^~~
bridges.cpp:92:28: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridges.cpp:269:9: note: in expansion of macro 'REP'
269 | REP(k, l, r) if (Query[k].type == 1)
| ^~~
bridges.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridges.cpp:274:5: note: in expansion of macro 'REP'
274 | REP(i, 1, q) if (Query[i].type == 2) cout << ans[i] << ln;
| ^~~
bridges.cpp: In function 'void file()':
bridges.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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
bridges.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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~