dango3.cpp: In function 'void solve(std::vector<int>, int)':
dango3.cpp:9:17: 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:15:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | for (int i=0;i<a.size();i++) {
| ~^~~~~~~~~
dango3.cpp:23:21: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
23 | if (q.size()==n) break;
| ~~~~~~~~^~~
dango3.cpp:29:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for (int i=0;i<a.size();i++) {
| ~^~~~~~~~~
dango3.cpp:14:9: warning: 'ind' may be used uninitialized in this function [-Wmaybe-uninitialized]
14 | int ind;
| ^~~