skyscraper.cpp: In function 'int main()':
skyscraper.cpp:26:16: warning: narrowing conversion of 'a[0]' from 'int' to 'short unsigned int' [-Wnarrowing]
26 | arr[0]={a[0],p[0],0};
| ~~~^
skyscraper.cpp:26:21: warning: narrowing conversion of 'p[0]' from 'int' to 'short unsigned int' [-Wnarrowing]
26 | arr[0]={a[0],p[0],0};
| ~~~^
skyscraper.cpp:32:62: warning: narrowing conversion of '(x - po)' from 'int' to 'short unsigned int' [-Wnarrowing]
32 | if(x>=po&&s[x-po].find(po)==s[x-po].end())arr[++b]={x-po,po,w+1},s[x-po][po];
| ~^~~
skyscraper.cpp:32:66: warning: narrowing conversion of 'po' from 'int' to 'short unsigned int' [-Wnarrowing]
32 | if(x>=po&&s[x-po].find(po)==s[x-po].end())arr[++b]={x-po,po,w+1},s[x-po][po];
| ^~
skyscraper.cpp:32:70: warning: narrowing conversion of '(w + 1)' from 'int' to 'short unsigned int' [-Wnarrowing]
32 | if(x>=po&&s[x-po].find(po)==s[x-po].end())arr[++b]={x-po,po,w+1},s[x-po][po];
| ~^~
skyscraper.cpp:33:63: warning: narrowing conversion of '(x + po)' from 'int' to 'short unsigned int' [-Wnarrowing]
33 | if(x+po<n&&s[x+po].find(po)==s[x+po].end())arr[++b]={x+po,po,w+1},s[x+po][po];
| ~^~~
skyscraper.cpp:33:67: warning: narrowing conversion of 'po' from 'int' to 'short unsigned int' [-Wnarrowing]
33 | if(x+po<n&&s[x+po].find(po)==s[x+po].end())arr[++b]={x+po,po,w+1},s[x+po][po];
| ^~
skyscraper.cpp:33:71: warning: narrowing conversion of '(w + 1)' from 'int' to 'short unsigned int' [-Wnarrowing]
33 | if(x+po<n&&s[x+po].find(po)==s[x+po].end())arr[++b]={x+po,po,w+1},s[x+po][po];
| ~^~
skyscraper.cpp:37:66: warning: narrowing conversion of '(x - po)' from 'int' to 'short unsigned int' [-Wnarrowing]
37 | if(x>=po&&s[x-po].find(po)==s[x-po].end())arr[++b]={x-po,po,w+1},s[x-po][po];
| ~^~~
skyscraper.cpp:37:70: warning: narrowing conversion of 'po' from 'int' to 'short unsigned int' [-Wnarrowing]
37 | if(x>=po&&s[x-po].find(po)==s[x-po].end())arr[++b]={x-po,po,w+1},s[x-po][po];
| ^~
skyscraper.cpp:37:74: warning: narrowing conversion of '(w + 1)' from 'int' to 'short unsigned int' [-Wnarrowing]
37 | if(x>=po&&s[x-po].find(po)==s[x-po].end())arr[++b]={x-po,po,w+1},s[x-po][po];
| ~^~
skyscraper.cpp:38:67: warning: narrowing conversion of '(x + po)' from 'int' to 'short unsigned int' [-Wnarrowing]
38 | if(x+po<n&&s[x+po].find(po)==s[x+po].end())arr[++b]={x+po,po,w+1},s[x+po][po];
| ~^~~
skyscraper.cpp:38:71: warning: narrowing conversion of 'po' from 'int' to 'short unsigned int' [-Wnarrowing]
38 | if(x+po<n&&s[x+po].find(po)==s[x+po].end())arr[++b]={x+po,po,w+1},s[x+po][po];
| ^~
skyscraper.cpp:38:75: warning: narrowing conversion of '(w + 1)' from 'int' to 'short unsigned int' [-Wnarrowing]
38 | if(x+po<n&&s[x+po].find(po)==s[x+po].end())arr[++b]={x+po,po,w+1},s[x+po][po];
| ~^~
skyscraper.cpp:21:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | scanf("%d %d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~~
skyscraper.cpp:23:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
23 | scanf("%d %d",&a[i],&p[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~