Borderou de evaluare (job #2251770)

Utilizator eu3neuomManghiuc Teodor-Florin eu3neuom Data 1 octombrie 2018 22:23:17
Problema Cameras Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Djrev(int, ld, ld)’: user.cpp:41:55: error: no matching function for call to ‘std::priority_queue<std::pair<long double, int>, std::vector<std::pair<long double, int> >, std::greater<std::pair<long double, int> > >::emplace(<brace-enclosed initializer list>)’ pq.emplace({etonote[x.first], x.first}); ^ In file included from /usr/include/c++/6/queue:64:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:86, from user.cpp:1: /usr/include/c++/6/bits/stl_queue.h:574:9: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {}; _Tp = std::pair<long double, int>; _Sequence = std::vector<std::pair<long double, int> >; _Compare = std::greater<std::pair<long double, int> >] emplace(_Args&&... __args) ^~~~~~~ /usr/include/c++/6/bits/stl_queue.h:574:9: note: candidate expects 0 arguments, 1 provided user.cpp: In function ‘void Dijkstra(int, ld, ld)’: user.cpp:84:85: error: no matching function for call to ‘std::priority_queue<spec, std::vector<spec>, cmp>::emplace(<brace-enclosed initializer list>)’ pq.emplace({dist[x.first], x.first, max(cam, (bool)camera[x.first])}); ^ In file included from /usr/include/c++/6/queue:64:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:86, from user.cpp:1: /usr/include/c++/6/bits/stl_queue.h:574:9: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {}; _Tp = spec; _Sequence = std::vector<spec>; _Compare = cmp] emplace(_Args&&... __args) ^~~~~~~ /usr/include/c++/6/bits/stl_queue.h:574:9: note: candidate expects 0 arguments, 1 provided

Ceva nu functioneaza?