skyscraper.cpp: In function 'int main()':
skyscraper.cpp:50:47: warning: narrowing conversion of 'dogePositions.std::vector<int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
q.push(QEntry { dogePositions[0], 0, 0, true });
^
skyscraper.cpp:51:48: warning: narrowing conversion of 'dogePositions.std::vector<int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
q.push(QEntry { dogePositions[0], 0, 0, false });
^
skyscraper.cpp:68:63: warning: narrowing conversion of 'pBuilding' from 'int' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
q.push(QEntry { pBuilding, nextDoge, entry.cost + 1, true });
^
skyscraper.cpp:68:63: warning: narrowing conversion of 'nextDoge' from 'int' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
skyscraper.cpp:72:64: warning: narrowing conversion of 'nBuilding' from 'int' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
q.push(QEntry { nBuilding, nextDoge, entry.cost + 1, false });
^
skyscraper.cpp:72:64: warning: narrowing conversion of 'nextDoge' from 'int' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
skyscraper.cpp:81:67: warning: narrowing conversion of 'pBuilding' from 'int' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
q.push(QEntry { pBuilding, entry.doge(), entry.cost + 1, true });
^
skyscraper.cpp:89:68: warning: narrowing conversion of 'nBuilding' from 'int' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
q.push(QEntry { nBuilding, entry.doge(), entry.cost + 1, false });
^