Problem typo
User WHEE29alt
Submission Time 2024-06-18 22:58:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typo.cpp: In function ‘int main()’:
typo.cpp:15:5: error: ‘str’ was not declared in this scope; did you mean ‘std’?
15 | str a,b;
| ^~~
| std
typo.cpp:19:5: error: ‘a’ was not declared in this scope
19 | a = s[i + 1] + s[i]
| ^
typo.cpp:19:9: error: ‘s’ was not declared in this scope
19 | a = s[i + 1] + s[i]
| ^
typo.cpp:24:4: error: expected ‘}’ before ‘else’
24 | else if (diff == 1){
| ^~~~
typo.cpp:18:27: note: to match this ‘{’
18 | if (diff == 0){
| ^
typo.cpp:31:23: error: expected ‘;’ before ‘return’
31 | cout << "Yes" << endl
| ^
| ;
32 |
33 | return 0;
| ~~~~~~
typo.cpp:34:1: error: expected ‘}’ at end of input
34 | }
| ^
typo.cpp:16:33: note: to match this ‘{