Problem GSS
User scse513
Submission Time 2026-11-03 17:45:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

GSS.cpp: In function ‘int main()’:
GSS.cpp:15:12: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘std::vector<int> [n]’
15 | sort(v.begin(), v.end());
| ^~~~~
GSS.cpp:15:23: error: request for member ‘end’ in ‘v’, which is of non-class type ‘std::vector<int> [n]’
15 | sort(v.begin(), v.end());
| ^~~
GSS.cpp:19:11: error: request for member ‘erase’ in ‘v’, which is of non-class type ‘std::vector<int> [n]’
19 | v.erase(v.begin() + i);
| ^~~~~
GSS.cpp:19:19: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘std::vector<int> [n]’
19 | v.erase(v.begin() + i);
| ^~~~~
GSS.cpp:21:27: error: request for member ‘size’ in ‘v’, which is of non-class type ‘std::vector<int> [n]’
21 | for (int i = 0; i < v.size(); i++){
| ^~