Problem card
User themadpotato
Submission Time 2023-02-24 16:10:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:21:8: error: ‘instructions’ was not declared in this scope; did you mean ‘instruction’?
21 | if(instructions[i] == 'A') curr--;
| ^~~~~~~~~~~~
| instruction
card.cpp:26:18: error: expected ‘;’ before ‘}’ token
26 | curr = m-1+i
| ^
| ;
27 | }else{
| ~
card.cpp:28:9: error: ‘instructions’ was not declared in this scope; did you mean ‘instruction’?
28 | if(instructions[i] == 'A'){
| ^~~~~~~~~~~~
| instruction
card.cpp:30:6: error: expected ‘}’ before ‘else’
30 | else{
| ^~~~
card.cpp:28:32: note: to match this ‘{’
28 | if(instructions[i] == 'A'){
| ^