election.cpp: In function 'bool check(std::vector<int>, int)':
election.cpp:30:19: warning: comparison of integer expressions of different signedness: 'std::set<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
30 | if (st.size() != n)
| ~~~~~~~~~~^~~~
election.cpp: In function 'void solve(int)':
election.cpp:42:16: error: 'query' was not declared in this scope
42 | b[i] = query(i, i + 1);
| ^~~~~
election.cpp:44:16: error: 'query' was not declared in this scope
44 | c[i] = query(i, i + 2);
| ^~~~~
election.cpp:65:15: error: 'v' was not declared in this scope
65 | if (check(v, n)) {
| ^
election.cpp:66:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | for (int i = 0; i < a.size(); i++)
| ~~^~~~~~~~~~
election.cpp:67:13: error: 'answer' was not declared in this scope
67 | answer(i + 1, a[i]);
| ^~~~~~
election.cpp:72:28: error: expected ';' before 'a'
72 | cur += b[i - 1]
| ^
| ;
73 | a.pb(cur); mn = min(mn, cur);
| ~
election.cpp:80:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
80 | for (int i = 0; i < a.size(); i++)
| ~~^~~~~~~~~~
election.cpp:81:9: error: 'answer' was not declared in this scope
81 | answer(i + 1, a[i]);
| ^~~~~~