Problem dayum
User cheryltkx
Submission Time 2026-03-07 10:35:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dayum.cpp: In function ‘int main()’:
dayum.cpp:5:27: error: expression list treated as compound expression in initializer [-fpermissive]
5 | int arr[5](16,17,18,19,20)
| ^
dayum.cpp:5:27: error: array must be initialized with a brace-enclosed initializer
dayum.cpp:7:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
7 | cin >> n;
| ^
| yn
dayum.cpp:11:22: error: expected ‘)’ before ‘{’ token
11 | else if (n= arr[1]{
| ~ ^
| )
dayum.cpp:26:9: error: expected primary-expression before ‘}’ token
26 | }
| ^