Problem typo
User Khai
Submission Time 2024-06-19 09:57:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typo.cpp: In function ‘int main()’:
typo.cpp:20:30: error: expected ‘;’ before ‘if’
20 | strcpy [s[0], s[s.size()-1]]
| ^
| ;
21 | if (s==t){
| ~~
typo.cpp:24:5: error: expected ‘(’ before ‘else’
24 | if else (s!=t){
| ^~~~
| (
typo.cpp:29:5: error: expected ‘(’ before ‘else’
29 | if else(s == t){
| ^~~~
| (
typo.cpp: At global scope:
typo.cpp:35:1: error: expected declaration before ‘}’ token
35 | }
| ^