Problem musicalchairs
User carson
Submission Time 2025-12-07 18:42:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

musicalchairs.cpp:4:15: error: expected initializer before numeric constant
4 | const ll maxn 1e6+5;
| ^~~
musicalchairs.cpp:5:14: error: ‘maxn’ was not declared in this scope
5 | vector<ll> a(maxn);
| ^~~~
musicalchairs.cpp: In function ‘int main()’:
musicalchairs.cpp:13:29: error: expected ‘}’ at end of input
13 | for(int i = 1; i<= n; i++){
| ^
musicalchairs.cpp:13:29: error: expected ‘}’ at end of input
musicalchairs.cpp:10:28: note: to match this ‘{’
10 | for(ll p = 1; p <= t; p++){
| ^
musicalchairs.cpp:13:29: error: expected ‘}’ at end of input
13 | for(int i = 1; i<= n; i++){
| ^
musicalchairs.cpp:7:11: note: to match this ‘{’
7 | int main(){
| ^