Main.cpp:1: warning: ignoring '#pragma GCC optimization' [-Wunknown-pragmas]
1 | #pragma GCC optimization O2
|
Main.cpp:2: warning: ignoring '#pragma GCC optimization' [-Wunknown-pragmas]
2 | #pragma GCC optimization "unroll-loop"
|
Main.cpp:3: warning: ignoring '#pragma target ' [-Wunknown-pragmas]
3 | #pragma target ("avx2")
|
Main.cpp: In function 'int main()':
Main.cpp:46:17: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | if (it1 < ve.size()){
| ~~~~^~~~~~~~~~~
Main.cpp:48:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
48 | if (it1) kq = max(kq,Toe[it1 - 1].fs); ans += max(0ll,kq);
| ^~
Main.cpp:48:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
48 | if (it1) kq = max(kq,Toe[it1 - 1].fs); ans += max(0ll,kq);
| ^~~
Main.cpp:51:17: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | if (it2 < vw.size()){
| ~~~~^~~~~~~~~~~
Main.cpp:53:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
53 | if (it2) kq = max(kq,Tow[it2 - 1].fs); ans += max(0ll,kq);
| ^~
Main.cpp:53:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
53 | if (it2) kq = max(kq,Tow[it2 - 1].fs); ans += max(0ll,kq);
| ^~~
Main.cpp:30:8: warning: unused variable 'now' [-Wunused-variable]
30 | ll now = 0;
| ^~~
Main.cpp:25:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | freopen(task".INP","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
Main.cpp:26:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | freopen(task".OUT","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~