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