skyscraper.cpp: In function 'int main()':
skyscraper.cpp:50:52: 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_back(QEntry { dogePositions[0], 0, 0, true });
^
skyscraper.cpp:51:53: 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_back(QEntry { dogePositions[0], 0, 0, false });
^
skyscraper.cpp:67:69: warning: narrowing conversion of 'nextDoge' from 'int' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
q.push_front(QEntry { entry.building, nextDoge, entry.cost, true });
^
skyscraper.cpp:68:70: warning: narrowing conversion of 'nextDoge' from 'int' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
q.push_front(QEntry { entry.building, nextDoge, entry.cost, false });
^
skyscraper.cpp:86:72: warning: narrowing conversion of 'pBuilding' from 'int' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
q.push_back(QEntry { pBuilding, entry.doge(), entry.cost + 1, true });
^
skyscraper.cpp:94:73: warning: narrowing conversion of 'nBuilding' from 'int' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
q.push_back(QEntry { nBuilding, entry.doge(), entry.cost + 1, false });
^