Problem bingeeating
User CKCodeBreaker55
Submission Time 2024-12-23 20:59:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bingeeating.cpp: In function ‘ll solve(int, int, ll, const std::vector<long long int>&)’:
bingeeating.cpp:22:18: error: assignment of read-only location ‘(& a)->std::vector<long long int>::operator[](((std::vector<long long int>::size_type)j))’
22 | a[j] += cost;