Problem arrayngement
User Zubair
Submission Time 2026-06-26 15:23:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayngement.cpp: In function ‘int main()’:
arrayngement.cpp:12:30: error: expected ‘;’ before ‘{’ token
12 | cout<<"6\n 5 1 4 2 3\n" {
| ^~
| ;
arrayngement.cpp:13:8: error: expected ‘}’ before ‘else’
13 | }else if(n==4){
| ^~~~
arrayngement.cpp:11:14: note: to match this ‘{’
11 | if(n==5){
| ^
arrayngement.cpp:14:31: error: expected ‘;’ before ‘{’ token
14 | cout<<"1\n 3 -5 2 -1\n" {
| ^~
| ;
arrayngement.cpp:21:2: error: expected ‘}’ at end of input
21 | }
| ^
arrayngement.cpp:5:16: note: to match this ‘{’
5 | signed main() {
| ^