Besmegeniai

Taškai: 0

Compile: FAIL

lmio_2012_3e2_besmegeniai_vyr.cpp: In function ‘int main(int, char**)’: lmio_2012_3e2_besmegeniai_vyr.cpp:39:9: error: no match for ‘operator=’ (operand types are ‘std::priority_queue<long long int>’ and ‘std::priority_queue<int>’) eilute = priority_queue <int>(); ^ In file included from /usr/include/c++/5/queue:64:0, from lmio_2012_3e2_besmegeniai_vyr.cpp:3: /usr/include/c++/5/bits/stl_queue.h:370:11: note: candidate: std::priority_queue<long long int>& std::priority_queue<long long int>::operator=(const std::priority_queue<long long int>&) class priority_queue ^ /usr/include/c++/5/bits/stl_queue.h:370:11: note: no known conversion for argument 1 from ‘std::priority_queue<int>’ to ‘const std::priority_queue<long long int>&’ /usr/include/c++/5/bits/stl_queue.h:370:11: note: candidate: std::priority_queue<long long int>& std::priority_queue<long long int>::operator=(std::priority_queue<long long int>&&) /usr/include/c++/5/bits/stl_queue.h:370:11: note: no known conversion for argument 1 from ‘std::priority_queue<int>’ to ‘std::priority_queue<long long int>&&’ lmio_2012_3e2_besmegeniai_vyr.cpp:43:12: error: ‘kita’ was not declared in this scope suma -= kita.top(); ^

nr.resulttimemessage