sequence.cpp: In function 'void readip()':
sequence.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
sequence.cpp:144:5: note: in expansion of macro 'REP'
144 | REP(i, 1, n) cin >> a[i];
| ^~~
sequence.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
sequence.cpp:146:5: note: in expansion of macro 'REP'
146 | REP(i, 1, n) pre[i] = pre[i - 1] + a[i];
| ^~~
sequence.cpp: In function 'void solve()':
sequence.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
sequence.cpp:153:5: note: in expansion of macro 'REP'
153 | REP(j, 1, k) REP(i, j, n) {
| ^~~
sequence.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
sequence.cpp:153:18: note: in expansion of macro 'REP'
153 | REP(j, 1, k) REP(i, j, n) {
| ^~~
sequence.cpp:93:29: warning: unnecessary parentheses in declaration of 'x' [-Wparentheses]
93 | #define REPD(i,a,b) for(int (i)=(a); (i)>=(b);--i)
| ^
sequence.cpp:154:9: note: in expansion of macro 'REPD'
154 | REPD(x, i, j)
| ^~~~
sequence.cpp:93:29: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
93 | #define REPD(i,a,b) for(int (i)=(a); (i)>=(b);--i)
| ^
sequence.cpp:160:5: note: in expansion of macro 'REPD'
160 | REPD(j, k, 1) {
| ^~~~
sequence.cpp:167:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
167 | for (int x : ans) cout << x << ' '; cout << ln;
| ^~~
sequence.cpp:167:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
167 | for (int x : ans) cout << x << ' '; cout << ln;
| ^~~~
sequence.cpp: In function 'void file()':
sequence.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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
sequence.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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~