Problem ghostrule
User bribritt
Submission Time 2023-12-30 17:00:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ghostrule.cpp: In function ‘void up(long long int, long long int)’:
ghostrule.cpp:27:21: error: ‘v’ was not declared in this scope
27 | if(l&1) seg[l++]+=v;
| ^
ghostrule.cpp:28:21: error: ‘v’ was not declared in this scope
28 | if(r&1) seg[--r]+=v;
| ^
ghostrule.cpp: In function ‘long long int st3(long long int, long long int, long long int)’:
ghostrule.cpp:36:41: error: too many arguments to function ‘void up(long long int, long long int)’
36 | for(auto i: humans) up(pre[i],post[i],1);
| ^
ghostrule.cpp:25:6: note: declared here
25 | void up(int l, int r) {
| ^~