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::ins(int)':
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:241:9: note: in expansion of macro 'REPD'
241 | REPD(i, x - 1, 1) ++cnt[i];
| ^~~~
bridge.cpp: In function 'void sub3::del(int)':
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:245:9: note: in expansion of macro 'REPD'
245 | REPD(i, x - 1, 1) --cnt[i];
| ^~~~
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:250:9: note: in expansion of macro 'REP'
250 | REP(i, 1, numseg) Ans -= compress[segment[i].se - 1] - compress[segment[i].fi - 1];
| ^~~
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 'lid' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:258:9: note: in expansion of macro 'REP'
258 | REP(lid, 1, numpoint - 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:259:13: note: in expansion of macro 'REP'
259 | REP(i, 1, numpoint) cnt[i] = 0;
| ^~~
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:272:13: note: in expansion of macro 'REP'
272 | REP(i, pt, numseg) {
| ^~~
bridge.cpp:92:28: warning: unnecessary parentheses in declaration of 'rid' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
bridge.cpp:282:13: note: in expansion of macro 'REP'
282 | REP(rid, lid + 2, n) {
| ^~~
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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~