Borderou de evaluare (job #1263757)

Utilizator SzymonSidorSzymonSidor SzymonSidor Data 15 noiembrie 2014 02:44:20
Problema Problema cu becuri Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int bfs()’: user.cpp:22:25: error: no match for ‘operator=’ (operand types are ‘std::tuple<int&, int&>’ and ‘void’) tie(node, pasi) = coada.pop(); ^ user.cpp:22:25: note: candidates are: In file included from /usr/include/c++/4.8/functional:55:0, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from user.cpp:1: /usr/include/c++/4.8/tuple:616:7: note: std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(const std::tuple<_T1, _T2>&) [with _T1 = int&; _T2 = int&] operator=(const tuple& __in) ^ /usr/include/c++/4.8/tuple:616:7: note: no known conversion for argument 1 from ‘void’ to ‘const std::tuple<int&, int&>&’ /usr/include/c++/4.8/tuple:623:7: note: std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(std::tuple<_T1, _T2>&&) [with _T1 = int&; _T2 = int&] operator=(tuple&& __in) ^ /usr/include/c++/4.8/tuple:623:7: note: no known conversion for argument 1 from ‘void’ to ‘std::tuple<int&, int&>&&’ /usr/include/c++/4.8/tuple:632:9: note: template<class _U1, class _U2> std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(const std::tuple<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&] operator=(const tuple<_U1, _U2>& __in) ^ /usr/include/c++/4.8/tuple:632:9: note: template argument deduction/substitution failed: user.cpp:22:25: note: mismatched types ‘const std::tuple<_T1, _T2>’ and ‘void’ tie(node, pasi) = coada.pop(); ^ In file included from /usr/include/c++/4.8/functional:55:0, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from user.cpp:1: /usr/include/c++/4.8/tuple:640:9: note: template<class _U1, class _U2> std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(std::tuple<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&] operator=(tuple<_U1, _U2>&& __in) ^ /usr/include/c++/4.8/tuple:640:9: note: template argument deduction/substitution failed: user.cpp:22:25: note: mismatched types ‘std::tuple<_T1, _T2>’ and ‘void’ tie(node, pasi) = coada.pop(); ^ In file included from /usr/include/c++/4.8/functional:55:0, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from user.cpp:1: /usr/include/c++/4.8/tuple:648:9: note: template<class _U1, class _U2> std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&] operator=(const pair<_U1, _U2>& __in) ^ /usr/include/c++/4.8/tuple:648:9: note: template argument deduction/substitution failed: user.cpp:22:25: note: mismatched types ‘const std::pair<_T1, _T2>’ and ‘void’ tie(node, pasi) = coada.pop(); ^ In file included from /usr/include/c++/4.8/functional:55:0, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from user.cpp:1:

Ceva nu functioneaza?