Problem paint
User Nayaa2403
Submission Time 2026-07-07 11:54:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:12:18: error: expected ‘;’ before ‘}’ token
12 | cin >> second[i]
| ^
| ;
13 | }
| ~
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];
| ^~~~~~