Problem treepruning
User dacashew
Submission Time 2023-12-18 16:56:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

treepruning.cpp: In function ‘int main()’:
treepruning.cpp:114:21: error: no matching function for call to ‘std::queue<long long int>::push(<brace-enclosed initializer list>)’
114 | q.push({it,node});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from treepruning.cpp:59:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: ‘void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = long long int; _Sequence = std::deque<long long int, std::allocator<long long int> >; std::queue<_Tp, _Sequence>::value_type = long long int]’
259 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:259:30: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type&’ {aka ‘const long long int&’}
259