Problem typo
User Anthony
Submission Time 2025-04-19 15:55:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typo.cpp: In function ‘int main()’:
typo.cpp:19:2: error: expected ‘,’ or ‘;’ before ‘int’
19 | int second = -1;
| ^~~
typo.cpp:25:24: error: ‘second’ was not declared in this scope
25 | } else if (second == -1) {
| ^~~~~~
typo.cpp:34:9: error: ‘second’ was not declared in this scope
34 | if (second != -1 && second == first + 1) {
| ^~~~~~