Problem paint
User jerrielchangjiebin
Submission Time 2024-12-16 15:34:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:21:35: error: expected ‘;’ before ‘long’
21 | sort(jobs.begin(), jobs.end())
| ^
| ;
22 |
23 | long long total_cost = 0;
| ~~~~
paint.cpp:25:9: error: ‘total_cost’ was not declared in this scope
25 | total_cost += jobs[i].first + (jobs[i].second * i);
| ^~~~~~~~~~
paint.cpp:28:1: error: expected ‘}’ at end of input
28 | }
| ^
paint.cpp:7:12: note: to match this ‘{’
7 | int main() {
| ^