money.cpp:1: warning: ignoring '#pragma GCC optimization' [-Wunknown-pragmas]
1 | #pragma GCC optimization "O2"
|
money.cpp:2: warning: ignoring '#pragma GCC optimization' [-Wunknown-pragmas]
2 | #pragma GCC optimization "unroll-loop"
|
money.cpp: In function 'int Travel(int)':
money.cpp:27:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
27 | if (!chk(l,r) || a[i] < a[i - 1]) break; kq = i;
| ^~
money.cpp:27:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
27 | if (!chk(l,r) || a[i] < a[i - 1]) break; kq = i;
| ^~
money.cpp: In function 'int main()':
money.cpp:38:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | freopen(task".inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
money.cpp:39:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | freopen(task".out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~