Problem paint
User R9q5P8
Submission Time 2025-10-25 13:45:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:20:2: error: declaration of ‘auto min_itr’ has no initializer
20 | auto min_itr;
| ^~~~
paint.cpp:26:41: error: ‘mint_itr’ was not declared in this scope
26 | min_idx = distance(interests.begin(), mint_itr);
| ^~~~~~~~
paint.cpp:27:23: error: ‘idx’ was not declared in this scope
27 | total_cost += costs[idx]+interests[idx]*i;
| ^~~