abduction2.cpp: In function 'int solve(int, int, int)':
abduction2.cpp:46:12: warning: narrowing conversion of 'x' from 'int' to 'short unsigned int' [-Wnarrowing]
46 | pq.push({x, y, 0, dir, 0});
| ^
abduction2.cpp:46:15: warning: narrowing conversion of 'y' from 'int' to 'short unsigned int' [-Wnarrowing]
46 | pq.push({x, y, 0, dir, 0});
| ^
abduction2.cpp:46:21: warning: narrowing conversion of 'dir' from 'int' to 'char' [-Wnarrowing]
46 | pq.push({x, y, 0, dir, 0});
| ^~~
abduction2.cpp:77:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
77 | pq.push({urm.first, urm.second, a[urm.first], WEST, n.dist + n.x - urm.first});
| ~~~~^~~~~
abduction2.cpp:77:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
77 | pq.push({urm.first, urm.second, a[urm.first], WEST, n.dist + n.x - urm.first});
| ~~~~^~~~~~
abduction2.cpp:78:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
78 | pq.push({urm.first, urm.second, a[urm.first], EAST, n.dist + n.x - urm.first});
| ~~~~^~~~~
abduction2.cpp:78:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
78 | pq.push({urm.first, urm.second, a[urm.first], EAST, n.dist + n.x - urm.first});
| ~~~~^~~~~~
abduction2.cpp:93:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
93 | pq.push({urm.first, urm.second, a[urm.first], WEST, n.dist + urm.first - n.x});
| ~~~~^~~~~
abduction2.cpp:93:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
93 | pq.push({urm.first, urm.second, a[urm.first], WEST, n.dist + urm.first - n.x});
| ~~~~^~~~~~
abduction2.cpp:94:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
94 | pq.push({urm.first, urm.second, a[urm.first], EAST, n.dist + urm.first - n.x});
| ~~~~^~~~~
abduction2.cpp:94:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
94 | pq.push({urm.first, urm.second, a[urm.first], EAST, n.dist + urm.first - n.x});
| ~~~~^~~~~~
abduction2.cpp:109:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
109 | pq.push({urm.first, urm.second, b[urm.second], NORTH, n.dist + urm.second - n.y});
| ~~~~^~~~~
abduction2.cpp:109:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
109 | pq.push({urm.first, urm.second, b[urm.second], NORTH, n.dist + urm.second - n.y});
| ~~~~^~~~~~
abduction2.cpp:110:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
110 | pq.push({urm.first, urm.second, b[urm.second], SOUTH, n.dist + urm.second - n.y});
| ~~~~^~~~~
abduction2.cpp:110:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
110 | pq.push({urm.first, urm.second, b[urm.second], SOUTH, n.dist + urm.second - n.y});
| ~~~~^~~~~~
abduction2.cpp:125:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
125 | pq.push({urm.first, urm.second, b[urm.second], NORTH, n.dist + n.y - urm.second});
| ~~~~^~~~~
abduction2.cpp:125:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
125 | pq.push({urm.first, urm.second, b[urm.second], NORTH, n.dist + n.y - urm.second});
| ~~~~^~~~~~
abduction2.cpp:126:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
126 | pq.push({urm.first, urm.second, b[urm.second], SOUTH, n.dist + n.y - urm.second});
| ~~~~^~~~~
abduction2.cpp:126:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
126 | pq.push({urm.first, urm.second, b[urm.second], SOUTH, n.dist + n.y - urm.second});
| ~~~~^~~~~~