Borderou de evaluare (job #2638279)

Utilizator testraxman01Sicoe Raul testraxman01 Data 27 iulie 2020 17:13:06
Problema BFS - Parcurgere in latime Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void citire()': main.cpp:27:28: warning: statement has no effect [-Wunused-value] f.in >> nr_noduri >> m >> start; main.cpp: In function 'void BFS()': main.cpp:40:19: error: cannot convert 'std::queue<_Tp, _Sequence>::empty<int, std::deque<int, std::allocator<int> > >' from type 'bool (std::queue<int>::)() const' to type 'bool' while (!coada.empty) // cat timp coada nu este goala ^~~~~ main.cpp:40:19: error: in argument to unary ! main.cpp:45:50: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' (did you forget the '()' ?) for (unsigned int i = 0; i < muchii[nod].size; i++) ~~~~~~~~~~~~^~~~ main.cpp:48:37: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (Distanta[vecin] = -1)//daca dist pana la vecin este -1 ^ Non zero exit status: 1

Ceva nu functioneaza?