Borderou de evaluare (job #1058421)
Utilizator | Data | 15 decembrie 2013 15:21:59 | |
---|---|---|---|
Problema | Tarnacop | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:27:24: warning: integer overflow in expression [-Woverflow]
const int oo = (1<<31)-1;
^
In file included from /usr/local/include/c++/4.8.0/ext/alloc_traits.h:36:0,
from /usr/local/include/c++/4.8.0/bits/stl_construct.h:61,
from /usr/local/include/c++/4.8.0/vector:62,
from user.cpp:2:
/usr/local/include/c++/4.8.0/bits/alloc_traits.h: In instantiation of ‘struct std::allocator_traits<std::pair<int, int> >’:
/usr/local/include/c++/4.8.0/ext/alloc_traits.h:121:10: required from ‘struct __gnu_cxx::__alloc_traits<std::pair<int, int> >’
/usr/local/include/c++/4.8.0/bits/stl_vector.h:75:28: required from ‘struct std::_Vector_base<std::pair<int, int>, std::pair<int, int> >’
/usr/local/include/c++/4.8.0/bits/stl_vector.h:210:11: required from ‘class std::vector<std::pair<int, int>, std::pair<int, int> >’
user.cpp:75:43: required from here
/usr/local/include/c++/4.8.0/bits/alloc_traits.h:90:43: error: no type named ‘value_type’ in ‘struct std::pair<int, int>’
typedef typename _Alloc::value_type value_type;
^
/usr/local/include/c++/4.8.0/bits/alloc_traits.h:100:1: error: no matching function for call to ‘std::allocator_traits<std::pair<int, int> >::_S_pointer_helper(std::pair<int, int>*)’
_GLIBCXX_ALLOC_TR_NESTED_TYPE(pointer, value_type*)
^
/usr/local/include/c++/4.8.0/bits/alloc_traits.h:100:1: note: candidate is:
/usr/local/include/c++/4.8.0/bits/alloc_traits.h:100:1: note: template<class _Tp> static typename _Tp::pointer std::allocator_traits<_Alloc>::_S_pointer_helper(_Tp*) [with _Tp = _Tp; _Alloc = std::pair<int, int>]
_GLIBCXX_ALLOC_TR_NESTED_TYPE(pointer, value_type*)
^
/usr/local/include/c++/4.8.0/bits/alloc_traits.h:100:1: note: template argument deduction/substitution failed:
/usr/local/include/c++/4.8.0/bits/alloc_traits.h: In substitution of ‘template<class _Tp> static typename _Tp::pointer std::allocator_traits<_Alloc>::_S_pointer_helper(_Tp*) [with _Tp = _Tp; _Alloc = std::pair<int, int>] [with _Tp = std::pair<int, int>]’:
/usr/local/include/c++/4.8.0/bits/alloc_traits.h:100:1: required from ‘struct std::allocator_traits<std::pair<int, int> >’
/usr/local/include/c++/4.8.0/ext/alloc_traits.h:121:10: required from ‘struct __gnu_cxx::__alloc_traits<std::pair<int, int> >’
/usr/local/include/c++/4.8.0/bits/stl_vector.h:75:28: required from ‘struct std::_Vector_base<std::pair<int, int>, std::pair<int, int> >’
/usr/local/include/c++/4.8.0/bits/stl_vector.h:210:11: required from ‘class std::vector<std::pair<int, int>, std::pair<int, int> >’
user.cpp:75:43: required from here
/usr/local/include/c++/4.8.0/bits/alloc_traits.h:100:1: error: no type named ‘pointer’ in ‘struct std::pair<int, int>’
/usr/local/include/c++/4.8.0/bits/alloc_traits.h: In instantiation of ‘struct std::allocator_traits<std::pair<int, int> >’:
/usr/local/include/c++/4.8.0/ext/alloc_traits.h:121:10: required from ‘struct __gnu_cxx::__alloc_traits<std::pair<int, int> >’
/usr/local/include/c++/4.8.0/bits/stl_vector.h:75:28: required from ‘struct std::_Vector_base<std::pair<int, int>, std::pair<int, int> >’
/usr/local/include/c++/4.8.0/bits/stl_vector.h:210:11: required from ‘class std::vector<std::pair<int, int>, std::pair<int, int> >’
user.cpp:75:43: required from here
/usr/local/include/c++/4.8.0/bits/alloc_traits.h:109:1: error: no matching function for call to ‘std::allocator_traits<std::pair<int, int> >::_S_const_pointer_helper(std::pair<int, int>*)’
_GLIBCXX_ALLOC_TR_NESTED_TYPE(const_pointer,
^
/usr/local/include/c++/4.8.0/bits/alloc_traits.h:109:1: note: candidate is:
/usr/local/include/c++/4.8.0/bits/alloc_traits.h:109:1: note: template<class _Tp> static typename _Tp::const_pointer std::allocator_traits<_Alloc>::_S_const_pointer_helper(_Tp*) [with _Tp = _Tp; _Alloc = std::pair<int, int>]
_GLIBCXX_ALLOC_TR_NESTED_TYPE(const_pointer,
^
/usr/local/include/c++/4.8.0/bits/alloc_traits.h:109:1: note: template argument deduction/substitution failed:
/usr/local/include/c++/4.8.0/bits/alloc_traits.h: In substitution of ‘template<class _Tp> static typename _Tp::const_pointer std::allocator_traits<_Alloc>::_S_const_pointer_helper(_Tp*) [with _Tp = _Tp; _Alloc = std::pair<int, int>] [with _Tp = std::pair<int, int>]’:
/usr/local/include/c++/4.8.0/bits/alloc_traits.h:109:1: required from ‘struct std::allocator_traits<std::pair<int, int> >’
/usr/local/include/c++/4.8.0/ext/alloc_traits.h:121:10: required from ‘struct __gnu_cxx::__alloc_traits<std::pair<int, int> >’
/usr/local/include/c++/4.8.0/bits/stl_vector.h:75:28: required from ‘struct std::_Vector_base<std::pair<int, int>, std::pair<int, int> >’
/usr/local/include/c++/4.8.0/bits/stl_vector.h:210:11: required from ‘class std::vector<std::pair<int, int>, std::pair<int, int> >’
user.cpp:75:43: required from here
/usr/local/include/c++/4.8.0/bits/alloc_traits.h:109:1: error: no type named ‘const_pointer’ in ‘struct std::pair<int, int>’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !