bridge.cpp: In function 'void readip()':
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:146:5: note: in expansion of macro 'REP'
146 | REP(i, 1, n) {
| ^~~
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:167:5: note: in expansion of macro 'REP'
167 | REP(i, 1, numseg) {
| ^~~
bridge.cpp: In function 'void sub1::solve()':
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:184:9: note: in expansion of macro 'REP'
184 | REP(i, 1, numseg) {
| ^~~
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:192:9: note: in expansion of macro 'REP'
192 | REP(i, 1, numpoint) {
| ^~~
bridge.cpp:93:29: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
93 | #define REPD(i,a,b) for(int (i)=(a); (i)>=(b);--i)
| ^
bridge.cpp:197:9: note: in expansion of macro 'REPD'
197 | REPD(i, numpoint - 1, 1) {
| ^~~~
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:204:9: note: in expansion of macro 'REP'
204 | REP(i, 1, numpoint) {
| ^~~
bridge.cpp: In function 'void sub2::solve()':
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:218:9: note: in expansion of macro 'REP'
218 | REP(i, 1, numpoint) REP(j, i + 1, numpoint) {
| ^~~
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:218:29: note: in expansion of macro 'REP'
218 | REP(i, 1, numpoint) REP(j, i + 1, numpoint) {
| ^~~
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 's' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:220:13: note: in expansion of macro 'REP'
220 | REP(s, 1, numseg) {
| ^~~
bridge.cpp: In function 'void sub3::solve()':
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:238:9: note: in expansion of macro 'REP'
238 | REP(i, 1, numseg)
| ^~~
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:247:9: note: in expansion of macro 'REP'
247 | REP(i, 1, numseg - 1) {
| ^~~
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:249:13: note: in expansion of macro 'REP'
249 | REP(j, 1, i) lef.eb(compress[segment[j].fi - 1]), lef.eb(compress[segment[j].se - 1]);
| ^~~
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:250:13: note: in expansion of macro 'REP'
250 | REP(j, i+1, numseg) rig.eb(compress[segment[j].fi - 1]), rig.eb(compress[segment[j].se - 1]);
| ^~~
bridge.cpp:94:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
94 | #define FOR(i, n) for (int (i) = 0; (i) < (n); ++(i))
| ^
bridge.cpp:255:13: note: in expansion of macro 'FOR'
255 | FOR(j, lef.size()) sum += abs(lef[j] - lef[midlef]);
| ^~~
bridge.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))
| ~~~~^~~~~
bridge.cpp:255:13: note: in expansion of macro 'FOR'
255 | FOR(j, lef.size()) sum += abs(lef[j] - lef[midlef]);
| ^~~
bridge.cpp:94:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
94 | #define FOR(i, n) for (int (i) = 0; (i) < (n); ++(i))
| ^
bridge.cpp:257:13: note: in expansion of macro 'FOR'
257 | FOR(j, rig.size()) sum += abs(rig[j] - rig[midrig]);
| ^~~
bridge.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))
| ~~~~^~~~~
bridge.cpp:257:13: note: in expansion of macro 'FOR'
257 | FOR(j, rig.size()) sum += abs(rig[j] - rig[midrig]);
| ^~~
bridge.cpp: In function 'void file()':
bridge.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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
bridge.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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~