Problem 3nplus1II
User isaackhong
Submission Time 2023-01-07 14:14:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:20:8: error: expected ‘}’ before ‘else’
20 | } else{
| ^~~~
3nplus1II.cpp:13:14: note: to match this ‘{’
13 | if (a != 1){
| ^
3nplus1II.cpp:21:10: error: expected ‘;’ before ‘x’
21 | a = -1
| ^
| ;
22 | x.push_back(a);
| ~
3nplus1II.cpp:26:1: error: expected ‘}’ at end of input
26 | }
| ^
3nplus1II.cpp:7:12: note: to match this ‘{’
7 | int main() {
| ^