Problem hacked
User helloworld
Submission Time 2024-11-03 09:54:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hacked.cpp: In function ‘int main()’:
hacked.cpp:18:47: error: expected ‘;’ before ‘else’
18 | if(n == 2) cout << "4\n-3 -2 -1 4"
| ^
| ;
19 | else if(n == 6) cout << "3\n-3 -1 4";
| ~~~~
hacked.cpp:26:45: error: expected ‘;’ before ‘else’
26 | if(n == 2) cout << "4\n-4 1 2 3"
| ^
| ;
27 | else if(n == 6) cout << "3\n-4 1 3";
| ~~~~