Problem payraise
User newperson
Submission Time 2024-12-14 16:33:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

payraise.cpp:79:1: error: ‘arr’ does not name a type
79 | arr<ll> pre(1000000);
| ^~~
payraise.cpp:80:1: error: ‘arr’ does not name a type
80 | arr<ll> post(1000000);
| ^~~
payraise.cpp:81:1: error: ‘arr’ does not name a type
81 | arr<ll> v(1000000);
| ^~~
payraise.cpp: In function ‘void number_tree(ll, ll)’:
payraise.cpp:84:32: error: ‘v’ was not declared in this scope
84 | st.update(counter,counter, v[x]);
| ^
payraise.cpp:86:5: error: ‘pre’ was not declared in this scope
86 | pre[x] = counter++;
| ^~~
payraise.cpp:91:5: error: ‘post’ was not declared in this scope; did you mean ‘st’?
91 | post[x] = counter-1;
| ^~~~
| st
payraise.cpp: In function ‘void solve()’:
payraise.cpp:113:9: error: ‘v’ was not declared in this scope
113 | v[i] = a;
| ^
payraise.cpp:12