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

Compile Error

GSS.cpp: In function ‘int main()’:
GSS.cpp:9:16: error: ‘price’ was not declared in this scope
9 | cin >> price;
| ^~~~~
GSS.cpp:13:12: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘std::vector<int> [n]’
13 | sort(v.begin(), v.end());
| ^~~~~
GSS.cpp:13:23: error: request for member ‘end’ in ‘v’, which is of non-class type ‘std::vector<int> [n]’
13 | sort(v.begin(), v.end());
| ^~~
GSS.cpp:17:11: error: request for member ‘erase’ in ‘v’, which is of non-class type ‘std::vector<int> [n]’
17 | v.erase(v.begin() + i);
| ^~~~~
GSS.cpp:17:19: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘std::vector<int> [n]’
17 | v.erase(v.begin() + i);
| ^~~~~
GSS.cpp:19:27: error: request for member ‘size’ in ‘v’, which is of non