sequence.cpp: In function 'std::pair<long long int, long long int> query(long long int)':
sequence.cpp:37: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]
37 | if (pointer >= M.size()) {
| ~~~~~~~~^~~~~~~~~~~
sequence.cpp:40:19: 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]
40 | while(pointer < M.size()-1 and 1LL*M[pointer+1]*x+B[pointer+1] > 1LL*M[pointer]*x+B[pointer]) {
| ~~~~~~~~^~~~~~~~~~~~
sequence.cpp: In function 'int main()':
sequence.cpp:49:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
49 | freopen("task.inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
sequence.cpp:50:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
50 | freopen("task.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
sequence.cpp:83:12: warning: 'id' may be used uninitialized in this function [-Wmaybe-uninitialized]
83 | id = trace[id][m];
| ~~~^~~~~~~~~~~~~~