floppy.cpp: In function 'void query(int, int, int, int, int)':
floppy.cpp:55:41: error: return-statement with a value, in function returning 'void' [-fpermissive]
55 | if (R < l or r < L) return make_pair(0, -1);
| ~~~~~~~~~^~~~~~~
floppy.cpp:56:41: error: return-statement with a value, in function returning 'void' [-fpermissive]
56 | if (L <= l and r <= R) return tree[v];
| ~~~~~~^
floppy.cpp:60:25: error: invalid use of void expression
60 | ret = max(ret, query(2 * v, l, mid, L, R));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
floppy.cpp:61:25: error: invalid use of void expression
61 | ret = max(ret, query(2 * v + 1, mid + 1, r, L, R));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
floppy.cpp:62:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
62 | return ret;
| ^~~
floppy.cpp: In function 'std::vector<int> solve_queries(int, int, const string&, const std::vector<int>&, const std::vector<int>&)':
floppy.cpp:118:26: error: invalid use of 'void'
118 | v.push_back(query(1, 0, n - 1, a[i], b[i]).second);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
stub.cpp: In function 'void run2()':
stub.cpp:101:30: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
101 | if (query_answers.size() != M) {
| ~~~~~~~~~~~~~~~~~~~~~^~~~