Problem card
User themadpotato
Submission Time 2023-02-24 16:10:54
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'){
| ^~~~~~~~~~~~
| instruction
card.cpp:28:18: error: expected ‘;’ before ‘}’ token
28 | curr = m-1+i
| ^
| ;
29 | }else{
| ~
card.cpp:30:9: error: ‘instructions’ was not declared in this scope; did you mean ‘instruction’?
30 | if(instructions[i] == 'A'){
| ^~~~~~~~~~~~
| instruction
card.cpp:32:6: error: expected ‘}’ before ‘else’
32 | else{
| ^~~~
card.cpp:30:32: note: to match this ‘{’
30 | if(instructions[i] == 'A'){
| ^