foo.cc: In function 'int main()':
foo.cc:43:5: error: 'ds' has not been declared
43 | ds::ST<int, 300000> st(a, n);
| ^~
foo.cc:43:12: error: expected primary-expression before 'int'
43 | ds::ST<int, 300000> st(a, n);
| ^~~
foo.cc:51:45: error: 'st' was not declared in this scope; did you mean 's'?
51 | cout << ((a[y] - a[x-1] == 0 && st.RMQMIN(x, y) - a[x-1] == 0) ? "Yes" : "No") << '\n';
| ^~
| s
foo.cc:54:21: error: 'st' was not declared in this scope; did you mean 's'?
54 | int p = st.RMQMIN(x, y) - a[x-1];
| ^~
| s
[Hydro](https://hydro.ac)提供评测服务