foo.cc:6:2: error: stray '#' in program
6 | }#include<iostream>
| ^
foo.cc:6:3: error: 'include' does not name a type
6 | }#include<iostream>
| ^~~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:62,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/ext/type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
162 | __is_null_pointer(std::nullptr_t)
| ^
/usr/include/c++/9/ext/type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
157 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
/usr/include/c++/9/ext/type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'
162 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:361:31: error: 'std::size_t' has not been declared
361 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/usr/include/c++/9/type_traits:362:25: error: '_Size' was not declared in this scope
362 | struct is_array<_Tp[_Size]>
| ^~~~~
/usr/include/c++/9/type_traits:362:31: error: template argument 1 is invalid
362 | struct is_array<_Tp[_Size]>
| ^
/usr/include/c++/9/type_traits:560:42: error: 'nullptr_t' is not a member of 'std'
560 | struct __is_null_pointer_helper<std::nullptr_t>
| ^~~~~~~~~
/usr/include/c++/9/type_traits:560:42: error: 'nullptr_t' is not a member of 'std'
/usr/include/c++/9/type_traits:560:51: error: template argument 1 is invalid
560 | struct __is_null_pointer_helper<std::nullptr_t>
| ^
/usr/include/c++/9/type_traits:1246:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1246 | : public integral_constant<std::size_t, alignof(_Tp)> { };
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1246:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1246 | : public integral_constant<std::size_t, alignof(_Tp)> { };
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1246:57: error: template argument 1 is invalid
1246 | : public integral_constant<std::size_t, alignof(_Tp)> { };
| ^
/usr/include/c++/9/type_traits:1246:57: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1251:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1251 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1251:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1251 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1251:46: error: template argument 1 is invalid
1251 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/9/type_traits:1251:46: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1253:31: error: 'std::size_t' has not been declared
1253 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/usr/include/c++/9/type_traits:1254:21: error: '_Size' was not declared in this scope
1254 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/9/type_traits:1254:27: error: template argument 1 is invalid
1254 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/9/type_traits:1255:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1255 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1255:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1255 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1255:65: error: template argument 1 is invalid
1255 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/9/type_traits:1255:65: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1259:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1259 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1259:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1259 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1259:65: error: template argument 1 is invalid
1259 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/9/type_traits:1259:65: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1264:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1264 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1264:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1264 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1264:46: error: template argument 1 is invalid
1264 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/9/type_traits:1264:46: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1266:47: error: 'std::size_t' has not been declared
1266 | template<typename _Tp, unsigned _Uint, std::size_t _Size>
| ^~~~~~
/usr/include/c++/9/type_traits:1267:23: error: '_Size' was not declared in this scope
1267 | struct extent<_Tp[_Size], _Uint>
| ^~~~~
/usr/include/c++/9/type_traits:1267:36: error: template argument 1 is invalid
1267 | struct extent<_Tp[_Size], _Uint>
| ^
/usr/include/c++/9/type_traits:1268:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1268 | : public integral_constant<std::size_t,
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1268:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1268 | : public integral_constant<std::size_t,
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1269:24: error: '_Size' was not declared in this scope
1269 | _Uint == 0 ? _Size : extent<_Tp,
| ^~~~~
/usr/include/c++/9/type_traits:1270:28: error: template argument 1 is invalid
1270 | _Uint - 1>::value>
| ^
/usr/include/c++/9/type_traits:1270:28: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1275:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1275 | : public integral_constant<std::size_t,
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1275:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1275 | : public integral_constant<std::size_t,
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/type_traits:1277:31: error: template argument 1 is invalid
1277 | _Uint - 1>::value>
| ^
/usr/include/c++/9/type_traits:1277:31: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1832:31: error: 'std::size_t' has not been declared
1832 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/usr/include/c++/9/type_traits:1833:30: error: '_Size' was not declared in this scope
1833 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/9/type_traits:1833:36: error: template argument 1 is invalid
1833 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/9/type_traits:1845:31: error: 'std::size_t' has not been declared
1845 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/usr/include/c++/9/type_traits:1846:35: error: '_Size' was not declared in this scope
1846 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/9/type_traits:1846:41: error: template argument 1 is invalid
1846 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/9/type_traits:1904:17: error: 'std::size_t' has not been declared
1904 | template<std::size_t _Len>
| ^~~~~~
/usr/include/c++/9/type_traits:1909:23: error: '_Len' was not declared in this scope
1909 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/9/type_traits:1924:17: error: 'std::size_t' has not been declared
1924 | template<std::size_t _Len, std::size_t _Align =
| ^~~~~~
/usr/include/c++/9/type_traits:1924:35: error: 'std::size_t' has not been declared
1924 | template<std::size_t _Len, std::size_t _Align =
| ^~~~~~
/usr/include/c++/9/type_traits:1925:48: error: '_Len' was not declared in this scope
1925 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/9/type_traits:1925:52: error: template argument 1 is invalid
1925 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/9/type_traits:1930:23: error: '_Len' was not declared in this scope
1930 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/9/type_traits:1931:37: error: '_Align' was not declared in this scope
1931 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/bits/stl_pair.h:86:17: error: 'std::size_t' has not been declared
86 | template<std::size_t...>
| ^~~~~~
/usr/include/c++/9/bits/stl_pair.h:434:41: error: 'std::size_t' has not been declared
434 | template<typename... _Args1, std::size_t... _Indexes1,
| ^~~~~~
/usr/include/c++/9/bits/stl_pair.h:435:41: error: 'std::size_t' has not been declared
435 | typename... _Args2, std::size_t... _Indexes2>
| ^~~~~~
/usr/include/c++/9/bits/stl_pair.h:437:27: error: '_Indexes1' was not declared in this scope
437 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_pair.h:437:36: error: expected parameter pack before '...'
437 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~
/usr/include/c++/9/bits/stl_pair.h:437:39: error: template argument 1 is invalid
437 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^
/usr/include/c++/9/bits/stl_pair.h:437:55: error: '_Indexes2' was not declared in this scope
437 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_pair.h:437:64: error: expected parameter pack before '...'
437 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~
/usr/include/c++/9/bits/stl_pair.h:437:67: error: template argument 1 is invalid
437 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:65,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/bits/stl_iterator_base_types.h:116:67: error: 'ptrdiff_t' does not name a type
116 | template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
| ^~~~~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:65,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/bits/stl_iterator_base_types.h:1:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | // Types used in iterator implementation -*- C++ -*-
In file included from /usr/include/c++/9/bits/stl_algobase.h:65,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/bits/stl_iterator_base_types.h:182:15: error: 'ptrdiff_t' does not name a type
182 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_iterator_base_types.h:182:15: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/9/bits/stl_iterator_base_types.h:193:15: error: 'ptrdiff_t' does not name a type
193 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_iterator_base_types.h:193:15: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/9/bits/stl_algobase.h:66,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/bits/stl_iterator_base_funcs.h:110:5: error: 'ptrdiff_t' does not name a type
110 | ptrdiff_t
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_iterator_base_funcs.h:66:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
65 | #include <debug/assertions.h>
+++ |+#include <cstddef>
66 |
/usr/include/c++/9/bits/stl_iterator_base_funcs.h:116:5: error: 'ptrdiff_t' does not name a type
116 | ptrdiff_t
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_iterator_base_funcs.h:116:5: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/9/bits/stl_iterator.h:66,
from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/bits/ptr_traits.h:109:20: error: 'ptrdiff_t' was not declared in this scope
109 | = __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;
| ^~~~~~~~~
/usr/include/c++/9/bits/ptr_traits.h:1:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | // Pointer Traits -*- C++ -*-
/usr/include/c++/9/bits/ptr_traits.h:109:54: error: template argument 1 is invalid
109 | = __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;
| ^
/usr/include/c++/9/bits/ptr_traits.h:135:15: error: 'ptrdiff_t' does not name a type
135 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/include/c++/9/bits/ptr_traits.h:135:15: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/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++/9/bits/stl_algobase.h:384:10: error: 'ptrdiff_t' does not name a type
384 | const ptrdiff_t _Num = __last - __first;
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_algobase.h:72:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
71 | #include <bits/predefined_ops.h>
+++ |+#include <cstddef>
72 | #if __cplusplus >= 201103L
/usr/include/c++/9/bits/stl_algobase.h:385:8: error: '_Num' was not declared in this scope
385 | if (_Num)
| ^~~~
/usr/include/c++/9/bits/stl_algobase.h:387:22: error: '_Num' was not declared in this scope
387 | return __result + _Num;
| ^~~~
/usr/include/c++/9/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++/9/bits/stl_algobase.h:586:10: error: 'ptrdiff_t' does not name a type
586 | const ptrdiff_t _Num = __last - __first;
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_algobase.h:586:10: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/9/bits/stl_algobase.h:587:8: error: '_Num' was not declared in this scope
587 | if (_Num)
| ^~~~
/usr/include/c++/9/bits/stl_algobase.h:589:22: error: '_Num' was not declared in this scope
589 | return __result - _Num;
| ^~~~
In file included from /usr/include/c++/9/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h:33,
from /usr/include/c++/9/bits/allocator.h:46,
from /usr/include/c++/9/vector:64,
from foo.cc:7:
/usr/include/c++/9/new: At global scope:
/usr/include/c++/9/new:125:50: error: declaration of 'operator new' as non-function
125 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
/usr/include/c++/9/new:125:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
125 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h:33,
from /usr/include/c++/9/bits/allocator.h:46,
from /usr/include/c++/9/vector:64,
from foo.cc:7:
/usr/include/c++/9/new:126:41: error: attributes after parenthesized initializer ignored [-fpermissive]
126 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/9/new:127:52: error: declaration of 'operator new []' as non-function
127 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
/usr/include/c++/9/new:127:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
127 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h:33,
from /usr/include/c++/9/bits/allocator.h:46,
from /usr/include/c++/9/vector:64,
from foo.cc:7:
/usr/include/c++/9/new:128:41: error: attributes after parenthesized initializer ignored [-fpermissive]
128 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/9/new:139:44: error: declaration of 'operator new' as non-function
139 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/include/c++/9/new:139:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h:33,
from /usr/include/c++/9/bits/allocator.h:46,
from /usr/include/c++/9/vector:64,
from foo.cc:7:
/usr/include/c++/9/new:139:52: error: expected primary-expression before 'const'
139 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/include/c++/9/new:141:46: error: declaration of 'operator new []' as non-function
141 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/include/c++/9/new:141:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h:33,
from /usr/include/c++/9/bits/allocator.h:46,
from /usr/include/c++/9/vector:64,
from foo.cc:7:
/usr/include/c++/9/new:141:54: error: expected primary-expression before 'const'
141 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/include/c++/9/new:173:51: error: declaration of 'operator new' as non-function
173 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/include/c++/9/new:173:51: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h:33,
from /usr/include/c++/9/bits/allocator.h:46,
from /usr/include/c++/9/vector:64,
from foo.cc:7:
/usr/include/c++/9/new:173:59: error: expected primary-expression before 'void'
173 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~
/usr/include/c++/9/new:175:53: error: declaration of 'operator new []' as non-function
175 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/include/c++/9/new:175:53: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h:33,
from /usr/include/c++/9/bits/allocator.h:46,
from /usr/include/c++/9/vector:64,
from foo.cc:7:
/usr/include/c++/9/new:175:61: error: expected primary-expression before 'void'
175 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h:33,
from /usr/include/c++/9/bits/allocator.h:46,
from /usr/include/c++/9/vector:64,
from foo.cc:7:
/usr/include/c++/9/ext/new_allocator.h:44:14: error: 'std::size_t' has not been declared
44 | using std::size_t;
| ^~~~~~
/usr/include/c++/9/ext/new_allocator.h:45:14: error: 'std::ptrdiff_t' has not been declared
45 | using std::ptrdiff_t;
| ^~~~~~~~~
In file included from /usr/include/c++/9/ext/alloc_traits.h:36,
from /usr/include/c++/9/bits/stl_construct.h:61,
from /usr/include/c++/9/vector:65,
from foo.cc:7:
/usr/include/c++/9/bits/alloc_traits.h:411:36: error: 'ptrdiff_t' in namespace 'std' does not name a type
411 | using difference_type = std::ptrdiff_t;
| ^~~~~~~~~
/usr/include/c++/9/bits/alloc_traits.h:414:30: error: 'size_t' in namespace 'std' does not name a type
414 | using size_type = std::size_t;
| ^~~~~~
/usr/include/c++/9/bits/alloc_traits.h:442:37: error: 'size_type' has not been declared
442 | allocate(allocator_type& __a, size_type __n)
| ^~~~~~~~~
/usr/include/c++/9/bits/alloc_traits.h:456:37: error: 'size_type' has not been declared
456 | allocate(allocator_type& __a, size_type __n, const_void_pointer __hint)
| ^~~~~~~~~
/usr/include/c++/9/bits/alloc_traits.h:468:52: error: 'size_type' has not been declared
468 | deallocate(allocator_type& __a, pointer __p, size_type __n)
| ^~~~~~~~~
/usr/include/c++/9/bits/alloc_traits.h:503:14: error: 'size_type' does not name a type; did you mean 'true_type'?
503 | static size_type
| ^~~~~~~~~
| true_type
In file included from /usr/include/c++/9/vector:68,
from foo.cc:7:
/usr/include/c++/9/bits/stl_bvector.h:143:63: error: template argument 3 is invalid
143 | : public std::iterator<std::random_access_iterator_tag, bool>
| ^
/usr/include/c++/9/bits/stl_bvector.h: In member function 'void std::_Bit_iterator_base::_M_incr(ptrdiff_t)':
/usr/include/c++/9/bits/stl_bvector.h:174:7: error: 'difference_type' was not declared in this scope
174 | difference_type __n = __i + _M_offset;
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_bvector.h:175:15: error: '__n' was not declared in this scope; did you mean '__i'?
175 | _M_p += __n / int(_S_word_bit);
| ^~~
| __i
/usr/include/c++/9/bits/stl_bvector.h: At global scope:
/usr/include/c++/9/bits/stl_bvector.h:270:16: error: declaration of 'operator+=' as non-function
270 | operator+=(difference_type __i)
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_bvector.h:270:13: error: expected ';' at end of member declaration
270 | operator+=(difference_type __i)
| ^~
| ;
/usr/include/c++/9/bits/stl_bvector.h:270:31: error: expected ')' before '__i'
270 | operator+=(difference_type __i)
| ~ ^~~~
| )
/usr/include/c++/9/bits/stl_bvector.h:277:16: error: declaration of 'operator-=' as non-function
277 | operator-=(difference_type __i)
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_bvector.h:277:13: error: expected ';' at end of member declaration
277 | operator-=(difference_type __i)
| ^~
| ;
/usr/include/c++/9/bits/stl_bvector.h:277:31: error: expected ')' before '__i'
277 | operator-=(difference_type __i)
| ~ ^~~~
| )
/usr/include/c++/9/bits/stl_bvector.h:284:15: error: 'difference_type' has not been declared
284 | operator+(difference_type __i) const
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_bvector.h:291:15: error: 'difference_type' has not been declared
291 | operator-(difference_type __i) const
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_bvector.h:298:16: error: 'difference_type' has not been declared
298 | operator[](difference_type __i) const
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_bvector.h: In member function 'std::_Bit_iterator::iterator std::_Bit_iterator::operator+(int) const':
/usr/include/c++/9/bits/stl_bvector.h:287:20: error: no match for 'operator+=' (operand types are 'std::_Bit_iterator::iterator' {aka 'std::_Bit_iterator'} and 'int')
287 | return __tmp += __i;
| ~~~~~~^~~~~~
/usr/include/c++/9/bits/stl_bvector.h: In member function 'std::_Bit_iterator::iterator std::_Bit_iterator::operator-(int) const':
/usr/include/c++/9/bits/stl_bvector.h:294:20: error: no match for 'operator-=' (operand types are 'std::_Bit_iterator::iterator' {aka 'std::_Bit_iterator'} and 'int')
294 | return __tmp -= __i;
| ~~~~~~^~~~~~
/usr/include/c++/9/bits/stl_bvector.h: At global scope:
/usr/include/c++/9/bits/stl_bvector.h:360:16: error: declaration of 'operator+=' as non-function
360 | operator+=(difference_type __i)
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_bvector.h:360:13: error: expected ';' at end of member declaration
360 | operator+=(difference_type __i)
| ^~
| ;
/usr/include/c++/9/bits/stl_bvector.h:360:31: error: expected ')' before '__i'
360 | operator+=(difference_type __i)
| ~ ^~~~
| )
/usr/include/c++/9/bits/stl_bvector.h:367:16: error: declaration of 'operator-=' as non-function
367 | operator-=(difference_type __i)
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_bvector.h:367:13: error: expected ';' at end of member declaration
367 | operator-=(difference_type __i)
| ^~
| ;
/usr/include/c++/9/bits/stl_bvector.h:367:31: error: expected ')' before '__i'
367 | operator-=(difference_type __i)
| ~ ^~~~
| )
/usr/include/c++/9/bits/stl_bvector.h:374:15: error: 'difference_type' has not been declared
374 | operator+(difference_type __i) const
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_bvector.h:381:15: error: 'difference_type' has not been declared
381 | operator-(difference_type __i) const
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_bvector.h:388:16: error: 'difference_type' has not been declared
388 | operator[](difference_type __i) const
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_bvector.h: In member function 'std::_Bit_const_iterator::const_iterator std::_Bit_const_iterator::operator+(int) const':
/usr/include/c++/9/bits/stl_bvector.h:377:20: error: no match for 'operator+=' (operand types are 'std::_Bit_const_iterator::const_iterator' {aka 'std::_Bit_const_iterator'} and 'int')
377 | return __tmp += __i;
| ~~~~~~^~~~~~
/usr/include/c++/9/bits/stl_bvector.h: In member function 'std::_Bit_const_iterator::const_iterator std::_Bit_const_iterator::operator-(int) const':
/usr/include/c++/9/bits/stl_bvector.h:384:20: error: no match for 'operator-=' (operand types are 'std::_Bit_const_iterator::const_iterator' {aka 'std::_Bit_const_iterator'} and 'int')
384 | return __tmp -= __i;
| ~~~~~~^~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/bits/stl_iterator.h: In instantiation of 'class std::reverse_iterator<std::_Bit_iterator>':
/usr/include/c++/9/bits/stl_bvector.h:828:7: required from here
/usr/include/c++/9/bits/stl_iterator.h:105:11: error: no type named 'iterator_category' in 'struct std::iterator_traits<std::_Bit_iterator>'
105 | class reverse_iterator
| ^~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_iterator.h:119:55: error: no type named 'difference_type' in 'struct std::iterator_traits<std::_Bit_iterator>'
119 | typedef typename __traits_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_iterator.h:120:48: error: no type named 'pointer' in 'struct std::iterator_traits<std::_Bit_iterator>'
120 | typedef typename __traits_type::pointer pointer;
| ^~~~~~~
/usr/include/c++/9/bits/stl_iterator.h:121:50: error: no type named 'reference' in 'struct std::iterator_traits<std::_Bit_iterator>'
121 | typedef typename __traits_type::reference reference;
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_iterator.h: In instantiation of 'class std::reverse_iterator<std::_Bit_const_iterator>':
/usr/include/c++/9/bits/stl_bvector.h:832:7: required from here
/usr/include/c++/9/bits/stl_iterator.h:105:11: error: no type named 'iterator_category' in 'struct std::iterator_traits<std::_Bit_const_iterator>'
105 | class reverse_iterator
| ^~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_iterator.h:119:55: error: no type named 'difference_type' in 'struct std::iterator_traits<std::_Bit_const_iterator>'
119 | typedef typename __traits_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_iterator.h:120:48: error: no type named 'pointer' in 'struct std::iterator_traits<std::_Bit_const_iterator>'
120 | typedef typename __traits_type::pointer pointer;
| ^~~~~~~
/usr/include/c++/9/bits/stl_iterator.h:121:50: error: no type named 'reference' in 'struct std::iterator_traits<std::_Bit_const_iterator>'
121 | typedef typename __traits_type::reference reference;
| ^~~~~~~~~
In file included from /usr/include/c++/9/string:40,
from foo.cc:9:
/usr/include/c++/9/bits/char_traits.h: At global scope:
/usr/include/c++/9/bits/char_traits.h:108:66: error: 'std::size_t' has not been declared
108 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h:110:40: error: 'size_t' in namespace 'std' does not name a type
110 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h:114:39: error: 'std::size_t' has not been declared
114 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h:117:57: error: 'std::size_t' has not been declared
117 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h:120:57: error: 'std::size_t' has not been declared
120 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h:123:35: error: 'std::size_t' has not been declared
123 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h:149:64: error: 'std::size_t' has not been declared
149 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h: In static member function 'static int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/include/c++/9/bits/char_traits.h:151:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
151 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/string:40,
from foo.cc:9:
/usr/include/c++/9/bits/char_traits.h:151:33: error: '__i' was not declared in this scope; did you mean '__n'?
151 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __n
/usr/include/c++/9/bits/char_traits.h: At global scope:
/usr/include/c++/9/bits/char_traits.h:160:31: error: 'size_t' in namespace 'std' does not name a type
160 | _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h:173:37: error: 'std::size_t' has not been declared
173 | find(const char_type* __s, std::size_t __n, const char_type& __a)
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h: In static member function 'static const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)':
/usr/include/c++/9/bits/char_traits.h:175:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
175 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from foo.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/string:40,
from foo.cc:9:
/usr/include/c++/9/bits/char_traits.h:175:33: error: '__i' was not declared in this scope; did you mean '__s'?
175 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __s
/usr/include/c++/9/bits/char_traits.h: At global scope:
/usr/include/c++/9/bits/char_traits.h:184:55: error: 'std::size_t' has not been declared
184 | move(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h:195:55: error: 'std::size_t' has not been declared
195 | copy(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h:205:33: error: 'std::size_t' has not been declared
205 | assign(char_type* __s, std::size_t __n, char_type __a)
| ^~~~~~
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:55:51: error: 'std::size_t' has not been declared
55 | const char* __name, const _CharT* __str, std::size_t* __idx,
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:48: error: 'std::size_t' has not been declared
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:100:31: error: 'std::size_t' has not been declared
100 | __builtin_va_list), std::size_t __n,
| ^~~~~~
In file included from /usr/include/c++/9/bits/stl_construct.h:61,
from /usr/include/c++/9/vector:65,
from foo.cc:7:
/usr/include/c++/9/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<char>, char>':
/usr/include/c++/9/bits/basic_string.h:84:24: required from 'class std::__cxx11::basic_string<char>'
/usr/include/c++/9/bits/basic_string.h:6507:68: required from here
/usr/include/c++/9/ext/alloc_traits.h:61:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<char> >'
61 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/9/ext/alloc_traits.h:62:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<char> >'
62 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/ext/alloc_traits.h:70:23: error: no members matching '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::_Base_type {aka std::allocator_traits<std::allocator<char> >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::_Base_type' {aka 'struct std::allocator_traits<std::allocator<char> >'}
70 | using _Base_type::max_size;
| ^~~~~~~~
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h: In function 'int std::__cxx11::stoi(const string&, size_t*, int)':
/usr/include/c++/9/bits/basic_string.h:6508:19: error: no matching function for call to '__stoa<long int, int>(long int (*)(const char*, char**, int) throw (), const char [5], const char*, size_t*&, int&)'
6508 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6508:6: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6508 | __idx, __base); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'long int std::__cxx11::stol(const string&, size_t*, int)':
/usr/include/c++/9/bits/basic_string.h:6513:22: error: no matching function for call to '__stoa(long int (*)(const char*, char**, int) throw (), const char [5], const char*, size_t*&, int&)'
6513 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6513:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6513 | __idx, __base); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'long unsigned int std::__cxx11::stoul(const string&, size_t*, int)':
/usr/include/c++/9/bits/basic_string.h:6518:22: error: no matching function for call to '__stoa(long unsigned int (*)(const char*, char**, int) throw (), const char [6], const char*, size_t*&, int&)'
6518 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6518:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6518 | __idx, __base); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'long long int std::__cxx11::stoll(const string&, size_t*, int)':
/usr/include/c++/9/bits/basic_string.h:6523:22: error: no matching function for call to '__stoa(long long int (*)(const char*, char**, int) throw (), const char [6], const char*, size_t*&, int&)'
6523 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6523:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6523 | __idx, __base); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'long long unsigned int std::__cxx11::stoull(const string&, size_t*, int)':
/usr/include/c++/9/bits/basic_string.h:6528:22: error: no matching function for call to '__stoa(long long unsigned int (*)(const char*, char**, int) throw (), const char [7], const char*, size_t*&, int&)'
6528 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6528:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6528 | __idx, __base); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'float std::__cxx11::stof(const string&, size_t*)':
/usr/include/c++/9/bits/basic_string.h:6533:72: error: no matching function for call to '__stoa(float (*)(const char*, char**) throw (), const char [5], const char*, size_t*&)'
6533 | { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6533:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6533 | { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'double std::__cxx11::stod(const string&, size_t*)':
/usr/include/c++/9/bits/basic_string.h:6537:72: error: no matching function for call to '__stoa(double (*)(const char*, char**) throw (), const char [5], const char*, size_t*&)'
6537 | { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6537:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6537 | { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'long double std::__cxx11::stold(const string&, size_t*)':
/usr/include/c++/9/bits/basic_string.h:6541:74: error: no matching function for call to '__stoa(long double (*)(const char*, char**) throw (), const char [6], const char*, size_t*&)'
6541 | { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6541:69: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6541 | { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(int)':
/usr/include/c++/9/bits/basic_string.h:6551:20: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), long unsigned int, const char [3], int&)'
6551 | "%d", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6551:20: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6551 | "%d", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(unsigned int)':
/usr/include/c++/9/bits/basic_string.h:6557:20: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), long unsigned int, const char [3], unsigned int&)'
6557 | "%u", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6557:20: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6557 | "%u", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long int)':
/usr/include/c++/9/bits/basic_string.h:6562:21: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), long unsigned int, const char [4], long int&)'
6562 | "%ld", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6562:21: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6562 | "%ld", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long unsigned int)':
/usr/include/c++/9/bits/basic_string.h:6568:21: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), long unsigned int, const char [4], long unsigned int&)'
6568 | "%lu", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6568:21: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6568 | "%lu", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long long int)':
/usr/include/c++/9/bits/basic_string.h:6574:22: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), long unsigned int, const char [5], long long int&)'
6574 | "%lld", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6574:22: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6574 | "%lld", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long long unsigned int)':
/usr/include/c++/9/bits/basic_string.h:6580:22: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), long unsigned int, const char [5], long long unsigned int&)'
6580 | "%llu", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6580:22: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6580 | "%llu", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(float)':
/usr/include/c++/9/bits/basic_string.h:6588:20: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), const int&, const char [3], float&)'
6588 | "%f", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6588:20: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6588 | "%f", __val);
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(double)':
/usr/include/c++/9/bits/basic_string.h:6597:20: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), const int&, const char [3], double&)'
6597 | "%f", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6597:20: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6597 | "%f", __val);
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long double)':
/usr/include/c++/9/bits/basic_string.h:6606:21: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), const int&, const char [4], long double&)'
6606 | "%Lf", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6606:21: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6606 | "%Lf", __val);
| ^
In file included from /usr/include/c++/9/bits/stl_construct.h:61,
from /usr/include/c++/9/vector:65,
from foo.cc:7:
/usr/include/c++/9/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>':
/usr/include/c++/9/bits/basic_string.h:84:24: required from 'class std::__cxx11::basic_string<wchar_t>'
/usr/include/c++/9/bits/basic_string.h:6613:68: required from here
/usr/include/c++/9/ext/alloc_traits.h:61:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<wchar_t> >'
61 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/9/ext/alloc_traits.h:62:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<wchar_t> >'
62 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/ext/alloc_traits.h:70:23: error: no members matching '__gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>::_Base_type {aka std::allocator_traits<std::allocator<wchar_t> >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>::_Base_type' {aka 'struct std::allocator_traits<std::allocator<wchar_t> >'}
70 | using _Base_type::max_size;
| ^~~~~~~~
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h: In function 'int std::__cxx11::stoi(const wstring&, size_t*, int)':
/usr/include/c++/9/bits/basic_string.h:6614:19: error: no matching function for call to '__stoa<long int, int>(long int (*)(const wchar_t*, wchar_t**, int) throw (), const char [5], const wchar_t*, size_t*&, int&)'
6614 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6614:6: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6614 | __idx, __base); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'long int std::__cxx11::stol(const wstring&, size_t*, int)':
/usr/include/c++/9/bits/basic_string.h:6619:22: error: no matching function for call to '__stoa(long int (*)(const wchar_t*, wchar_t**, int) throw (), const char [5], const wchar_t*, size_t*&, int&)'
6619 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6619:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6619 | __idx, __base); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'long unsigned int std::__cxx11::stoul(const wstring&, size_t*, int)':
/usr/include/c++/9/bits/basic_string.h:6624:22: error: no matching function for call to '__stoa(long unsigned int (*)(const wchar_t*, wchar_t**, int) throw (), const char [6], const wchar_t*, size_t*&, int&)'
6624 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6624:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6624 | __idx, __base); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'long long int std::__cxx11::stoll(const wstring&, size_t*, int)':
/usr/include/c++/9/bits/basic_string.h:6629:22: error: no matching function for call to '__stoa(long long int (*)(const wchar_t*, wchar_t**, int) throw (), const char [6], const wchar_t*, size_t*&, int&)'
6629 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6629:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6629 | __idx, __base); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'long long unsigned int std::__cxx11::stoull(const wstring&, size_t*, int)':
/usr/include/c++/9/bits/basic_string.h:6634:22: error: no matching function for call to '__stoa(long long unsigned int (*)(const wchar_t*, wchar_t**, int) throw (), const char [7], const wchar_t*, size_t*&, int&)'
6634 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6634:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6634 | __idx, __base); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'float std::__cxx11::stof(const wstring&, size_t*)':
/usr/include/c++/9/bits/basic_string.h:6639:72: error: no matching function for call to '__stoa(float (*)(const wchar_t*, wchar_t**) throw (), const char [5], const wchar_t*, size_t*&)'
6639 | { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6639:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6639 | { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'double std::__cxx11::stod(const wstring&, size_t*)':
/usr/include/c++/9/bits/basic_string.h:6643:72: error: no matching function for call to '__stoa(double (*)(const wchar_t*, wchar_t**) throw (), const char [5], const wchar_t*, size_t*&)'
6643 | { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6643:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6643 | { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'long double std::__cxx11::stold(const wstring&, size_t*)':
/usr/include/c++/9/bits/basic_string.h:6647:74: error: no matching function for call to '__stoa(long double (*)(const wchar_t*, wchar_t**) throw (), const char [6], const wchar_t*, size_t*&)'
6647 | { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/9/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6647:69: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6647 | { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(int)':
/usr/include/c++/9/bits/basic_string.h:6654:22: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), long unsigned int, const wchar_t [3], int&)'
6654 | L"%d", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6654:22: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6654 | L"%d", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(unsigned int)':
/usr/include/c++/9/bits/basic_string.h:6660:22: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), long unsigned int, const wchar_t [3], unsigned int&)'
6660 | L"%u", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6660:22: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6660 | L"%u", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long int)':
/usr/include/c++/9/bits/basic_string.h:6665:23: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), long unsigned int, const wchar_t [4], long int&)'
6665 | L"%ld", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6665:23: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6665 | L"%ld", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long unsigned int)':
/usr/include/c++/9/bits/basic_string.h:6671:23: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), long unsigned int, const wchar_t [4], long unsigned int&)'
6671 | L"%lu", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6671:23: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6671 | L"%lu", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long long int)':
/usr/include/c++/9/bits/basic_string.h:6677:24: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), long unsigned int, const wchar_t [5], long long int&)'
6677 | L"%lld", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6677:24: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6677 | L"%lld", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long long unsigned int)':
/usr/include/c++/9/bits/basic_string.h:6683:24: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), long unsigned int, const wchar_t [5], long long unsigned int&)'
6683 | L"%llu", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6683:24: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6683 | L"%llu", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(float)':
/usr/include/c++/9/bits/basic_string.h:6691:22: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), const int&, const wchar_t [3], float&)'
6691 | L"%f", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6691:22: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6691 | L"%f", __val);
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(double)':
/usr/include/c++/9/bits/basic_string.h:6700:22: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), const int&, const wchar_t [3], double&)'
6700 | L"%f", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6700:22: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6700 | L"%f", __val);
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long double)':
/usr/include/c++/9/bits/basic_string.h:6709:23: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), const int&, const wchar_t [4], long double&)'
6709 | L"%Lf", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h:6709:23: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6709 | L"%Lf", __val);
| ^
/usr/include/c++/9/bits/basic_string.h: In member function 'size_t std::hash<std::__cxx11::basic_string<char> >::operator()(const string&) const':
/usr/include/c++/9/bits/basic_string.h:6738:54: error: 'const string' {aka 'const class std::__cxx11::basic_string<char>'} has no member named 'length'
6738 | { return std::_Hash_impl::hash(__s.data(), __s.length()); }
| ^~~~~~
/usr/include/c++/9/bits/basic_string.h: In member function 'size_t std::hash<std::__cxx11::basic_string<wchar_t> >::operator()(const wstring&) const':
/usr/include/c++/9/bits/basic_string.h:6754:42: error: 'const wstring' {aka 'const class std::__cxx11::basic_string<wchar_t>'} has no member named 'length'
6754 | __s.length() * sizeof(wchar_t)); }
| ^~~~~~
In file included from /usr/include/c++/9/bits/stl_construct.h:61,
from /usr/include/c++/9/vector:65,
from foo.cc:7:
/usr/include/c++/9/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<char16_t>, char16_t>':
/usr/include/c++/9/bits/basic_string.h:84:24: required from 'class std::__cxx11::basic_string<char16_t>'
/usr/include/c++/9/bits/basic_string.h:6787:41: required from here
/usr/include/c++/9/ext/alloc_traits.h:61:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<char16_t> >'
61 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/9/ext/alloc_traits.h:62:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<char16_t> >'
62 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/ext/alloc_traits.h:70:23: error: no members matching '__gnu_cxx::__alloc_traits<std::allocator<char16_t>, char16_t>::_Base_type {aka std::allocator_traits<std::allocator<char16_t> >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<char16_t>, char16_t>::_Base_type' {aka 'struct std::allocator_traits<std::allocator<char16_t> >'}
70 | using _Base_type::max_size;
| ^~~~~~~~
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h: In member function 'size_t std::hash<std::__cxx11::basic_string<char16_t> >::operator()(const u16string&) const':
/usr/include/c++/9/bits/basic_string.h:6788:42: error: 'const u16string' {aka 'const class std::__cxx11::basic_string<char16_t>'} has no member named 'length'
6788 | __s.length() * sizeof(char16_t)); }
| ^~~~~~
In file included from /usr/include/c++/9/bits/stl_construct.h:61,
from /usr/include/c++/9/vector:65,
from foo.cc:7:
/usr/include/c++/9/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<char32_t>, char32_t>':
/usr/include/c++/9/bits/basic_string.h:84:24: required from 'class std::__cxx11::basic_string<char32_t>'
/usr/include/c++/9/bits/basic_string.h:6802:41: required from here
/usr/include/c++/9/ext/alloc_traits.h:61:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<char32_t> >'
61 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/9/ext/alloc_traits.h:62:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<char32_t> >'
62 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/ext/alloc_traits.h:70:23: error: no members matching '__gnu_cxx::__alloc_traits<std::allocator<char32_t>, char32_t>::_Base_type {aka std::allocator_traits<std::allocator<char32_t> >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<char32_t>, char32_t>::_Base_type' {aka 'struct std::allocator_traits<std::allocator<char32_t> >'}
70 | using _Base_type::max_size;
| ^~~~~~~~
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h: In member function 'size_t std::hash<std::__cxx11::basic_string<char32_t> >::operator()(const u32string&) const':
/usr/include/c++/9/bits/basic_string.h:6803:42: error: 'const u32string' {aka 'const class std::__cxx11::basic_string<char32_t>'} has no member named 'length'
6803 | __s.length() * sizeof(char32_t)); }
| ^~~~~~
In file included from /usr/include/c++/9/bits/stl_construct.h:61,
from /usr/include/c++/9/vector:65,
from foo.cc:7:
/usr/include/c++/9/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<int>, int>':
/usr/include/c++/9/bits/stl_vector.h:84:21: required from 'struct std::_Vector_base<int, std::allocator<int> >'
/usr/include/c++/9/bits/stl_vector.h:386:11: required from 'class std::vector<int>'
foo.cc:17:12: required from here
/usr/include/c++/9/ext/alloc_traits.h:61:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<int> >'
61 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/9/ext/alloc_traits.h:62:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<int> >'
62 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/ext/alloc_traits.h:70:23: error: no members matching '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::_Base_type {aka std::allocator_traits<std::allocator<int> >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::_Base_type' {aka 'struct std::allocator_traits<std::allocator<int> >'}
70 | using _Base_type::max_size;
| ^~~~~~~~
/usr/include/c++/9/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >':
/usr/include/c++/9/bits/stl_vector.h:84:21: required from 'struct std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char> > >'
/usr/include/c++/9/bits/stl_vector.h:386:11: required from 'class std::vector<std::__cxx11::basic_string<char> >'
foo.cc:22:22: required from here
/usr/include/c++/9/ext/alloc_traits.h:61:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<std::__cxx11::basic_string<char> > >'
61 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/9/ext/alloc_traits.h:62:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<std::__cxx11::basic_string<char> > >'
62 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/ext/alloc_traits.h:70:23: error: no members matching '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::_Base_type {aka std::allocator_traits<std::allocator<std::__cxx11::basic_string<char> > >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::_Base_type' {aka 'struct std::allocator_traits<std::allocator<std::__cxx11::basic_string<char> > >'}
70 | using _Base_type::max_size;
| ^~~~~~~~
foo.cc: At global scope:
foo.cc:30:5: error: redefinition of 'int main()'
30 | int main()
| ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
3 | int main()
| ^~~~
foo.cc: In function 'int main()':
foo.cc:32:9: error: 'cin' was not declared in this scope
32 | int n; cin >> n;
| ^~~
foo.cc:10:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
9 | #include<string>
+++ |+#include <iostream>
10 | using namespace std;
foo.cc:44:3: error: 'cout' was not declared in this scope
44 | cout << name[i] << " " << id[i] << endl;
| ^~~~
foo.cc:44:3: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:44:38: error: 'endl' was not declared in this scope
44 | cout << name[i] << " " << id[i] << endl;
| ^~~~
foo.cc:10:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
9 | #include<string>
+++ |+#include <ostream>
10 | using namespace std;
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h: In instantiation of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
foo.cc:23:25: required from here
/usr/include/c++/9/bits/basic_string.h:681:18: error: using invalid field 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::<unnamed union>::_M_allocated_capacity'
681 | _M_destroy(_M_allocated_capacity);
| ^~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/basic_string.h:691:18: error: using invalid field 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::<unnamed union>::_M_allocated_capacity'
691 | _M_destroy(_M_allocated_capacity);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/vector:60,
from foo.cc:7:
/usr/include/c++/9/bits/stl_iterator.h: In instantiation of 'class __gnu_cxx::__normal_iterator<int*, std::vector<int> >':
/usr/include/c++/9/bits/stl_vector.h:1195:4: required from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]'
foo.cc:39:17: required from here
/usr/include/c++/9/bits/stl_iterator.h:795:56: error: no type named 'difference_type' in 'struct std::iterator_traits<int*>'
795 | typedef typename __traits_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_iterator.h: In instantiation of 'class __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >':
/usr/include/c++/9/bits/stl_vector.h:1195:4: required from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::vector<_Tp, _Alloc>::value_type = std::__cxx11::basic_string<char>]'
foo.cc:40:19: required from here
/usr/include/c++/9/bits/stl_iterator.h:795:56: error: no type named 'difference_type' in 'struct std::iterator_traits<std::__cxx11::basic_string<char>*>'
In file included from /usr/include/c++/9/string:55,
from foo.cc:9:
/usr/include/c++/9/bits/basic_string.h: In instantiation of 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_dispose() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
/usr/include/c++/9/bits/basic_string.h:662:9: required from 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
foo.cc:22:22: required from here
/usr/include/c++/9/bits/basic_string.h:236:15: error: using invalid field 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::<unnamed union>::_M_allocated_capacity'
236 | _M_destroy(_M_allocated_capacity);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h:33,
from /usr/include/c++/9/bits/allocator.h:46,
from /usr/include/c++/9/vector:64,
from foo.cc:7:
/usr/include/c++/9/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++/9/bits/alloc_traits.h:483: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++/9/bits/stl_vector.h:1189:30: required from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]'
foo.cc:39:17: required from here
/usr/include/c++/9/ext/new_allocator.h:146:4: error: no matching function for call to 'operator new(sizetype, void*)'
146 | { ::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++/9/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::__cxx11::basic_string<char>; _Args = {const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; _Tp = std::__cxx11::basic_string<char>]':
/usr/include/c++/9/bits/alloc_traits.h:483:4: required from 'static void std::allocator_traits<std::allocator<_Tp1> >::construct(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::__cxx11::basic_string<char>; _Args = {const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; _Tp = std::__cxx11::basic_string<char>; std::allocator_traits<std::allocator<_Tp1> >::allocator_type = std::allocator<std::__cxx11::basic_string<char> >]'
/usr/include/c++/9/bits/stl_vector.h:1189:30: required from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::vector<_Tp, _Alloc>::value_type = std::__cxx11::basic_string<char>]'
foo.cc:40:19: required from here
/usr/include/c++/9/ext/new_allocator.h:146: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