Problem laptop
User yhmixeI
Submission Time 2024-06-21 15:53:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

laptop.cpp: In function ‘int main()’:
laptop.cpp:11:5: error: conflicting declaration ‘int a [n]’
11 | int a[n];
| ^
laptop.cpp:8:19: note: previous declaration as ‘int a’
8 | int n,t,c,m,y,w,l,a;cin>>n>>m;
| ^
laptop.cpp:16:4: error: invalid types ‘int[int]’ for array subscript
16 | a[i] = c;
| ^
laptop.cpp:28:3: error: incompatible types in assignment of ‘int’ to ‘int [y]’
28 | o=0;
| ^
laptop.cpp:31:12: error: invalid types ‘int[int]’ for array subscript
31 | p[c] = a[i]
| ^
laptop.cpp:35:5: error: invalid types ‘int [w][int [y]]’ for array subscript
35 | p[o] = a[i]
| ^
laptop.cpp:35:12: error: invalid types ‘int[int]’ for array subscript
35 | p[o] = a[i]
| ^