Problem | adventure |
---|---|
User | AustinPi |
Submission Time | 2024-07-05 15:43:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adventure.cpp: In function ‘int main()’:
adventure.cpp:16:5: error: ‘else’ without a previous ‘if’
16 | }else if (b[i]=='D')
| ^~~~
adventure.cpp:16:16: error: ‘i’ was not declared in this scope
16 | }else if (b[i]=='D')
| ^
adventure.cpp:18:5: error: ‘else’ without a previous ‘if’
18 | }else if (b[i]=='L')
| ^~~~
adventure.cpp:18:16: error: ‘i’ was not declared in this scope
18 | }else if (b[i]=='L')
| ^
adventure.cpp: At global scope:
adventure.cpp:20:5: error: expected unqualified-id before ‘else’
20 | }else if (b[i]=='R')
| ^~~~
adventure.cpp:22:4: error: expected declaration before ‘}’ token
22 | }
| ^
adventure.cpp:23:3: error: expected declaration before ‘}’ token
23 | }
| ^
adventure.cpp:24:4: error: ‘udtlt’ does not name a type
24 | udtlt=u+d; lrtlt=l+r;
| ^~~~