Problem collectmushrooms7
User LeonKong
Submission Time 2026-11-11 10:35:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms7.cpp: In function ‘int main()’:
collectmushrooms7.cpp:14:20: error: expected ‘;’ before ‘for’
14 | fill(b, b+n, 0)
| ^
| ;
15 | for(int i = 0; i < n; i++)cin >> a[i];
| ~~~
collectmushrooms7.cpp:15:20: error: ‘i’ was not declared in this scope
15 | for(int i = 0; i < n; i++)cin >> a[i];
| ^