Problem paint
User Teeskit
Submission Time 2025-11-12 11:49:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:26:33: error: expected ‘;’ before ‘}’ token
26 | p.push_back(({a[q], b[q]}));
| ^
| ;
paint.cpp:26:35: error: no matching function for call to ‘std::vector<std::pair<long long int, long long int> >::push_back(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type)’
26 | p.push_back(({a[q], b[q]}));
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from paint.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1184:7: note: candidate: ‘void st