skyscraper.cpp: In function 'int solve()':
skyscraper.cpp:35:15: 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'
35 | val=q.front().first;
| ^~~~~
skyscraper.cpp:36:13: 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'
36 | x=q.front().second.first;
| ^~~~~
skyscraper.cpp:37:16: 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'
37 | dist=q.front().second.second;
| ^~~~~