Problem alienalien
User Potato3218
Submission Time 2023-08-18 11:02:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

alienalien.cpp:10:12: error: ‘cin’ does not name a type; did you mean ‘sin’?
10 | int n; cin>>n;
| ^~~
| sin
alienalien.cpp:11:5: error: expected unqualified-id before ‘for’
11 | for(int i = 0; i < n; i++) cin>>A[i];
| ^~~
alienalien.cpp:11:20: error: ‘i’ does not name a type
11 | for(int i = 0; i < n; i++) cin>>A[i];
| ^
alienalien.cpp:11:27: error: ‘i’ does not name a type
11 | for(int i = 0; i < n; i++) cin>>A[i];
| ^
alienalien.cpp:12:5: error: expected unqualified-id before ‘for’
12 | for(int i = 0; i < n - 1; i++){
| ^~~
alienalien.cpp:12:20: error: ‘i’ does not name a type
12 | for(int i = 0; i < n - 1; i++){
| ^
alienalien.cpp:12:31: error: ‘i’ does not name a type
12 | for(int i = 0; i < n - 1;