floppy.cpp: In function 'void query(int, int, int, int, int)':
floppy.cpp:54:41: error: return-statement with a value, in function returning 'void' [-fpermissive]
54 | if (R < l or r < L) return make_pair(0, -1);
| ~~~~~~~~~^~~~~~~
floppy.cpp:55:41: error: return-statement with a value, in function returning 'void' [-fpermissive]
55 | if (L <= l and r <= R) return tree[v];
| ~~~~~~^
floppy.cpp:59:25: error: invalid use of void expression
59 | ret = max(ret, query(2 * v, l, mid, L, R));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
floppy.cpp:60:25: error: invalid use of void expression
60 | ret = max(ret, query(2 * v + 1, mid + 1, r, L, R));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
floppy.cpp:61:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
61 | 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:91:5: error: 'queue' was not declared in this scope
91 | queue<int> q;
| ^~~~~
floppy.cpp:7:1: note: 'std::queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
6 | #include <stack>
+++ |+#include <queue>
7 | #define endl '\n'
floppy.cpp:91:11: error: expected primary-expression before 'int'
91 | queue<int> q;
| ^~~
floppy.cpp:94:26: error: 'q' was not declared in this scope
94 | if (deg[u] == 0) q.push(u);
| ^
floppy.cpp:99:17: error: 'q' was not declared in this scope
99 | int u = q.front();
| ^
floppy.cpp:117:26: error: invalid use of 'void'
117 | 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) {
| ~~~~~~~~~~~~~~~~~~~~~^~~~