Problem assistance
User MegaG
Submission Time 2025-10-26 10:56:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

assistance.cpp: In function ‘int main()’:
assistance.cpp:14:21: error: ‘n’ was not declared in this scope
14 | for(int i = 0; i < n; i++){
| ^
assistance.cpp:15:16: error: expected ‘;’ before ‘}’ token
15 | cin >> arr[i]
| ^
| ;
16 | }
| ~
assistance.cpp:19:6: error: conflicting declaration ‘long long int arr [0]’
19 | int arr[0] = 100;
| ^~~
assistance.cpp:13:6: note: previous declaration as ‘long long int arr [5]’
13 | int arr[5];
| ^~~
assistance.cpp:22:21: error: ‘n’ was not declared in this scope
22 | for(int i = 0; i < n; i++){
| ^