Problem volcanic
User IWKR
Submission Time 2023-01-30 07:49:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

volcanic.cpp: In function ‘bool isOkay(long long int)’:
volcanic.cpp:22:20: error: no matching function for call to ‘std::queue<std::pair<long long int, std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)’
22 | q.push({s1, s2});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from volcanic.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: ‘void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<long long int, std::pair<long long int, long long int> >; _Sequence = std::deque<std::pair<long long int, std::pair<long long int, long long int> >, std::allocator<std::pair<long long int, std::pair<long long int, long long int> > > >; std::queue<_Tp, _Sequence>::value_type = std::pair<lo