skyscraper.cpp: In function 'void solve()':
skyscraper.cpp:48:11: warning: unused variable 'y' [-Wunused-variable]
48 | int x , y ;
| ^
skyscraper.cpp: In function 'void fopn(std::string)':
skyscraper.cpp:8:31: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | void fopn(string name){freopen((name+".in").c_str(),"r",stdin); freopen((name+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
skyscraper.cpp:8:72: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | void fopn(string name){freopen((name+".in").c_str(),"r",stdin); freopen((name+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
skyscraper.cpp: In function 'void solve()':
skyscraper.cpp:56:10: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
56 | if ( d[b] == inf ) cout << -1 ;
| ~~~^
skyscraper.cpp:55:10: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
55 | djikstra(a) ;
| ~~~~~~~~^~~