Problem area
User JhoCyber
Submission Time 2024-12-19 16:47:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area.cpp: In function ‘int main()’:
area.cpp:6:9: error: conflicting declaration ‘int a [n]’
6 | int a[n];
| ^
area.cpp:5:11: note: previous declaration as ‘int a’
5 | int n,a,b;
| ^
area.cpp:11:12: error: invalid types ‘int[int]’ for array subscript
11 | a[i]= a*b;
| ^
area.cpp:15:21: error: invalid types ‘int[int]’ for array subscript
15 | counter+=a[i];
| ^