glo.cpp: In function 'int main()':
glo.cpp:43:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | if (pos == dp.size()) dp.push_back(a[i]);
| ~~~~^~~~~~~~~~~~
glo.cpp:44:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
44 | else dp[pos] = a[i]; L[i] = pos + 1;
| ^~~~
glo.cpp:44:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
44 | else dp[pos] = a[i]; L[i] = pos + 1;
| ^
glo.cpp:54:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | if (pos == dp.size()) dp.push_back(-a[i]);
| ~~~~^~~~~~~~~~~~
glo.cpp:33:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
33 | freopen(task".inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
glo.cpp:34:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | freopen(task".out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~