foo.cc: In function ‘int main(int, const char**)’:
foo.cc:32:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
32 | for (int i = 0; i < ans.size(); i++) {
| ~~^~~~~~~~~~~~
foo.cc:36:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
36 | if (i < ans.size() - 1)cout << " ";
| ~~^~~~~~~~~~~~~~~~