Problem chickensoup
User bribritt
Submission Time 2023-12-06 11:09:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

chickensoup.cpp: In function ‘int main()’:
chickensoup.cpp:10:10: error: conflicting declaration ‘long long int b [n]’
10 | int a[n],b[n],c[n],d[n];cin>>a[0];
| ^
chickensoup.cpp:9:5: note: previous declaration as ‘long long int b’
9 | int b = (n+bucket-1)/bucket;
| ^
chickensoup.cpp:11:5: error: invalid types ‘long long int[int]’ for array subscript
11 | b[0]=c[0]=d[0]=a[0];
| ^
chickensoup.cpp:12:51: error: invalid types ‘long long int[long long int]’ for array subscript
12 | rep(i,1,n){cin>>a[i];d[i]=d[i-1]+(c[i]=c[i-1]+(b[i]=b[i-1]+a[i]));
| ^
chickensoup.cpp:12:58: error: invalid types ‘long long int[long long int]’ for array subscript
12 | rep(i,1,n){cin>>a[i];d[i]=d[i-1]+(c[i]=c[i-1]+(b[i]=b[i-1]+a[i]));
| ^
chickensoup.cpp:20:4: error: invalid t