foo.cc:1:1: error: stray '\351' in program
锘?include <iostream>
^
foo.cc:1:2: error: stray '\224' in program
锘?include <iostream>
^
foo.cc:1:3: error: stray '\230' in program
锘?include <iostream>
^
foo.cc:1:4: error: expected unqualified-id before '?' token
锘?include <iostream>
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:62:0,
from /usr/include/c++/7/vector:60,
from foo.cc:2:
/usr/include/c++/7/ext/type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of symbol
__is_null_pointer(std::nullptr_t)
^
/usr/include/c++/7/ext/type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
__is_null_pointer(_Type)
^~~~~~~~~~~~~~~~~
/usr/include/c++/7/ext/type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'
__is_null_pointer(std::nullptr_t)
^~~~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/vector:60,
from foo.cc:2:
/usr/include/c++/7/type_traits:362:31: error: 'std::size_t' has not been declared
template<typename _Tp, std::size_t _Size>
^~~~~~
/usr/include/c++/7/type_traits:363:25: error: '_Size' was not declared in this scope
struct is_array<_Tp[_Size]>
^~~~~
/usr/include/c++/7/type_traits:363:31: error: template argument 1 is invalid
struct is_array<_Tp[_Size]>
^
/usr/include/c++/7/type_traits:561:42: error: 'nullptr_t' is not a member of 'std'
struct __is_null_pointer_helper<std::nullptr_t>
^~~~~~~~~
/usr/include/c++/7/type_traits:561:42: error: 'nullptr_t' is not a member of 'std'
/usr/include/c++/7/type_traits:561:51: error: template argument 1 is invalid
struct __is_null_pointer_helper<std::nullptr_t>
^
/usr/include/c++/7/type_traits:1464:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, __alignof__(_Tp)> { };
^~~~~~
/usr/include/c++/7/type_traits:1464:37: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/type_traits:1464:61: error: template argument 1 is invalid
: public integral_constant<std::size_t, __alignof__(_Tp)> { };
^
/usr/include/c++/7/type_traits:1464:61: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1469:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, 0> { };
^~~~~~
/usr/include/c++/7/type_traits:1469:37: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/type_traits:1469:46: error: template argument 1 is invalid
: public integral_constant<std::size_t, 0> { };
^
/usr/include/c++/7/type_traits:1469:46: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1471:31: error: 'std::size_t' has not been declared
template<typename _Tp, std::size_t _Size>
^~~~~~
/usr/include/c++/7/type_traits:1472:21: error: '_Size' was not declared in this scope
struct rank<_Tp[_Size]>
^~~~~
/usr/include/c++/7/type_traits:1472:27: error: template argument 1 is invalid
struct rank<_Tp[_Size]>
^
/usr/include/c++/7/type_traits:1473:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^~~~~~
/usr/include/c++/7/type_traits:1473:37: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/type_traits:1473:65: error: template argument 1 is invalid
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^
/usr/include/c++/7/type_traits:1473:65: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1477:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^~~~~~
/usr/include/c++/7/type_traits:1477:37: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/type_traits:1477:65: error: template argument 1 is invalid
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^
/usr/include/c++/7/type_traits:1477:65: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1482:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, 0> { };
^~~~~~
/usr/include/c++/7/type_traits:1482:37: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/type_traits:1482:46: error: template argument 1 is invalid
: public integral_constant<std::size_t, 0> { };
^
/usr/include/c++/7/type_traits:1482:46: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1484:47: error: 'std::size_t' has not been declared
template<typename _Tp, unsigned _Uint, std::size_t _Size>
^~~~~~
/usr/include/c++/7/type_traits:1485:23: error: '_Size' was not declared in this scope
struct extent<_Tp[_Size], _Uint>
^~~~~
/usr/include/c++/7/type_traits:1485:36: error: template argument 1 is invalid
struct extent<_Tp[_Size], _Uint>
^
/usr/include/c++/7/type_traits:1486:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t,
^~~~~~
/usr/include/c++/7/type_traits:1486:37: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/type_traits:1487:24: error: '_Size' was not declared in this scope
_Uint == 0 ? _Size : extent<_Tp,
^~~~~
/usr/include/c++/7/type_traits:1488:28: error: template argument 1 is invalid
_Uint - 1>::value>
^
/usr/include/c++/7/type_traits:1488:28: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1493:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t,
^~~~~~
/usr/include/c++/7/type_traits:1493:37: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/type_traits:1495:31: error: template argument 1 is invalid
_Uint - 1>::value>
^
/usr/include/c++/7/type_traits:1495:31: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1944:31: error: 'std::size_t' has not been declared
template<typename _Tp, std::size_t _Size>
^~~~~~
/usr/include/c++/7/type_traits:1945:30: error: '_Size' was not declared in this scope
struct remove_extent<_Tp[_Size]>
^~~~~
/usr/include/c++/7/type_traits:1945:36: error: template argument 1 is invalid
struct remove_extent<_Tp[_Size]>
^
/usr/include/c++/7/type_traits:1957:31: error: 'std::size_t' has not been declared
template<typename _Tp, std::size_t _Size>
^~~~~~
/usr/include/c++/7/type_traits:1958:35: error: '_Size' was not declared in this scope
struct remove_all_extents<_Tp[_Size]>
^~~~~
/usr/include/c++/7/type_traits:1958:41: error: template argument 1 is invalid
struct remove_all_extents<_Tp[_Size]>
^
/usr/include/c++/7/type_traits:2016:17: error: 'std::size_t' has not been declared
template<std::size_t _Len>
^~~~~~
/usr/include/c++/7/type_traits:2021:23: error: '_Len' was not declared in this scope
unsigned char __data[_Len];
^~~~
/usr/include/c++/7/type_traits:2036:17: error: 'std::size_t' has not been declared
template<std::size_t _Len, std::size_t _Align =
^~~~~~
/usr/include/c++/7/type_traits:2036:35: error: 'std::size_t' has not been declared
template<std::size_t _Len, std::size_t _Align =
^~~~~~
/usr/include/c++/7/type_traits:2037:48: error: '_Len' was not declared in this scope
__alignof__(typename __aligned_storage_msa<_Len>::__type)>
^~~~
/usr/include/c++/7/type_traits:2037:52: error: template argument 1 is invalid
__alignof__(typename __aligned_storage_msa<_Len>::__type)>
^
/usr/include/c++/7/type_traits:2042:23: error: '_Len' was not declared in this scope
unsigned char __data[_Len];
^~~~
/usr/include/c++/7/type_traits:2043:37: error: '_Align' was not declared in this scope
struct __attribute__((__aligned__((_Align)))) { } __align;
^~~~~~
/usr/include/c++/7/type_traits:2050:20: error: 'size_t' does not name a type; did you mean '__size_t'?
static const size_t _S_alignment = 0;
^~~~~~
__size_t
/usr/include/c++/7/type_traits:2051:20: error: 'size_t' does not name a type; did you mean '__size_t'?
static const size_t _S_size = 0;
^~~~~~
__size_t
/usr/include/c++/7/type_traits:2057:20: error: 'size_t' does not name a type; did you mean '__size_t'?
static const size_t _S_alignment =
^~~~~~
__size_t
/usr/include/c++/7/type_traits:2060:20: error: 'size_t' does not name a type; did you mean '__size_t'?
static const size_t _S_size =
^~~~~~
__size_t
/usr/include/c++/7/type_traits:2075:13: error: 'size_t' has not been declared
template <size_t _Len, typename... _Types>
^~~~~~
/usr/include/c++/7/type_traits:2082:20: error: 'size_t' does not name a type; did you mean '__size_t'?
static const size_t _S_len = _Len > __strictest::_S_size
^~~~~~
__size_t
/usr/include/c++/7/type_traits:2086:20: error: 'size_t' does not name a type; did you mean '__size_t'?
static const size_t alignment_value = __strictest::_S_alignment;
^~~~~~
__size_t
/usr/include/c++/7/type_traits:2088:40: error: '_S_len' was not declared in this scope
typedef typename aligned_storage<_S_len, alignment_value>::type type;
^~~~~~
/usr/include/c++/7/type_traits:2088:48: error: 'alignment_value' was not declared in this scope
typedef typename aligned_storage<_S_len, alignment_value>::type type;
^~~~~~~~~~~~~~~
/usr/include/c++/7/type_traits:2088:48: note: suggested alternative: 'alignment_of'
typedef typename aligned_storage<_S_len, alignment_value>::type type;
^~~~~~~~~~~~~~~
alignment_of
/usr/include/c++/7/type_traits:2088:63: error: template argument 1 is invalid
typedef typename aligned_storage<_S_len, alignment_value>::type type;
^
/usr/include/c++/7/type_traits:2088:63: error: template argument 2 is invalid
/usr/include/c++/7/type_traits:2091:13: error: 'size_t' has not been declared
template <size_t _Len, typename... _Types>
^~~~~~
/usr/include/c++/7/type_traits:2092:11: error: 'size_t' does not name a type; did you mean '__size_t'?
const size_t aligned_union<_Len, _Types...>::alignment_value;
^~~~~~
__size_t
/usr/include/c++/7/type_traits:2586:26: error: 'size_t' has not been declared
template<typename _Tp, size_t _Nm>
^~~~~~
/usr/include/c++/7/type_traits:2589:21: error: '_Nm' was not declared in this scope
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
/usr/include/c++/7/type_traits:2589:24: error: 'template<class _Tp, <declaration error> > typename std::enable_if<std::__is_swappable<_Tp>::value>::type std::swap' conflicts with a previous declaration
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^
/usr/include/c++/7/type_traits:2582:5: note: previous declaration 'typename std::enable_if<std::__and_<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> >::value>::type std::swap(_Tp&, _Tp&)'
swap(_Tp&, _Tp&)
^~~~
/usr/include/c++/7/type_traits:2589:16: error: '__a' was not declared in this scope
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
/usr/include/c++/7/type_traits:2589:16: note: suggested alternative: '__N'
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
__N
/usr/include/c++/7/type_traits:2589:21: error: '_Nm' was not declared in this scope
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
/usr/include/c++/7/type_traits:2589:33: error: '__b' was not declared in this scope
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
/usr/include/c++/7/type_traits:2589:33: note: suggested alternative: '__N'
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
__N
/usr/include/c++/7/type_traits:2589:38: error: '_Nm' was not declared in this scope
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
/usr/include/c++/7/type_traits:2590:5: error: expected ';' before 'noexcept'
noexcept(__is_nothrow_swappable<_Tp>::value);
^~~~~~~~
In file included from /usr/include/c++/7/bits/stl_pair.h:59:0,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/vector:60,
from foo.cc:2:
/usr/include/c++/7/bits/move.h:206:26: error: 'size_t' has not been declared
template<typename _Tp, size_t _Nm>
^~~~~~
/usr/include/c++/7/bits/move.h:210:21: error: '_Nm' was not declared in this scope
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
/usr/include/c++/7/bits/move.h:210:24: error: 'template<class _Tp, <declaration error> > typename std::enable_if<std::__is_swappable<_Tp>::value>::type std::swap' conflicts with a previous declaration
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^
/usr/include/c++/7/bits/move.h:187:5: note: previous declaration 'typename std::enable_if<std::__and_<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> >::value>::type std::swap(_Tp&, _Tp&)'
swap(_Tp& __a, _Tp& __b)
^~~~
/usr/include/c++/7/bits/move.h:210:16: error: '__a' was not declared in this scope
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
/usr/include/c++/7/bits/move.h:210:16: note: suggested alternative: '__N'
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
__N
/usr/include/c++/7/bits/move.h:210:21: error: '_Nm' was not declared in this scope
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
/usr/include/c++/7/bits/move.h:210:33: error: '__b' was not declared in this scope
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
/usr/include/c++/7/bits/move.h:210:33: note: suggested alternative: '__N'
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
__N
/usr/include/c++/7/bits/move.h:210:38: error: '_Nm' was not declared in this scope
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^~~
/usr/include/c++/7/bits/move.h:211:5: error: expected ';' before 'noexcept'
noexcept(__is_nothrow_swappable<_Tp>::value)
^~~~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:64:0,
from /usr/include/c++/7/vector:60,
from foo.cc:2:
/usr/include/c++/7/bits/stl_pair.h:86:17: error: 'std::size_t' has not been declared
template<std::size_t...>
^~~~~~
/usr/include/c++/7/bits/stl_pair.h:434:41: error: 'std::size_t' has not been declared
template<typename... _Args1, std::size_t... _Indexes1,
^~~~~~
/usr/include/c++/7/bits/stl_pair.h:435:41: error: 'std::size_t' has not been declared
typename... _Args2, std::size_t... _Indexes2>
^~~~~~
/usr/include/c++/7/bits/stl_pair.h:437:27: error: '_Indexes1' was not declared in this scope
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~~~~~~~
/usr/include/c++/7/bits/stl_pair.h:437:27: note: suggested alternative: '_Index_tuple'
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~~~~~~~
_Index_tuple
/usr/include/c++/7/bits/stl_pair.h:437:36: error: expected parameter pack before '...'
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~
/usr/include/c++/7/bits/stl_pair.h:437:39: error: template argument 1 is invalid
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^
/usr/include/c++/7/bits/stl_pair.h:437:55: error: '_Indexes2' was not declared in this scope
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~~~~~~~
/usr/include/c++/7/bits/stl_pair.h:437:55: note: suggested alternative: '_Index_tuple'
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~~~~~~~
_Index_tuple
/usr/include/c++/7/bits/stl_pair.h:437:64: error: expected parameter pack before '...'
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~
/usr/include/c++/7/bits/stl_pair.h:437:67: error: template argument 1 is invalid
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:65:0,
from /usr/include/c++/7/vector:60,
from foo.cc:2:
/usr/include/c++/7/bits/stl_iterator_base_types.h:116:67: error: 'ptrdiff_t' does not name a type
template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
^~~~~~~~~
/usr/include/c++/7/bits/stl_iterator_base_types.h:182:15: error: 'ptrdiff_t' does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
/usr/include/c++/7/bits/stl_iterator_base_types.h:193:15: error: 'ptrdiff_t' does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/vector:60,
from foo.cc:2:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:110:5: error: 'ptrdiff_t' does not name a type
ptrdiff_t
^~~~~~~~~
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:116:5: error: 'ptrdiff_t' does not name a type
ptrdiff_t
^~~~~~~~~
In file included from /usr/include/c++/7/bits/stl_iterator.h:66:0,
from /usr/include/c++/7/bits/stl_algobase.h:67,
from /usr/include/c++/7/vector:60,
from foo.cc:2:
/usr/include/c++/7/bits/ptr_traits.h:104:20: error: 'ptrdiff_t' was not declared in this scope
= __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;
^~~~~~~~~
/usr/include/c++/7/bits/ptr_traits.h:104:54: error: template argument 1 is invalid
= __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;
^
/usr/include/c++/7/bits/ptr_traits.h:130:15: error: 'ptrdiff_t' does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
In file included from /usr/include/c++/7/vector:60:0,
from foo.cc:2:
/usr/include/c++/7/bits/stl_algobase.h: In static member function 'static _Tp* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(const _Tp*, const _Tp*, _Tp*)':
/usr/include/c++/7/bits/stl_algobase.h:366:10: error: 'ptrdiff_t' does not name a type
const ptrdiff_t _Num = __last - __first;
^~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:367:8: error: '_Num' was not declared in this scope
if (_Num)
^~~~
/usr/include/c++/7/bits/stl_algobase.h:367:8: note: suggested alternative: '_NEW'
if (_Num)
^~~~
_NEW
/usr/include/c++/7/bits/stl_algobase.h:369:22: error: '_Num' was not declared in this scope
return __result + _Num;
^~~~
/usr/include/c++/7/bits/stl_algobase.h:369:22: note: suggested alternative: '_NEW'
return __result + _Num;
^~~~
_NEW
/usr/include/c++/7/bits/stl_algobase.h: In static member function 'static _Tp* std::__copy_move_backward<_IsMove, true, std::random_access_iterator_tag>::__copy_move_b(const _Tp*, const _Tp*, _Tp*)':
/usr/include/c++/7/bits/stl_algobase.h:568:10: error: 'ptrdiff_t' does not name a type
const ptrdiff_t _Num = __last - __first;
^~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:569:8: error: '_Num' was not declared in this scope
if (_Num)
^~~~
/usr/include/c++/7/bits/stl_algobase.h:569:8: note: suggested alternative: '_NEW'
if (_Num)
^~~~
_NEW
/usr/include/c++/7/bits/stl_algobase.h:571:22: error: '_Num' was not declared in this scope
return __result - _Num;
^~~~
/usr/include/c++/7/bits/stl_algobase.h:571:22: note: suggested alternative: '_NEW'
return __result - _Num;
^~~~
_NEW
/usr/include/c++/7/bits/stl_algobase.h: In function 'typename __gnu_cxx::__enable_if<std::__is_byte<_Tp>::__value, void>::__type std::__fill_a(_Tp*, _Tp*, const _Tp&)':
/usr/include/c++/7/bits/stl_algobase.h:706:11: error: expected primary-expression before 'const'
if (const size_t __len = __last - __first)
^~~~~
/usr/include/c++/7/bits/stl_algobase.h:706:11: error: expected ')' before 'const'
/usr/include/c++/7/bits/stl_algobase.h:707:63: error: '__len' was not declared in this scope
__builtin_memset(__first, static_cast<unsigned char>(__tmp), __len);
^~~~~
/usr/include/c++/7/bits/stl_algobase.h: In static member function 'static bool std::__equal<true>::equal(const _Tp*, const _Tp*, const _Tp*)':
/usr/include/c++/7/bits/stl_algobase.h:813:8: error: expected primary-expression before 'const'
if (const size_t __len = (__last1 - __first1))
^~~~~
/usr/include/c++/7/bits/stl_algobase.h:813:8: error: expected ')' before 'const'
/usr/include/c++/7/bits/stl_algobase.h:814:65: error: '__len' was not declared in this scope
return !__builtin_memcmp(__first1, __first2, sizeof(_Tp) * __len);
^~~~~
/usr/include/c++/7/bits/stl_algobase.h: In static member function 'static bool std::__lexicographical_compare<true>::__lc(const _Tp*, const _Tp*, const _Up*, const _Up*)':
/usr/include/c++/7/bits/stl_algobase.h:917:10: error: 'size_t' does not name a type; did you mean '__size_t'?
const size_t __len1 = __last1 - __first1;
^~~~~~
__size_t
/usr/include/c++/7/bits/stl_algobase.h:918:10: error: 'size_t' does not name a type; did you mean '__size_t'?
const size_t __len2 = __last2 - __first2;
^~~~~~
__size_t
/usr/include/c++/7/bits/stl_algobase.h:919:8: error: expected primary-expression before 'const'
if (const size_t __len = std::min(__len1, __len2))
^~~~~
/usr/include/c++/7/bits/stl_algobase.h:919:8: error: expected ')' before 'const'
/usr/include/c++/7/bits/stl_algobase.h:920:62: error: '__len' was not declared in this scope
if (int __result = __builtin_memcmp(__first1, __first2, __len))
^~~~~
/usr/include/c++/7/bits/stl_algobase.h:920:62: note: suggested alternative: '__lc'
if (int __result = __builtin_memcmp(__first1, __first2, __len))
^~~~~
__lc
/usr/include/c++/7/bits/stl_algobase.h:922:11: error: '__len1' was not declared in this scope
return __len1 < __len2;
^~~~~~
/usr/include/c++/7/bits/stl_algobase.h:922:11: note: suggested alternative: '__lc'
return __len1 < __len2;
^~~~~~
__lc
/usr/include/c++/7/bits/stl_algobase.h:922:20: error: '__len2' was not declared in this scope
return __len1 < __len2;
^~~~~~
/usr/include/c++/7/bits/stl_algobase.h:922:20: note: suggested alternative: '__lc'
return __len1 < __len2;
^~~~~~
__lc
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/include/c++/7/new: At global scope:
/usr/include/c++/7/new:120:31: error: declaration of 'operator new' as non-function
void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^
/usr/include/c++/7/new:120:25: error: 'size_t' is not a member of 'std'
void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^~~~~~
/usr/include/c++/7/new:120:25: note: suggested alternative:
In file included from /usr/include/c++/7/bits/cxxabi_init_exception.h:38:0,
from /usr/include/c++/7/bits/exception_ptr.h:38,
from /usr/include/c++/7/exception:142,
from /usr/include/c++/7/new:40,
from /usr/include/c++/7/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/include/c++/7/new:122:33: error: declaration of 'operator new []' as non-function
void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^
/usr/include/c++/7/new:122:27: error: 'size_t' is not a member of 'std'
void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^~~~~~
/usr/include/c++/7/new:122:27: note: suggested alternative:
In file included from /usr/include/c++/7/bits/cxxabi_init_exception.h:38:0,
from /usr/include/c++/7/bits/exception_ptr.h:38,
from /usr/include/c++/7/exception:142,
from /usr/include/c++/7/new:40,
from /usr/include/c++/7/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/include/c++/7/new:134:25: error: declaration of 'operator new' as non-function
void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~~
/usr/include/c++/7/new:134:25: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/new:134:25: note: suggested alternative:
In file included from /usr/include/c++/7/bits/cxxabi_init_exception.h:38:0,
from /usr/include/c++/7/bits/exception_ptr.h:38,
from /usr/include/c++/7/exception:142,
from /usr/include/c++/7/new:40,
from /usr/include/c++/7/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/include/c++/7/new:134:33: error: expected primary-expression before 'const'
void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~
/usr/include/c++/7/new:136:27: error: declaration of 'operator new []' as non-function
void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~~
/usr/include/c++/7/new:136:27: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/new:136:27: note: suggested alternative:
In file included from /usr/include/c++/7/bits/cxxabi_init_exception.h:38:0,
from /usr/include/c++/7/bits/exception_ptr.h:38,
from /usr/include/c++/7/exception:142,
from /usr/include/c++/7/new:40,
from /usr/include/c++/7/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/include/c++/7/new:136:35: error: expected primary-expression before 'const'
void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~
/usr/include/c++/7/new:168:32: error: declaration of 'operator new' as non-function
inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
^~~~~~
/usr/include/c++/7/new:168:32: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/new:168:32: note: suggested alternative:
In file included from /usr/include/c++/7/bits/cxxabi_init_exception.h:38:0,
from /usr/include/c++/7/bits/exception_ptr.h:38,
from /usr/include/c++/7/exception:142,
from /usr/include/c++/7/new:40,
from /usr/include/c++/7/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/include/c++/7/new:168:40: error: expected primary-expression before 'void'
inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
^~~~
/usr/include/c++/7/new:170:34: error: declaration of 'operator new []' as non-function
inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
^~~~~~
/usr/include/c++/7/new:170:34: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/new:170:34: note: suggested alternative:
In file included from /usr/include/c++/7/bits/cxxabi_init_exception.h:38:0,
from /usr/include/c++/7/bits/exception_ptr.h:38,
from /usr/include/c++/7/exception:142,
from /usr/include/c++/7/new:40,
from /usr/include/c++/7/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/include/c++/7/new:170:42: error: expected primary-expression before 'void'
inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33:0,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/include/c++/7/ext/new_allocator.h:44:14: error: 'std::size_t' has not been declared
using std::size_t;
^~~~~~
/usr/include/c++/7/ext/new_allocator.h:45:14: error: 'std::ptrdiff_t' has not been declared
using std::ptrdiff_t;
^~~~~~~~~
In file included from /usr/include/c++/7/ext/alloc_traits.h:36:0,
from /usr/include/c++/7/bits/stl_construct.h:61,
from /usr/include/c++/7/vector:62,
from foo.cc:2:
/usr/include/c++/7/bits/alloc_traits.h:404:36: error: 'ptrdiff_t' in namespace 'std' does not name a type
using difference_type = std::ptrdiff_t;
^~~~~~~~~
/usr/include/c++/7/bits/alloc_traits.h:407:30: error: 'size_t' in namespace 'std' does not name a type
using size_type = std::size_t;
^~~~~~
/usr/include/c++/7/bits/alloc_traits.h:435:37: error: 'size_type' has not been declared
allocate(allocator_type& __a, size_type __n)
^~~~~~~~~
/usr/include/c++/7/bits/alloc_traits.h:449:37: error: 'size_type' has not been declared
allocate(allocator_type& __a, size_type __n, const_void_pointer __hint)
^~~~~~~~~
/usr/include/c++/7/bits/alloc_traits.h:461:52: error: 'size_type' has not been declared
deallocate(allocator_type& __a, pointer __p, size_type __n)
^~~~~~~~~
/usr/include/c++/7/bits/alloc_traits.h:494:14: error: 'size_type' does not name a type; did you mean 'true_type'?
static size_type
^~~~~~~~~
true_type
In file included from /usr/include/c++/7/vector:65:0,
from foo.cc:2:
/usr/include/c++/7/bits/stl_bvector.h:137:63: error: template argument 3 is invalid
: public std::iterator<std::random_access_iterator_tag, bool>
^
/usr/include/c++/7/bits/stl_bvector.h: In member function 'void std::_Bit_iterator_base::_M_incr(ptrdiff_t)':
/usr/include/c++/7/bits/stl_bvector.h:168:7: error: 'difference_type' was not declared in this scope
difference_type __n = __i + _M_offset;
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:168:7: note: suggested alternative: 'reference_wrapper'
difference_type __n = __i + _M_offset;
^~~~~~~~~~~~~~~
reference_wrapper
/usr/include/c++/7/bits/stl_bvector.h:169:15: error: '__n' was not declared in this scope
_M_p += __n / int(_S_word_bit);
^~~
/usr/include/c++/7/bits/stl_bvector.h:169:15: note: suggested alternative: '__i'
_M_p += __n / int(_S_word_bit);
^~~
__i
/usr/include/c++/7/bits/stl_bvector.h: At global scope:
/usr/include/c++/7/bits/stl_bvector.h:264:16: error: declaration of 'operator+=' as non-function
operator+=(difference_type __i)
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:264:13: error: expected ';' at end of member declaration
operator+=(difference_type __i)
^~
/usr/include/c++/7/bits/stl_bvector.h:264:32: error: expected ')' before '__i'
operator+=(difference_type __i)
^~~
/usr/include/c++/7/bits/stl_bvector.h:271:16: error: declaration of 'operator-=' as non-function
operator-=(difference_type __i)
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:271:13: error: expected ';' at end of member declaration
operator-=(difference_type __i)
^~
/usr/include/c++/7/bits/stl_bvector.h:271:32: error: expected ')' before '__i'
operator-=(difference_type __i)
^~~
/usr/include/c++/7/bits/stl_bvector.h:278:15: error: 'difference_type' has not been declared
operator+(difference_type __i) const
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:285:15: error: 'difference_type' has not been declared
operator-(difference_type __i) const
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:292:16: error: 'difference_type' has not been declared
operator[](difference_type __i) const
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h: In member function 'std::_Bit_iterator::iterator std::_Bit_iterator::operator+(int) const':
/usr/include/c++/7/bits/stl_bvector.h:281:20: error: no match for 'operator+=' (operand types are 'std::_Bit_iterator::iterator {aka std::_Bit_iterator}' and 'int')
return __tmp += __i;
~~~~~~^~~~~~
/usr/include/c++/7/bits/stl_bvector.h: In member function 'std::_Bit_iterator::iterator std::_Bit_iterator::operator-(int) const':
/usr/include/c++/7/bits/stl_bvector.h:288:20: error: no match for 'operator-=' (operand types are 'std::_Bit_iterator::iterator {aka std::_Bit_iterator}' and 'int')
return __tmp -= __i;
~~~~~~^~~~~~
/usr/include/c++/7/bits/stl_bvector.h: At global scope:
/usr/include/c++/7/bits/stl_bvector.h:354:16: error: declaration of 'operator+=' as non-function
operator+=(difference_type __i)
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:354:13: error: expected ';' at end of member declaration
operator+=(difference_type __i)
^~
/usr/include/c++/7/bits/stl_bvector.h:354:32: error: expected ')' before '__i'
operator+=(difference_type __i)
^~~
/usr/include/c++/7/bits/stl_bvector.h:361:16: error: declaration of 'operator-=' as non-function
operator-=(difference_type __i)
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:361:13: error: expected ';' at end of member declaration
operator-=(difference_type __i)
^~
/usr/include/c++/7/bits/stl_bvector.h:361:32: error: expected ')' before '__i'
operator-=(difference_type __i)
^~~
/usr/include/c++/7/bits/stl_bvector.h:368:15: error: 'difference_type' has not been declared
operator+(difference_type __i) const
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:375:15: error: 'difference_type' has not been declared
operator-(difference_type __i) const
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:382:16: error: 'difference_type' has not been declared
operator[](difference_type __i) const
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h: In member function 'std::_Bit_const_iterator::const_iterator std::_Bit_const_iterator::operator+(int) const':
/usr/include/c++/7/bits/stl_bvector.h:371:20: error: no match for 'operator+=' (operand types are 'std::_Bit_const_iterator::const_iterator {aka std::_Bit_const_iterator}' and 'int')
return __tmp += __i;
~~~~~~^~~~~~
/usr/include/c++/7/bits/stl_bvector.h: In member function 'std::_Bit_const_iterator::const_iterator std::_Bit_const_iterator::operator-(int) const':
/usr/include/c++/7/bits/stl_bvector.h:378:20: error: no match for 'operator-=' (operand types are 'std::_Bit_const_iterator::const_iterator {aka std::_Bit_const_iterator}' and 'int')
return __tmp -= __i;
~~~~~~^~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
from /usr/include/c++/7/vector:60,
from foo.cc:2:
/usr/include/c++/7/bits/stl_iterator.h: In instantiation of 'class std::reverse_iterator<std::_Bit_iterator>':
/usr/include/c++/7/bits/stl_bvector.h:798:5: required from here
/usr/include/c++/7/bits/stl_iterator.h:101:11: error: no type named 'iterator_category' in 'struct std::iterator_traits<std::_Bit_iterator>'
class reverse_iterator
^~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:115:55: error: no type named 'difference_type' in 'struct std::iterator_traits<std::_Bit_iterator>'
typedef typename __traits_type::difference_type difference_type;
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:116:48: error: no type named 'pointer' in 'struct std::iterator_traits<std::_Bit_iterator>'
typedef typename __traits_type::pointer pointer;
^~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:117:50: error: no type named 'reference' in 'struct std::iterator_traits<std::_Bit_iterator>'
typedef typename __traits_type::reference reference;
^~~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h: In instantiation of 'class std::reverse_iterator<std::_Bit_const_iterator>':
/usr/include/c++/7/bits/stl_bvector.h:802:5: required from here
/usr/include/c++/7/bits/stl_iterator.h:101:11: error: no type named 'iterator_category' in 'struct std::iterator_traits<std::_Bit_const_iterator>'
class reverse_iterator
^~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:115:55: error: no type named 'difference_type' in 'struct std::iterator_traits<std::_Bit_const_iterator>'
typedef typename __traits_type::difference_type difference_type;
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:116:48: error: no type named 'pointer' in 'struct std::iterator_traits<std::_Bit_const_iterator>'
typedef typename __traits_type::pointer pointer;
^~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:117:50: error: no type named 'reference' in 'struct std::iterator_traits<std::_Bit_const_iterator>'
typedef typename __traits_type::reference reference;
^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:21:2: error: 'cin' was not declared in this scope
cin >> n >> q;
^~~
foo.cc:21:2: note: suggested alternative: 'main'
cin >> n >> q;
^~~
main
In file included from /usr/include/c++/7/bits/stl_construct.h:61:0,
from /usr/include/c++/7/vector:62,
from foo.cc:2:
/usr/include/c++/7/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<Trp> >':
/usr/include/c++/7/bits/stl_vector.h:77:21: required from 'struct std::_Vector_base<Trp, std::allocator<Trp> >'
/usr/include/c++/7/bits/stl_vector.h:216:11: required from 'class std::vector<Trp>'
foo.cc:22:14: required from here
/usr/include/c++/7/ext/alloc_traits.h:61:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<Trp> >'
typedef typename _Base_type::size_type size_type;
^~~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h:62:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<Trp> >'
typedef typename _Base_type::difference_type difference_type;
^~~~~~~~~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h:70:23: error: no members matching '__gnu_cxx::__alloc_traits<std::allocator<Trp> >::_Base_type {aka std::allocator_traits<std::allocator<Trp> >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<Trp> >::_Base_type {aka struct std::allocator_traits<std::allocator<Trp> >}'
using _Base_type::max_size;
^~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<mpair> >':
/usr/include/c++/7/bits/stl_vector.h:77:21: required from 'struct std::_Vector_base<mpair, std::allocator<mpair> >'
/usr/include/c++/7/bits/stl_vector.h:216:11: required from 'class std::vector<mpair>'
foo.cc:28:16: required from here
/usr/include/c++/7/ext/alloc_traits.h:61:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<mpair> >'
typedef typename _Base_type::size_type size_type;
^~~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h:62:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<mpair> >'
typedef typename _Base_type::difference_type difference_type;
^~~~~~~~~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h:70:23: error: no members matching '__gnu_cxx::__alloc_traits<std::allocator<mpair> >::_Base_type {aka std::allocator_traits<std::allocator<mpair> >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<mpair> >::_Base_type {aka struct std::allocator_traits<std::allocator<mpair> >}'
using _Base_type::max_size;
^~~~~~~~
foo.cc:34:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < arr.size(); i++)
~~^~~~~~~~~~~~
foo.cc:38:4: error: 'cout' was not declared in this scope
cout << i+1 << " ";
^~~~
foo.cc:43:4: error: 'cout' was not declared in this scope
cout << "Accepted" << endl;
^~~~
foo.cc:43:26: error: 'endl' was not declared in this scope
cout << "Accepted" << endl;
^~~~
foo.cc:43:26: note: suggested alternative: 'enum'
cout << "Accepted" << endl;
^~~~
enum
In file included from /usr/include/c++/7/bits/stl_construct.h:61:0,
from /usr/include/c++/7/vector:62,
from foo.cc:2:
/usr/include/c++/7/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<int> >':
/usr/include/c++/7/bits/stl_vector.h:77:21: required from 'struct std::_Vector_base<int, std::allocator<int> >'
/usr/include/c++/7/bits/stl_vector.h:216:11: required from 'class std::vector<int>'
foo.cc:49:20: required from here
/usr/include/c++/7/ext/alloc_traits.h:61:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<int> >'
typedef typename _Base_type::size_type size_type;
^~~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h:62:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<int> >'
typedef typename _Base_type::difference_type difference_type;
^~~~~~~~~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h:70:23: error: no members matching '__gnu_cxx::__alloc_traits<std::allocator<int> >::_Base_type {aka std::allocator_traits<std::allocator<int> >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<int> >::_Base_type {aka struct std::allocator_traits<std::allocator<int> >}'
using _Base_type::max_size;
^~~~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
from /usr/include/c++/7/vector:60,
from foo.cc:2:
/usr/include/c++/7/bits/stl_iterator.h: In instantiation of 'class __gnu_cxx::__normal_iterator<mpair*, std::vector<mpair> >':
foo.cc:69:17: required from here
/usr/include/c++/7/bits/stl_iterator.h:774:56: error: no type named 'difference_type' in 'struct std::iterator_traits<mpair*>'
typedef typename __traits_type::difference_type difference_type;
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h: In instantiation of 'class __gnu_cxx::__normal_iterator<Trp*, std::vector<Trp> >':
/usr/include/c++/7/bits/vector.tcc:105:25: required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {Trp}; _Tp = Trp; _Alloc = std::allocator<Trp>]'
/usr/include/c++/7/bits/stl_vector.h:954:21: required from 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Trp; _Alloc = std::allocator<Trp>; std::vector<_Tp, _Alloc>::value_type = Trp]'
foo.cc:26:29: required from here
/usr/include/c++/7/bits/stl_iterator.h:774:56: error: no type named 'difference_type' in 'struct std::iterator_traits<Trp*>'
In file included from /usr/include/c++/7/bits/stl_construct.h:61:0,
from /usr/include/c++/7/vector:62,
from foo.cc:2:
/usr/include/c++/7/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<int*> >':
/usr/include/c++/7/bits/stl_deque.h:623:31: required from 'void std::_Deque_base<_Tp, _Alloc>::_M_deallocate_map(std::_Deque_base<_Tp, _Alloc>::_Map_pointer, size_t) [with _Tp = int; _Alloc = std::allocator<int>; std::_Deque_base<_Tp, _Alloc>::_Map_pointer = int**; size_t = long unsigned int]'
/usr/include/c++/7/bits/stl_deque.h:667:21: required from 'std::_Deque_base<_Tp, _Alloc>::~_Deque_base() [with _Tp = int; _Alloc = std::allocator<int>]'
/usr/include/c++/7/bits/stl_deque.h:888:23: required from 'std::deque<_Tp, _Alloc>::deque() [with _Tp = int; _Alloc = std::allocator<int>]'
foo.cc:61:13: required from here
/usr/include/c++/7/ext/alloc_traits.h:61:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<int*> >'
typedef typename _Base_type::size_type size_type;
^~~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h:62:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<int*> >'
typedef typename _Base_type::difference_type difference_type;
^~~~~~~~~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h:70:23: error: no members matching '__gnu_cxx::__alloc_traits<std::allocator<int*> >::_Base_type {aka std::allocator_traits<std::allocator<int*> >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<int*> >::_Base_type {aka struct std::allocator_traits<std::allocator<int*> >}'
using _Base_type::max_size;
^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33:0,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from foo.cc:2:
/usr/include/c++/7/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = int; _Args = {const int&}; _Tp = int]':
/usr/include/c++/7/bits/alloc_traits.h:475:4: required from 'static void std::allocator_traits<std::allocator<_Tp1> >::construct(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, _Up*, _Args&& ...) [with _Up = int; _Args = {const int&}; _Tp = int; std::allocator_traits<std::allocator<_Tp1> >::allocator_type = std::allocator<int>]'
/usr/include/c++/7/bits/stl_deque.h:1547:30: required from 'void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::deque<_Tp, _Alloc>::value_type = int]'
foo.cc:63:19: required from here
/usr/include/c++/7/ext/new_allocator.h:136:4: error: no matching function for call to 'operator new(sizetype, void*)'
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<built-in>: note: candidate: void* operator new(long unsigned int)
<built-in>: note: candidate expects 1 argument, 2 provided
/usr/include/c++/7/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = Trp; _Args = {Trp}; _Tp = Trp]':
/usr/include/c++/7/bits/alloc_traits.h:475:4: required from 'static void std::allocator_traits<std::allocator<_Tp1> >::construct(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, _Up*, _Args&& ...) [with _Up = Trp; _Args = {Trp}; _Tp = Trp; std::allocator_traits<std::allocator<_Tp1> >::allocator_type = std::allocator<Trp>]'
/usr/include/c++/7/bits/vector.tcc:100:30: required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {Trp}; _Tp = Trp; _Alloc = std::allocator<Trp>]'
/usr/include/c++/7/bits/stl_vector.h:954:21: required from 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Trp; _Alloc = std::allocator<Trp>; std::vector<_Tp, _Alloc>::value_type = Trp]'
foo.cc:26:29: required from here
/usr/include/c++/7/ext/new_allocator.h:136:4: error: no matching function for call to 'operator new(sizetype, void*)'
<built-in>: note: candidate: void* operator new(long unsigned int)
<built-in>: note: candidate expects 1 argument, 2 provided
/usr/include/c++/7/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = mpair; _Args = {mpair}; _Tp = mpair]':
/usr/include/c++/7/bits/alloc_traits.h:475:4: required from 'static void std::allocator_traits<std::allocator<_Tp1> >::construct(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, _Up*, _Args&& ...) [with _Up = mpair; _Args = {mpair}; _Tp = mpair; std::allocator_traits<std::allocator<_Tp1> >::allocator_type = std::allocator<mpair>]'
/usr/include/c++/7/bits/vector.tcc:100:30: required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mpair}; _Tp = mpair; _Alloc = std::allocator<mpair>]'
/usr/include/c++/7/bits/stl_vector.h:954:21: required from 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = mpair; _Alloc = std::allocator<mpair>; std::vector<_Tp, _Alloc>::value_type = mpair]'
foo.cc:32:31: required from here
/usr/include/c++/7/ext/new_allocator.h:136:4: error: no matching function for call to 'operator new(sizetype, void*)'
<built-in>: note: candidate: void* operator new(long unsigned int)
<built-in>: note: candidate expects 1 argument, 2 provided
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
from /usr/include/c++/7/vector:60,
from foo.cc:2:
/usr/include/c++/7/bits/stl_iterator.h: In instantiation of 'class std::move_iterator<mpair*>':
/usr/include/c++/7/bits/stl_uninitialized.h:311:3: required from '_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = mpair*; _ForwardIterator = mpair*; _Allocator = std::allocator<mpair>]'
/usr/include/c++/7/bits/vector.tcc:426:6: required from 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mpair}; _Tp = mpair; _Alloc = std::allocator<mpair>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<mpair*, std::vector<mpair> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = mpair*]'
/usr/include/c++/7/bits/vector.tcc:105:21: required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mpair}; _Tp = mpair; _Alloc = std::allocator<mpair>]'
/usr/include/c++/7/bits/stl_vector.h:954:21: required from 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = mpair; _Alloc = std::allocator<mpair>; std::vector<_Tp, _Alloc>::value_type = mpair]'
foo.cc:32:31: required from here
/usr/include/c++/7/bits/stl_iterator.h:1025:55: error: no type named 'difference_type' in 'struct std::iterator_traits<mpair*>'
typedef typename __traits_type::difference_type difference_type;
^~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/vector:64:0,
from foo.cc:2:
/usr/include/c++/7/bits/stl_vector.h: In instantiation of 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::max_size() const [with _Tp = mpair; _Alloc = std::allocator<mpair>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]':
/usr/include/c++/7/bits/stl_vector.h:1504:14: required from 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::_M_check_len(std::vector<_Tp, _Alloc>::size_type, const char*) const [with _Tp = mpair; _Alloc = std::allocator<mpair>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
/usr/include/c++/7/bits/vector.tcc:404:14: required from 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mpair}; _Tp = mpair; _Alloc = std::allocator<mpair>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<mpair*, std::vector<mpair> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = mpair*]'
/usr/include/c++/7/bits/vector.tcc:105:21: required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mpair}; _Tp = mpair; _Alloc = std::allocator<mpair>]'
/usr/include/c++/7/bits/stl_vector.h:954:21: required from 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = mpair; _Alloc = std::allocator<mpair>; std::vector<_Tp, _Alloc>::value_type = mpair]'
foo.cc:32:31: required from here
/usr/include/c++/7/bits/stl_vector.h:676:39: error: 'max_size' is not a member of 'std::vector<mpair>::_Alloc_traits {aka __gnu_cxx::__alloc_traits<std::allocator<mpair> >}'
{ return _Alloc_traits::max_size(_M_get_Tp_allocator()); }
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~