Problem flip
User justin271828
Submission Time 2024-11-17 21:48:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flip.cpp: In function ‘int main()’:
flip.cpp:38:39: error: ‘class std::priority_queue<std::pair<int, std::pair<int, int> >, std::vector<std::pair<int, std::pair<int, int> > >, std::greater<std::pair<int, std::pair<int, int> > > >’ has no member named ‘front’
38 | pair<int, pair<int, int>> temp = pq.front();
| ^~~~~
flip.cpp:46:5: error: ‘p’ was not declared in this scope; did you mean ‘pq’?
46 | v[p.second.first][p.second.second] = true;}
| ^
| pq
flip.cpp:52:1: error: expected ‘}’ at end of input
52 | }
| ^
flip.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^