Problem paint
User Nayaa2403
Submission Time 2026-07-07 10:56:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:12:8: error: ‘class std::deque<std::pair<int, int> >’ has no member named ‘second’
12 | dq.second.push_back(y);
| ^~~~~~
paint.cpp:17:8: error: ‘class std::deque<std::pair<int, int> >’ has no member named ‘first’
17 | dq.first.push_back(y);
| ^~~~~
paint.cpp:23:7: error: ‘class std::deque<std::pair<int, int> >’ has no member named ‘first’
23 | f=dq.first[i];
| ^~~~~
paint.cpp:24:7: error: ‘class std::deque<std::pair<int, int> >’ has no member named ‘second’
24 | s=dq.second[i]
| ^~~~~~