Problem leftright
User Duk168
Submission Time 2024-06-29 12:49:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leftright.cpp:43:2: error: expected ‘;’ after struct definition
43 | }
| ^
| ;
leftright.cpp: In function ‘void rev()’:
leftright.cpp:45:13: error: ‘up_b’ was not declared in this scope
45 | if(up_b){
| ^~~~
leftright.cpp:47:13: error: ‘up_a’ was not declared in this scope
47 | up_a = true;
| ^~~~
leftright.cpp:50:13: error: ‘up_a’ was not declared in this scope
50 | up_a = false;
| ^~~~
leftright.cpp:53:3: error: ‘balance’ was not declared in this scope
53 | balance();
| ^~~~~~~
leftright.cpp: In function ‘void output()’:
leftright.cpp:56:12: error: ‘up_b’ was not declared in this scope
56 | if(up_b){
| ^~~~
leftright.cpp:57:20: error: ‘a’ was not declared in this scope
57 | while(!a.empty()){
| ^
leftright.cpp:60:21: error