Borderou de evaluare (job #957218)
Utilizator | Data | 4 iunie 2013 17:27:08 | |
---|---|---|---|
Problema | Mine | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:50:60: error: ‘bs’ was not declared in this scope
int c = bs(T[crt.xx], crt.yy.xx + graf[crt.yy.yy][i].xx);
^
user.cpp:52:79: error: no matching function for call to ‘std::pair<long int, long int>::pair(long int, __gnu_cxx::__alloc_traits<std::allocator<std::pair<long int, long int> > >::value_type&)’
H.push (twy (c, wy (crt.yy.xx + graf[crt.yy.yy][i].xx, graf[crt.yy.yy][i])));
^
user.cpp:52:79: note: candidates are:
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:64:0,
from /usr/local/include/c++/4.8.0/bits/char_traits.h:39,
from /usr/local/include/c++/4.8.0/ios:40,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/stl_pair.h:206:9: note: template<class ... _Args1, unsigned int ..._Indexes1, class ... _Args2, unsigned int ..._Indexes2> std::pair<_T1, _T2>::pair(std::tuple<_Args1 ...>&, std::tuple<_Args2 ...>&, std::_Index_tuple<_Indexes1 ...>, std::_Index_tuple<_Indexes2 ...>)
pair(tuple<_Args1...>&, tuple<_Args2...>&,
^
/usr/local/include/c++/4.8.0/bits/stl_pair.h:206:9: note: template argument deduction/substitution failed:
user.cpp:52:79: note: mismatched types ‘std::tuple<_Args1 ...>’ and ‘long int’
H.push (twy (c, wy (crt.yy.xx + graf[crt.yy.yy][i].xx, graf[crt.yy.yy][i])));
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:64:0,
from /usr/local/include/c++/4.8.0/bits/char_traits.h:39,
from /usr/local/include/c++/4.8.0/ios:40,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/stl_pair.h:155:9: note: template<class ... _Args1, class ... _Args2> std::pair<_T1, _T2>::pair(std::piecewise_construct_t, std::tuple<_Args1 ...>, std::tuple<_Args2 ...>)
pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>);
^
/usr/local/include/c++/4.8.0/bits/stl_pair.h:155:9: note: template argument deduction/substitution failed:
user.cpp:52:79: note: cannot convert ‘(crt.std::pair<long int, std::pair<long int, long int> >::second.std::pair<long int, long int>::first + graf[crt.std::pair<long int, std::pair<long int, long int> >::second.std::pair<long int, long int>::second].std::vector<_Tp, _Alloc>::operator[]<std::pair<long int, long int>, std::allocator<std::pair<long int, long int> > >(i).std::pair<long int, long int>::first)’ (type ‘long int’) to type ‘std::piecewise_construct_t’
H.push (twy (c, wy (crt.yy.xx + graf[crt.yy.yy][i].xx, graf[crt.yy.yy][i])));
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:64:0,
from /usr/local/include/c++/4.8.0/bits/char_traits.h:39,
from /usr/local/include/c++/4.8.0/ios:40,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/stl_pair.h:150:12: note: template<class _U1, class _U2, class> constexpr std::pair<_T1, _T2>::pair(std::pair<_U1, _U2>&&)
constexpr pair(pair<_U1, _U2>&& __p)
^
/usr/local/include/c++/4.8.0/bits/stl_pair.h:150:12: note: template argument deduction/substitution failed:
user.cpp:52:79: note: mismatched types ‘std::pair<_T1, _T2>’ and ‘long int’
H.push (twy (c, wy (crt.yy.xx + graf[crt.yy.yy][i].xx, graf[crt.yy.yy][i])));
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:64:0,
from /usr/local/include/c++/4.8.0/bits/char_traits.h:39,
from /usr/local/include/c++/4.8.0/ios:40,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !