Problem chope
User Elnathan
Submission Time 2023-12-09 11:48:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

chope.cpp: In function ‘int main()’:
chope.cpp:13:8: error: ‘i’ was not declared in this scope
13 | int a[i];
| ^
chope.cpp:15:10: error: ‘a’ was not declared in this scope
15 | cin >> a[i];
| ^
chope.cpp:17:6: error: ‘a’ was not declared in this scope
17 | if (a[n - 1] == 2 && n > 1) {
| ^