Karosai (LMIO 2018/2019)

Taškai: 0

Compile: FAIL

karosai_vyr.cpp: In function ‘void almostDijkstra(int)’: karosai_vyr.cpp:37:47: error: wrong number of template arguments (0, should be 1) priority_queue <pii, vector <pii>, greater<>> q; ^ In file included from /usr/include/c++/5/string:48:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/sstream:38, from /usr/include/c++/5/complex:45, from /usr/include/c++/5/ccomplex:38, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from karosai_vyr.cpp:1: /usr/include/c++/5/bits/stl_function.h:372:12: note: provided for ‘template<class _Tp> struct std::greater’ struct greater : public binary_function<_Tp, _Tp, bool> ^ karosai_vyr.cpp:37:48: error: template argument 3 is invalid priority_queue <pii, vector <pii>, greater<>> q; ^ karosai_vyr.cpp:38:7: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ q.push({0, start}); ^ karosai_vyr.cpp:39:15: error: request for member ‘empty’ in ‘q’, which is of non-class type ‘int’ while (!q.empty()){ ^ karosai_vyr.cpp:40:19: error: request for member ‘top’ in ‘q’, which is of non-class type ‘int’ pii t = q.top(); ^ karosai_vyr.cpp:41:11: error: request for member ‘pop’ in ‘q’, which is of non-class type ‘int’ q.pop(); ^ karosai_vyr.cpp:50:19: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ q.push(make_pair(dist[v], v)); ^

nr.resulttimemessage