Problem alienalien
User ILBBBM
Submission Time 2024-02-05 16:12:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

alienalien.cpp:26:5: error: ‘cin’ does not name a type
26 | cin >> N;
| ^~~
alienalien.cpp:27:12: error: array bound is not an integer constant before ‘]’ token
27 | int A[N];
| ^
alienalien.cpp:28:5: error: expected unqualified-id before ‘for’
28 | for (int i = 0; i < N; i++) {
| ^~~
alienalien.cpp:28:21: error: ‘i’ does not name a type
28 | for (int i = 0; i < N; i++) {
| ^
alienalien.cpp:28:28: error: ‘i’ does not name a type
28 | for (int i = 0; i < N; i++) {
| ^
alienalien.cpp:31:5: error: expected unqualified-id before ‘for’
31 | for (int i = 0; i < N - 1; i++) {
| ^~~
alienalien.cpp:31:21: error: ‘i’ does not name a type
31 | for (int i = 0; i < N - 1; i++) {
| ^
alienalien.cpp:31:32: error: ‘i’ does not name a type