dango3.cpp: In function 'void solve(std::vector<int>, int)':
dango3.cpp:9:21: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
9 | if (a.size()==n) {
| ~~~~~~~~^~~
dango3.cpp:24:24: error: 'ind' was not declared in this scope; did you mean 'int'?
24 | for (int i=0;i<=ind;i++) q.push_back(a[i]);
| ^~~
| int
dango3.cpp:27:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
27 | if (q.size()==n) break;
| ~~~~~~~~^~~
dango3.cpp:33:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for (int i=0;i<a.size();i++) {
| ~^~~~~~~~~