Problem deforestation
User Tyx2019
Submission Time 2023-11-21 20:16:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

deforestation.cpp: In function ‘int32_t main()’:
deforestation.cpp:23:97: error: expression list treated as compound expression in functional cast [-fpermissive]
23 | priority_queue<pair<int,int>,vector<pair<int,int>>,comp<bool(pair<int,int>,pair<int,int>)>> pq(comp);
| ^
deforestation.cpp:23:98: error: template argument 3 is invalid
23 | priority_queue<pair<int,int>,vector<pair<int,int>>,comp<bool(pair<int,int>,pair<int,int>)>> pq(comp);
| ^~
deforestation.cpp:23:104: error: invalid conversion from ‘bool (*)(std::pair<int, int>, std::pair<int, int>)’ to ‘int’ [-fpermissive]
23 | priority_queue<pair<int,int>,vector<pair<