Problem lineup2
User back2square1
Submission Time 2023-04-15 16:13:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lineup2.cpp: In function ‘int main()’:
lineup2.cpp:9:37: error: ‘v’ was not declared in this scope
9 | if (j==1) {int k; cin >> k; v.push_back(k);}
| ^
lineup2.cpp:10:14: error: ‘v’ was not declared in this scope
10 | else v.pop_back();
| ^
lineup2.cpp:12:10: error: ‘v’ was not declared in this scope
12 | sort(v.begin(), v.end(), greater<int>());
| ^