Problem waveway4
User we
Submission Time 2026-11-06 16:41:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waveway4.cpp: In function ‘int main()’:
waveway4.cpp:24:36: error: lvalue required as left operand of assignment
24 | ((r[counter]-l[counter])+1)+=b;
| ^
waveway4.cpp:37:2: error: expected ‘}’ at end of input
37 | }
| ^
waveway4.cpp:28:26: note: to match this ‘{’
28 | for (int i = 0;i<q;++i){
| ^
waveway4.cpp:37:2: error: expected ‘}’ at end of input
37 | }
| ^
waveway4.cpp:5:14: note: to match this ‘{’
5 | signed main(){
| ^