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

Compile Error

typo.cpp: In function ‘int main()’:
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:34:1: error: expected ‘}’ at end of input
34 | }
| ^
typo.cpp:16:33: note: to match this ‘{’
16 | for (int i = 0; i < n; ++i) {
| ^
typo.cpp:34:1: error: expected ‘}’ at end of input
34 | }
| ^
typo.cpp:6:12: note: to match this ‘{’
6 | int main() {
| ^