skyscraper.cpp: In function 'int main()':
skyscraper.cpp:52: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:53: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:70: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:70:63: warning: narrowing conversion of 'nextDoge' from 'int' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
skyscraper.cpp:74: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:74:64: warning: narrowing conversion of 'nextDoge' from 'int' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
skyscraper.cpp:83: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:91: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 });
^