Borderou de evaluare (job #2274783)
Utilizator | Data | 2 noiembrie 2018 14:57:27 | |
---|---|---|---|
Problema | Barbar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'bool Compara::operator()(int, int)':
main.cpp:41:27: error: 'darg' was not declared in this scope
return (drag[x] > darg[y]);
^~~~
main.cpp: At global scope:
main.cpp:44:44: error: 'Comapara' was not declared in this scope
std::priority_queue<int, std::vector<int>, Comapara> pri_queue;
^~~~~~~~
main.cpp:44:52: error: template argument 3 is invalid
std::priority_queue<int, std::vector<int>, Comapara> pri_queue;
^
main.cpp: In function 'void read_file(int&, int&)':
main.cpp:77:37: error: no matching function for call to 'std::queue<Coord>::push(<brace-enclosed initializer list>)'
coada.push({i, j, 0});
^
In file included from /usr/include/c++/6/queue:64:0,
from main.cpp:9:
/usr/include/c++/6/bits/stl_queue.h:242:7: note: candidate: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = Coord; _Sequence = std::deque<Coord, std::allocator<Coord> >; std::queue<_Tp, _Sequence>::value_type = Coord]
push(const value_type& __x)
^~~~
/usr/include/c++/6/bits/stl_queue.h:242:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const Coord&}'
/usr/include/c++/6/bits/stl_queue.h:247:7: note: candidate: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = Coord; _Sequence = std::deque<Coord, std::allocator<Coord> >; std::queue<_Tp, _Sequence>::value_type = Coord]
push(value_type&& __x)
^~~~
/usr/include/c++/6/bits/stl_queue.h:247:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<Coord>::value_type&& {aka Coord&&}'
main.cpp: In function 'void BFS_drum(int, int)':
main.cpp:115:36: error: request for member 'top' in 'pri_queue', which is of non-class type 'int'
Coord nod_curr = pri_queue.top();
^~~
main.cpp:116:19: error: request for member 'pop' in 'pri_queue', which is of non-class type 'int'
pri_queue.pop();
^~~
main.cpp:120:17: warning: unused variable 'cost' [-Wunused-variable]
int cost = dragoni[vecin.i][vecin.j];
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !