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

Compile Error

typo.cpp:2:20: error: expected ‘;’ before ‘int’
2 | using namespace std
| ^
| ;
3 |
4 | int main() {
| ~~~
typo.cpp: In function ‘int main()’:
typo.cpp:18:12: error: expected initializer before ‘==’ token
18 | int first == -1;
| ^~
typo.cpp:19:13: error: expected initializer before ‘==’ token
19 | int second == -1;
| ^~
typo.cpp:23:8: error: ‘first’ was not declared in this scope
23 | if (first == -1) {
| ^~~~~
typo.cpp:25:15: error: ‘second’ was not declared in this scope
25 | } else if (second == -1) {
| ^~~~~~
typo.cpp:33:6: error: ‘second’ was not declared in this scope
33 | if (second != -1 && second == first + 1) {
| ^~~~~~
typo.cpp:33:32: error: ‘first’ was not declared in this scope
33 | if (second != -1 && second ==