rmq.cpp: In function 'int main()':
rmq.cpp:59:18: error: wrong number of template arguments (1, should be 2)
59 | SparseTable<int> mn(bound, [&](int i, int j) { return min(i, j); });
| ^
rmq.cpp:6:7: note: provided for 'template<class T, class F> class SparseTable'
6 | class SparseTable {
| ^~~~~~~~~~~
rmq.cpp:59:69: error: expression list treated as compound expression in initializer [-fpermissive]
59 | SparseTable<int> mn(bound, [&](int i, int j) { return min(i, j); });
| ^
rmq.cpp:59:23: warning: left operand of comma operator has no effect [-Wunused-value]
59 | SparseTable<int> mn(bound, [&](int i, int j) { return min(i, j); });
| ^~~~~
rmq.cpp:59:69: error: cannot convert 'main()::<lambda(int, int)>' to 'int' in initialization
59 | SparseTable<int> mn(bound, [&](int i, int j) { return min(i, j); });
| ^
rmq.cpp:61:12: error: request for member 'get' in 'mn', which is of non-class type 'int'
61 | if (mn.get(l[i], r[i]) != a[i]) {
| ^~~