Problem paint
User Nayaa2403
Submission Time 2026-07-07 10:25:37
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:22:11: error: ‘class std::deque<std::pair<int, int> >’ has no member named ‘second’
22 | t+=dq.second + i*dq.first;
| ^~~~~~
paint.cpp:22:25: error: ‘class std::deque<std::pair<int, int> >’ has no member named ‘first’
22 | t+=dq.second + i*dq.first;
| ^~~~~
paint.cpp:27:1: error: expected ‘}’ at end of input
27 | }
| ^
paint.cpp:5:15: note: to match this ‘{’
5 | signed main() {
| ^