Problem rmaxq
User Pyrros
Submission Time 2023-02-22 19:16:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rmaxq.cpp: In function ‘void update(int, int, int, int, int, std::vector<long long int>&, int)’:
rmaxq.cpp:70:58: error: expected primary-expression before ‘)’ token
70 | tree[ind] = max(update(s, mid, qs, qe, diff, v, ind*2+1,), update(mid+1, e, qs, qe, diff, v, ind*2+2));
| ^
rmaxq.cpp: In function ‘int main()’:
rmaxq.cpp:100:24: error: ‘v’ was not declared in this scope
100 | update(0, n-1,a,b,c,v,0);
| ^