abduction2.cpp: In function 'int solve(int, int, int)':
abduction2.cpp:54:12: warning: narrowing conversion of 'x' from 'int' to 'short unsigned int' [-Wnarrowing]
54 | pq.push({x, y, 0, dir, 0});
| ^
abduction2.cpp:54:15: warning: narrowing conversion of 'y' from 'int' to 'short unsigned int' [-Wnarrowing]
54 | pq.push({x, y, 0, dir, 0});
| ^
abduction2.cpp:54:21: warning: narrowing conversion of 'dir' from 'int' to 'char' [-Wnarrowing]
54 | pq.push({x, y, 0, dir, 0});
| ^~~
abduction2.cpp:89:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
89 | pq.push({urm.first, urm.second, a[urm.first], WEST, n.dist + n.x - urm.first});
| ~~~~^~~~~
abduction2.cpp:89:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
89 | pq.push({urm.first, urm.second, a[urm.first], WEST, n.dist + n.x - urm.first});
| ~~~~^~~~~~
abduction2.cpp:90:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
90 | pq.push({urm.first, urm.second, a[urm.first], EAST, n.dist + n.x - urm.first});
| ~~~~^~~~~
abduction2.cpp:90:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
90 | pq.push({urm.first, urm.second, a[urm.first], EAST, n.dist + n.x - urm.first});
| ~~~~^~~~~~
abduction2.cpp:105:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
105 | pq.push({urm.first, urm.second, a[urm.first], WEST, n.dist + urm.first - n.x});
| ~~~~^~~~~
abduction2.cpp:105:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
105 | pq.push({urm.first, urm.second, a[urm.first], WEST, n.dist + urm.first - n.x});
| ~~~~^~~~~~
abduction2.cpp:106:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
106 | pq.push({urm.first, urm.second, a[urm.first], EAST, n.dist + urm.first - n.x});
| ~~~~^~~~~
abduction2.cpp:106:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
106 | pq.push({urm.first, urm.second, a[urm.first], EAST, n.dist + urm.first - n.x});
| ~~~~^~~~~~
abduction2.cpp:121:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
121 | pq.push({urm.first, urm.second, b[urm.second], NORTH, n.dist + urm.second - n.y});
| ~~~~^~~~~
abduction2.cpp:121:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
121 | pq.push({urm.first, urm.second, b[urm.second], NORTH, n.dist + urm.second - n.y});
| ~~~~^~~~~~
abduction2.cpp:122:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
122 | pq.push({urm.first, urm.second, b[urm.second], SOUTH, n.dist + urm.second - n.y});
| ~~~~^~~~~
abduction2.cpp:122:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
122 | pq.push({urm.first, urm.second, b[urm.second], SOUTH, n.dist + urm.second - n.y});
| ~~~~^~~~~~
abduction2.cpp:137:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
137 | pq.push({urm.first, urm.second, b[urm.second], NORTH, n.dist + n.y - urm.second});
| ~~~~^~~~~
abduction2.cpp:137:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
137 | pq.push({urm.first, urm.second, b[urm.second], NORTH, n.dist + n.y - urm.second});
| ~~~~^~~~~~
abduction2.cpp:138:20: warning: narrowing conversion of 'urm.std::pair<int, int>::first' from 'int' to 'short unsigned int' [-Wnarrowing]
138 | pq.push({urm.first, urm.second, b[urm.second], SOUTH, n.dist + n.y - urm.second});
| ~~~~^~~~~
abduction2.cpp:138:31: warning: narrowing conversion of 'urm.std::pair<int, int>::second' from 'int' to 'short unsigned int' [-Wnarrowing]
138 | pq.push({urm.first, urm.second, b[urm.second], SOUTH, n.dist + n.y - urm.second});
| ~~~~^~~~~~