Problem paint
User jamallikestocode
Submission Time 2026-03-12 20:45:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:19:5: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
19 | sort(jobs.begin(), jobs.end(), [](auto &a, auto &b){
| ^~~~
| qsort
paint.cpp:23:64: error: expected ‘;’ before ‘}’ token
23 | total_price += (jobs[j].first + ((j+1)*jobs[j].second))
| ^
| ;
24 | }
| ~