| Problem | paint |
|---|---|
| User | Nayaa2403 |
| Submission Time | 2026-07-07 11:54:19 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
paint.cpp: In function ‘int main()’:
paint.cpp:8:1: error: ‘first’ was not declared in this scope
8 | first[n];
| ^~~~~
paint.cpp:9:1: error: ‘second’ was not declared in this scope
9 | second[n];
| ^~~~~~
paint.cpp:17:20: error: expected ‘;’ before ‘)’ token
17 | for (int i=0<n; i++){
| ^
| ;
paint.cpp:21:5: error: ‘class std::priority_queue<std::pair<int, int> >’ has no member named ‘push_back’
21 | dq.push_back(pair);
| ^~~~~~~~~
paint.cpp:26:10: error: ‘class std::priority_queue<std::pair<int, int> >’ has no member named ‘first’
26 | f=dq.first[i];
| ^~~~~
paint.cpp:27:7: error: ‘class std::priority_queue<std::pair<int, int> >’ has no member named ‘second’
27 | s=dq.second[i];
| ^~~~~~