skyscraper.cpp: In function 'int main()':
skyscraper.cpp:26:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<std::pair<int, int>, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for (int i=0; i<vec.size(); i++)
| ~^~~~~~~~~~~
skyscraper.cpp:29:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<std::pair<int, int>, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | if (i==vec.size()-1 || vec[i].first!=vec[i+1].first)
| ~^~~~~~~~~~~~~~
skyscraper.cpp:34:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | while (ind<tmp.size() && tmp[ind]<=j)
| ~~~^~~~~~~~~~~
skyscraper.cpp:36:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | if (ind==tmp.size())
| ~~~^~~~~~~~~~~~
skyscraper.cpp:62:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | for (int i=0; i<adj[u].size(); i++)
| ~^~~~~~~~~~~~~~
skyscraper.cpp:72:15: warning: 'e' may be used uninitialized in this function [-Wmaybe-uninitialized]
72 | if (dist[e]==1e9)
| ~~~~~~^