sortbooks.cpp:1: warning: ignoring '#pragma GCC optimization' [-Wunknown-pragmas]
1 | #pragma GCC optimization O2
|
sortbooks.cpp:2: warning: ignoring '#pragma GCC optimization' [-Wunknown-pragmas]
2 | #pragma GCC optimization "unroll-loop"
|
sortbooks.cpp:3: warning: ignoring '#pragma target ' [-Wunknown-pragmas]
3 | #pragma target ("avx2")
|
sortbooks.cpp: In function 'int main()':
sortbooks.cpp:40:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
40 | for (ll i = 1;i <= n;i++) cin>>a[i]; a[0] = inf;
| ^~~
sortbooks.cpp:40:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
40 | for (ll i = 1;i <= n;i++) cin>>a[i]; a[0] = inf;
| ^
sortbooks.cpp:48:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
48 | if (st.top()) upd(st.top(),a[st.top()] + a[i]); st.push(i);
| ^~
sortbooks.cpp:48:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
48 | if (st.top()) upd(st.top(),a[st.top()] + a[i]); st.push(i);
| ^~
sortbooks.cpp:36:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | freopen(task".INP","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~