Problem paint
User supercel980
Submission Time 2024-08-15 18:28:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp:10:33: error: return type specification for constructor invalid
10 | bool comparator()(Job& a, Job& b) {
| ^
paint.cpp:10:1: error: ‘comparator’ declared as function returning a function
10 | bool comparator()(Job& a, Job& b) {
| ^~~~
paint.cpp:13:2: error: expected ‘;’ after struct definition
13 | }
| ^
| ;
paint.cpp: In function ‘int main()’:
paint.cpp:24:36: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
24 | priority_queue<Job, vector<jobs>, comparator> pq;
| ^
paint.cpp:24:36: note: expected a type, got ‘jobs’
paint.cpp:24:36: error: template argument 2 is invalid
paint.cpp:24:49: error: template argument 2 is invalid
24 | priority_queue<Job, vector<jobs>, comparator> pq;
|