Borderou de evaluare (job #1194507)
Utilizator | Data | 3 iunie 2014 23:29:15 | |
---|---|---|---|
Problema | Sate | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void TrickyRead()’:
user.cpp:77:25: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}’ and ‘muchie’)
G[a][grad[b]++] = make_muchie(c,b);
^
user.cpp:77:25: note: candidates are:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_pair.h:158:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_T1, _T2>&) [with _T1 = int; _T2 = int]
operator=(const pair& __p)
^
/usr/include/c++/4.8/bits/stl_pair.h:158:7: note: no known conversion for argument 1 from ‘muchie’ to ‘const std::pair<int, int>&’
/usr/include/c++/4.8/bits/stl_pair.h:166:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_T1, _T2>&&) [with _T1 = int; _T2 = int]
operator=(pair&& __p)
^
/usr/include/c++/4.8/bits/stl_pair.h:166:7: note: no known conversion for argument 1 from ‘muchie’ to ‘std::pair<int, int>&&’
/usr/include/c++/4.8/bits/stl_pair.h:177:2: note: template<class _U1, class _U2> std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int; _T2 = int]
operator=(const pair<_U1, _U2>& __p)
^
/usr/include/c++/4.8/bits/stl_pair.h:177:2: note: template argument deduction/substitution failed:
user.cpp:77:25: note: ‘muchie’ is not derived from ‘const std::pair<_T1, _T2>’
G[a][grad[b]++] = make_muchie(c,b);
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_pair.h:186:2: note: template<class _U1, class _U2> std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int; _T2 = int]
operator=(pair<_U1, _U2>&& __p)
^
/usr/include/c++/4.8/bits/stl_pair.h:186:2: note: template argument deduction/substitution failed:
user.cpp:77:25: note: ‘muchie’ is not derived from ‘std::pair<_T1, _T2>’
G[a][grad[b]++] = make_muchie(c,b);
^
user.cpp:78:25: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}’ and ‘muchie’)
G[b][grad[a]++] = make_muchie(-c,b);
^
user.cpp:78:25: note: candidates are:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_pair.h:158:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_T1, _T2>&) [with _T1 = int; _T2 = int]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !