mouse.cpp: In function 'void random_shuffle(std::vector<long long int>&)':
mouse.cpp:29:22: 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]
29 | for(int i = 0; i < v.size(); i++) swap(v[i], v[rng() % (i + 1)]);
| ~~^~~~~~~~~~
mouse.cpp: In function 'void solve(long long int)':
mouse.cpp:80:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
80 | while(s = query(q) != 1){
| ~~^~~~~~~~~~~~~~~
mouse.cpp:90:30: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
90 | for(int i = 1; i < x.size(); i++) swap(x[i].second, x[rng() % i + 1].second);
| ~~^~~~~~~~~~
mouse.cpp:91:30: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
91 | for(int i = 0; i < x.size(); i++) q[x[i].first] = x[i].second;
| ~~^~~~~~~~~~
mouse.cpp:111:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
111 | for(int i = 0; i < sz; i++) q[x[i].first] = x[i].second; for(auto i : to_erase) x.erase(x.begin() + i);
| ^~~
mouse.cpp:111:66: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
111 | for(int i = 0; i < sz; i++) q[x[i].first] = x[i].second; for(auto i : to_erase) x.erase(x.begin() + i);
| ^~~
mouse.cpp:114:26: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
114 | for(int i = 0; i < x.size(); i++) q[x[i].first] = x[i].second;
| ~~^~~~~~~~~~
/usr/bin/ld: /tmp/ccvvqCfg.o: in function `binary_search(std::vector<std::pair<long long, long long>, std::allocator<std::pair<long long, long long> > >&, std::vector<long long, std::allocator<long long> >&, long long, long long, long long, long long, long long)':
mouse.cpp:(.text+0x585): undefined reference to `query(std::vector<long long, std::allocator<long long> >)'
/usr/bin/ld: /tmp/ccvvqCfg.o: in function `solve(long long)':
mouse.cpp:(.text+0x850): undefined reference to `query(std::vector<long long, std::allocator<long long> >)'
/usr/bin/ld: mouse.cpp:(.text+0xabf): undefined reference to `query(std::vector<long long, std::allocator<long long> >)'
/usr/bin/ld: mouse.cpp:(.text+0xc8e): undefined reference to `query(std::vector<long long, std::allocator<long long> >)'
/usr/bin/ld: mouse.cpp:(.text+0xf17): undefined reference to `query(std::vector<long long, std::allocator<long long> >)'
/usr/bin/ld: /tmp/ccvvqCfg.o:mouse.cpp:(.text+0x10f0): more undefined references to `query(std::vector<long long, std::allocator<long long> >)' follow
/usr/bin/ld: /tmp/ccbXY6Ef.o: in function `main':
grader.cpp:(.text.startup+0x30): undefined reference to `solve(int)'
collect2: error: ld returned 1 exit status