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

Compile Error

arrayngement.cpp: In function ‘int main()’:
arrayngement.cpp:10:8: error: ‘A’ was not declared in this scope
10 | cin>>A[i];
| ^
arrayngement.cpp:13:30: error: expected ‘;’ before ‘{’ token
13 | cout<<"6\n 5 1 4 2 3\n" {
| ^~
| ;
arrayngement.cpp:14:8: error: expected ‘}’ before ‘else’
14 | }else if(n==4){
| ^~~~
arrayngement.cpp:12:14: note: to match this ‘{’
12 | if(n==5){
| ^
arrayngement.cpp:15:31: error: expected ‘;’ before ‘{’ token
15 | 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() {
| ^