foo.cc: In function 'int main()':
foo.cc:35:5: error: 'vector' was not declared in this scope
35 | vector<int> ans;
| ^~~~~~
foo.cc:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
4 | #include <algorithm>
+++ |+#include <vector>
5 |
foo.cc:35:12: error: expected primary-expression before 'int'
35 | vector<int> ans;
| ^~~
foo.cc:41:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
41 | ans.clear();
| ^~~
| abs
foo.cc:46:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
46 | ans.push_back(prime.first);
| ^~~
| abs
foo.cc:49:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
49 | sort(ans.begin(), ans.end());
| ^~~
| abs
[Hydro](https://hydro.ac)提供评测服务