Problem typo
User ensonchew
Submission Time 2025-05-27 22:35:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typo.cpp: In function ‘int main()’:
typo.cpp:17:18: error: expected ‘;’ before ‘}’ token
17 | w.push_back(i)
| ^
| ;
18 | }
| ~
typo.cpp: At global scope:
typo.cpp:23:2: error: expected unqualified-id before ‘if’
23 | if (w.size() < 2 and w[0] == w[1] + 1){
| ^~
typo.cpp:25:4: error: expected unqualified-id before ‘else’
25 | } else {
| ^~~~
typo.cpp:29:2: error: expected unqualified-id before ‘return’
29 | return 0;
| ^~~~~~
typo.cpp:30:1: error: expected declaration before ‘}’ token
30 | }
| ^