Problem | flip |
---|---|
User | dacashew |
Submission Time | 2023-12-02 17:59:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flip.cpp: In function ‘int main()’:
flip.cpp:108:37: error: expected ‘]’ before ‘}’ token
108 | pq.push({dst[it.second,it.second});
| ^
| ]
flip.cpp:108:38: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)’
108 | pq.push({dst[it.second,it.second});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from flip.cpp:64:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair&