Problem arrayngement
User zien
Submission Time 2026-06-26 16:14:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayngement.cpp: In function ‘int main()’:
arrayngement.cpp:16:8: error: unable to find numeric literal operator ‘operator""x’
16 | for (n=2x)
| ^~
arrayngement.cpp:18:11: error: ‘i’ was not declared in this scope
18 | cout << c[i] << " "; //rearragement after sorting
| ^
arrayngement.cpp:20:1: error: expected primary-expression before ‘return’
20 | return 0;
| ^~~~~~
arrayngement.cpp:18:21: error: expected ‘)’ before ‘return’
18 | cout << c[i] << " "; //rearragement after sorting
| ^
| )
19 |
20 | return 0;
| ~~~~~~
arrayngement.cpp:16:5: note: to match this ‘(’
16 | for (n=2x)
| ^