skyscraper.cpp: In function 'int main()':
skyscraper.cpp:69:46: warning: narrowing conversion of '(1 + ((int)c))' from 'int' to 'short unsigned int' [-Wnarrowing]
69 | cost[pos - mov][mov] = 1 + c, pq.push({1 + c, pos - mov, mov});
| ~~^~~
skyscraper.cpp:69:55: warning: narrowing conversion of '(((int)pos) - ((int)mov))' from 'int' to 'short unsigned int' [-Wnarrowing]
69 | cost[pos - mov][mov] = 1 + c, pq.push({1 + c, pos - mov, mov});
| ~~~~^~~~~
skyscraper.cpp:71:46: warning: narrowing conversion of '(1 + ((int)c))' from 'int' to 'short unsigned int' [-Wnarrowing]
71 | cost[pos + mov][mov] = 1 + c, pq.push({1 + c, pos + mov, mov});
| ~~^~~
skyscraper.cpp:71:55: warning: narrowing conversion of '(((int)pos) + ((int)mov))' from 'int' to 'short unsigned int' [-Wnarrowing]
71 | cost[pos + mov][mov] = 1 + c, pq.push({1 + c, pos + mov, mov});
| ~~~~^~~~~
skyscraper.cpp:80:43: warning: narrowing conversion of '(1 + ((int)c))' from 'int' to 'short unsigned int' [-Wnarrowing]
80 | cost[pos - x][x] = 1 + c, pq.push({1 + c, pos - x, x});
| ~~^~~
skyscraper.cpp:80:52: warning: narrowing conversion of '(((int)pos) - ((int)x))' from 'int' to 'short unsigned int' [-Wnarrowing]
80 | cost[pos - x][x] = 1 + c, pq.push({1 + c, pos - x, x});
| ~~~~^~~
skyscraper.cpp:82:43: warning: narrowing conversion of '(1 + ((int)c))' from 'int' to 'short unsigned int' [-Wnarrowing]
82 | cost[pos + x][x] = 1 + c, pq.push({1 + c, pos + x, x});
| ~~^~~
skyscraper.cpp:82:52: warning: narrowing conversion of '(((int)pos) + ((int)x))' from 'int' to 'short unsigned int' [-Wnarrowing]
82 | cost[pos + x][x] = 1 + c, pq.push({1 + c, pos + x, x});
| ~~~~^~~