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

Compile Error

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;
| ^
paint.cpp:25:16: error: request for member ‘empty’ in ‘pq’, which is of non-class type ‘int’
25 | while (!pq.empty()) {
| ^~~~~
paint.cpp:26:22: error: request for member ‘top’ in ‘pq’, which is of non-class type ‘int’
26 |