foo.cc:1:1: error: stray '##' in program
1 | ##include <iostream>
| ^~
foo.cc:1:3: error: 'include' does not name a type
1 | ##include <iostream>
| ^~~~~~~
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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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/utility:70,
from /usr/include/c++/9/algorithm:60,
from foo.cc:3:
/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/algorithm:60,
from foo.cc:3:
/usr/include/c++/9/utility:109:17: error: 'std::size_t' has not been declared
109 | template<std::size_t __i, typename _Tp>
| ^~~~~~
/usr/include/c++/9/utility:110:12: error: no default argument for '_Tp'
110 | struct tuple_element;
| ^~~~~~~~~~~~~
/usr/include/c++/9/utility:113:17: error: 'std::size_t' has not been declared
113 | template<std::size_t __i, typename _Tp>
| ^~~~~~
/usr/include/c++/9/utility:114:54: error: '__i' was not declared in this scope
114 | using __tuple_element_t = typename tuple_element<__i, _Tp>::type;
| ^~~
/usr/include/c++/9/utility:114:62: error: template argument 1 is invalid
114 | using __tuple_element_t = typename tuple_element<__i, _Tp>::type;
| ^
/usr/include/c++/9/utility:116:17: error: 'std::size_t' has not been declared
116 | template<std::size_t __i, typename _Tp>
| ^~~~~~
/usr/include/c++/9/utility:117:26: error: '__i' was not declared in this scope
117 | struct tuple_element<__i, const _Tp>
| ^~~
/usr/include/c++/9/utility:117:40: error: template argument 1 is invalid
117 | struct tuple_element<__i, const _Tp>
| ^
/usr/include/c++/9/utility:122:17: error: 'std::size_t' has not been declared
122 | template<std::size_t __i, typename _Tp>
| ^~~~~~
/usr/include/c++/9/utility:123:26: error: '__i' was not declared in this scope
123 | struct tuple_element<__i, volatile _Tp>
| ^~~
/usr/include/c++/9/utility:123:43: error: template argument 1 is invalid
123 | struct tuple_element<__i, volatile _Tp>
| ^
/usr/include/c++/9/utility:128:17: error: 'std::size_t' has not been declared
128 | template<std::size_t __i, typename _Tp>
| ^~~~~~
/usr/include/c++/9/utility:129:26: error: '__i' was not declared in this scope
129 | struct tuple_element<__i, const volatile _Tp>
| ^~~
/usr/include/c++/9/utility:129:49: error: template argument 1 is invalid
129 | struct tuple_element<__i, const volatile _Tp>
| ^
/usr/include/c++/9/utility:154:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
154 | : public integral_constant<std::size_t, 2> { };
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/algorithm:60,
from foo.cc:3:
/usr/include/c++/9/utility:154:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
154 | : public integral_constant<std::size_t, 2> { };
| ^~~~~~
In file included from /usr/include/stdio.h:33,
from /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/algorithm:60,
from foo.cc:3:
/usr/include/c++/9/utility:154:46: error: template argument 1 is invalid
154 | : public integral_constant<std::size_t, 2> { };
| ^
/usr/include/c++/9/utility:154:46: note: invalid template non-type parameter
/usr/include/c++/9/utility:166:17: error: 'std::size_t' has not been declared
166 | template<std::size_t _Int>
| ^~~~~~
/usr/include/c++/9/utility:217:17: error: 'std::size_t' has not been declared
217 | template<std::size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/usr/include/c++/9/utility:218:38: error: '_Int' was not declared in this scope
218 | constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
| ^~~~
/usr/include/c++/9/utility:218:64: error: template argument 1 is invalid
218 | constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
| ^~
/usr/include/c++/9/utility: In function 'constexpr int& std::get(std::pair<_Tp1, _Tp2>&)':
/usr/include/c++/9/utility:220:25: error: '_Int' was not declared in this scope
220 | { return __pair_get<_Int>::__get(__in); }
| ^~~~
/usr/include/c++/9/utility:220:29: error: template argument 1 is invalid
220 | { return __pair_get<_Int>::__get(__in); }
| ^
/usr/include/c++/9/utility: At global scope:
/usr/include/c++/9/utility:222:17: error: 'std::size_t' has not been declared
222 | template<std::size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/usr/include/c++/9/utility:223:38: error: '_Int' was not declared in this scope
223 | constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
| ^~~~
/usr/include/c++/9/utility:223:64: error: template argument 1 is invalid
223 | constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
| ^~
/usr/include/c++/9/utility: In function 'constexpr int&& std::get(std::pair<_Tp1, _Tp2>&&)':
/usr/include/c++/9/utility:225:25: error: '_Int' was not declared in this scope
225 | { return __pair_get<_Int>::__move_get(std::move(__in)); }
| ^~~~
/usr/include/c++/9/utility:225:29: error: template argument 1 is invalid
225 | { return __pair_get<_Int>::__move_get(std::move(__in)); }
| ^
/usr/include/c++/9/utility: At global scope:
/usr/include/c++/9/utility:227:17: error: 'std::size_t' has not been declared
227 | template<std::size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/usr/include/c++/9/utility:228:44: error: '_Int' was not declared in this scope
228 | constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
| ^~~~
/usr/include/c++/9/utility:228:70: error: template argument 1 is invalid
228 | constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
| ^~
/usr/include/c++/9/utility: In function 'constexpr const int& std::get(const std::pair<_Tp1, _Tp2>&)':
/usr/include/c++/9/utility:230:25: error: '_Int' was not declared in this scope
230 | { return __pair_get<_Int>::__const_get(__in); }
| ^~~~
/usr/include/c++/9/utility:230:29: error: template argument 1 is invalid
230 | { return __pair_get<_Int>::__const_get(__in); }
| ^
/usr/include/c++/9/utility: At global scope:
/usr/include/c++/9/utility:232:17: error: 'std::size_t' has not been declared
232 | template<std::size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/usr/include/c++/9/utility:233:44: error: '_Int' was not declared in this scope
233 | constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
| ^~~~
/usr/include/c++/9/utility:233:70: error: template argument 1 is invalid
233 | constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
| ^~
/usr/include/c++/9/utility: In function 'constexpr const int&& std::get(const std::pair<_Tp1, _Tp2>&&)':
/usr/include/c++/9/utility:235:25: error: '_Int' was not declared in this scope
235 | { return __pair_get<_Int>::__const_move_get(std::move(__in)); }
| ^~~~
/usr/include/c++/9/utility:235:29: error: template argument 1 is invalid
235 | { return __pair_get<_Int>::__const_move_get(std::move(__in)); }
| ^
/usr/include/c++/9/utility: At global scope:
/usr/include/c++/9/utility:310:58: note: invalid template non-type parameter
310 | using __type = _Index_tuple<__integer_pack(_Num)...>;
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:62,
from /usr/include/c++/9/algorithm:61,
from foo.cc:3:
/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/stl_algobase.h:65,
from /usr/include/c++/9/algorithm:61,
from foo.cc:3:
/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/algorithm:61,
from foo.cc:3:
/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/algorithm:61,
from foo.cc:3:
/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/algorithm:61,
from foo.cc:3:
/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/algorithm:61,
from foo.cc:3:
/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/algorithm:61,
from foo.cc:3:
/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/bits/stl_construct.h:59,
from /usr/include/c++/9/bits/stl_tempbuf.h:60,
from /usr/include/c++/9/bits/stl_algo.h:62,
from /usr/include/c++/9/algorithm:62,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/stl_construct.h:59,
from /usr/include/c++/9/bits/stl_tempbuf.h:60,
from /usr/include/c++/9/bits/stl_algo.h:62,
from /usr/include/c++/9/algorithm:62,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/stl_construct.h:59,
from /usr/include/c++/9/bits/stl_tempbuf.h:60,
from /usr/include/c++/9/bits/stl_algo.h:62,
from /usr/include/c++/9/algorithm:62,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/stl_construct.h:59,
from /usr/include/c++/9/bits/stl_tempbuf.h:60,
from /usr/include/c++/9/bits/stl_algo.h:62,
from /usr/include/c++/9/algorithm:62,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/stl_construct.h:59,
from /usr/include/c++/9/bits/stl_tempbuf.h:60,
from /usr/include/c++/9/bits/stl_algo.h:62,
from /usr/include/c++/9/algorithm:62,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/stl_construct.h:59,
from /usr/include/c++/9/bits/stl_tempbuf.h:60,
from /usr/include/c++/9/bits/stl_algo.h:62,
from /usr/include/c++/9/algorithm:62,
from foo.cc:3:
/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 /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/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/stl_construct.h:59,
from /usr/include/c++/9/bits/stl_tempbuf.h:60,
from /usr/include/c++/9/bits/stl_algo.h:62,
from /usr/include/c++/9/algorithm:62,
from foo.cc:3:
/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/c++/9/ext/alloc_traits.h:36,
from /usr/include/c++/9/bits/stl_construct.h:61,
from /usr/include/c++/9/bits/stl_tempbuf.h:60,
from /usr/include/c++/9/bits/stl_algo.h:62,
from /usr/include/c++/9/algorithm:62,
from foo.cc:3:
/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/bits/stl_algo.h:62,
from /usr/include/c++/9/algorithm:62,
from foo.cc:3:
/usr/include/c++/9/bits/stl_tempbuf.h: In function 'std::pair<_Tp*, long int> std::get_temporary_buffer(ptrdiff_t)':
/usr/include/c++/9/bits/stl_tempbuf.h:95:20: error: too many arguments to function 'void* operator new(long unsigned int)'
95 | std::nothrow));
| ^
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/deque:64,
from /usr/include/c++/9/queue:60,
from foo.cc:5:
/usr/include/c++/9/ext/new_allocator.h: At global scope:
/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/vector:68,
from /usr/include/c++/9/queue:61,
from foo.cc:5:
/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/algorithm:61,
from foo.cc:3:
/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/bits/stl_tree.h:69,
from /usr/include/c++/9/set:60,
from foo.cc:6:
/usr/include/c++/9/ext/aligned_buffer.h: At global scope:
/usr/include/c++/9/ext/aligned_buffer.h:61:42: error: invalid use of '::'
61 | __aligned_membuf(std::nullptr_t) { }
| ^
/usr/include/c++/9/ext/aligned_buffer.h:61:42: error: expected ';' at end of member declaration
61 | __aligned_membuf(std::nullptr_t) { }
| ^
| ;
/usr/include/c++/9/ext/aligned_buffer.h:99:42: error: invalid use of '::'
99 | __aligned_buffer(std::nullptr_t) { }
| ^
/usr/include/c++/9/ext/aligned_buffer.h:99:42: error: expected ';' at end of member declaration
99 | __aligned_buffer(std::nullptr_t) { }
| ^
| ;
foo.cc:11:1: error: 'string' does not name a type; did you mean 'stdin'?
11 | string s;
| ^~~~~~
| stdin
In file included from /usr/include/c++/9/bits/stl_construct.h:61,
from /usr/include/c++/9/bits/stl_tempbuf.h:60,
from /usr/include/c++/9/bits/stl_algo.h:62,
from /usr/include/c++/9/algorithm:62,
from foo.cc:3:
/usr/include/c++/9/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<node>, node>':
/usr/include/c++/9/bits/stl_deque.h:483:21: required from 'class std::_Deque_base<node, std::allocator<node> >'
/usr/include/c++/9/bits/stl_deque.h:849:11: required from 'class std::deque<node, std::allocator<node> >'
/usr/include/c++/9/bits/stl_queue.h:132:47: required from 'class std::queue<node>'
foo.cc:14:13: 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<node> >'
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<node> >'
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<node>, node>::_Base_type {aka std::allocator_traits<std::allocator<node> >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<node>, node>::_Base_type' {aka 'struct std::allocator_traits<std::allocator<node> >'}
70 | using _Base_type::max_size;
| ^~~~~~~~
foo.cc:15:5: error: 'string' was not declared in this scope
15 | set<string> vis;
| ^~~~~~
foo.cc:7:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
6 | #include <set>
+++ |+#include <string>
7 | using namespace std;
foo.cc:15:11: error: template argument 1 is invalid
15 | set<string> vis;
| ^
foo.cc:15:11: error: template argument 2 is invalid
foo.cc:15:11: error: template argument 3 is invalid
foo.cc:16:1: error: 'string' does not name a type; did you mean 'stdin'?
16 | string start,to;
| ^~~~~~
| stdin
foo.cc:17:1: error: 'string' does not name a type; did you mean 'stdin'?
17 | string a[15];
| ^~~~~~
| stdin
foo.cc:18:1: error: 'string' does not name a type; did you mean 'stdin'?
18 | string b[15];
| ^~~~~~
| stdin
foo.cc: In function 'void init()':
foo.cc:23:1: error: 'cin' was not declared in this scope
23 | cin>>start>>to;
| ^~~
foo.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
6 | #include <set>
+++ |+#include <iostream>
7 | using namespace std;
foo.cc:23:6: error: 'start' was not declared in this scope
23 | cin>>start>>to;
| ^~~~~
foo.cc:23:13: error: 'to' was not declared in this scope
23 | cin>>start>>to;
| ^~
foo.cc:24:12: error: 'a' was not declared in this scope
24 | while(cin>>a[l]>>b[l])
| ^
foo.cc:24:18: error: 'b' was not declared in this scope
24 | while(cin>>a[l]>>b[l])
| ^
foo.cc:28:3: error: 'struct node' has no member named 's'
28 | t.s=start;
| ^
foo.cc: In function 'void bfs()':
foo.cc:40:6: error: 'struct node' has no member named 's'
40 | if(t.s==to)
| ^
foo.cc:40:9: error: 'to' was not declared in this scope; did you mean 't'?
40 | if(t.s==to)
| ^~
| t
foo.cc:42:1: error: 'cout' was not declared in this scope
42 | cout<<t.step<<endl;
| ^~~~
foo.cc:42:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:42:15: error: 'endl' was not declared in this scope
42 | cout<<t.step<<endl;
| ^~~~
foo.cc:7:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
6 | #include <set>
+++ |+#include <ostream>
7 | using namespace std;
foo.cc:45:9: error: request for member 'count' in 'vis', which is of non-class type 'int'
45 | if(!vis.count(t.s))
| ^~~~~
foo.cc:45:17: error: 'struct node' has no member named 's'
45 | if(!vis.count(t.s))
| ^
foo.cc:47:5: error: request for member 'insert' in 'vis', which is of non-class type 'int'
47 | vis.insert(t.s);
| ^~~~~~
foo.cc:47:14: error: 'struct node' has no member named 's'
47 | vis.insert(t.s);
| ^
foo.cc:49:6: error: 'struct node' has no member named 's'
49 | if(t.s.find(a[i])>=0)
| ^
foo.cc:49:13: error: 'a' was not declared in this scope
49 | if(t.s.find(a[i])>=0)
| ^
foo.cc:50:13: error: 'struct node' has no member named 's'
50 | for(int j=t.s.find(a[i]);j>=0&&j<=(t.s.length()-a[i].length());j=t.s.find(a[i],j+1))
| ^
foo.cc:50:38: error: 'struct node' has no member named 's'
50 | for(int j=t.s.find(a[i]);j>=0&&j<=(t.s.length()-a[i].length());j=t.s.find(a[i],j+1))
| ^
foo.cc:50:68: error: 'struct node' has no member named 's'
50 | for(int j=t.s.find(a[i]);j>=0&&j<=(t.s.length()-a[i].length());j=t.s.find(a[i],j+1))
| ^
foo.cc:54:3: error: 'struct node' has no member named 's'
54 | w.s.replace(j, a[i].size(), b[i]);
| ^
foo.cc:54:29: error: 'b' was not declared in this scope
54 | w.s.replace(j, a[i].size(), b[i]);
| ^
foo.cc:59:1: error: 'cout' was not declared in this scope
59 | cout<<"NO ANSWER!"<<endl;
| ^~~~
foo.cc:59:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:59:21: error: 'endl' was not declared in this scope
59 | cout<<"NO ANSWER!"<<endl;
| ^~~~
foo.cc:59:21: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
In file included from /usr/include/c++/9/bits/stl_construct.h:61,
from /usr/include/c++/9/bits/stl_tempbuf.h:60,
from /usr/include/c++/9/bits/stl_algo.h:62,
from /usr/include/c++/9/algorithm:62,
from foo.cc:3:
/usr/include/c++/9/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<node*>, node*>':
/usr/include/c++/9/bits/stl_deque.h:641:31: required from 'void std::_Deque_base<_Tp, _Alloc>::_M_deallocate_map(std::_Deque_base<_Tp, _Alloc>::_Map_pointer, size_t) [with _Tp = node; _Alloc = std::allocator<node>; std::_Deque_base<_Tp, _Alloc>::_Map_pointer = node**; size_t = long unsigned int]'
/usr/include/c++/9/bits/stl_deque.h:685:4: required from 'std::_Deque_base<_Tp, _Alloc>::~_Deque_base() [with _Tp = node; _Alloc = std::allocator<node>]'
/usr/include/c++/9/bits/stl_deque.h:915:23: required from 'std::deque<_Tp, _Alloc>::deque() [with _Tp = node; _Alloc = std::allocator<node>]'
/usr/include/c++/9/bits/stl_queue.h:161:6: required from 'std::queue<_Tp, _Sequence>::queue() [with _Seq = std::deque<node, std::allocator<node> >; _Requires = void; _Tp = node; _Sequence = std::deque<node, std::allocator<node> >]'
foo.cc:14:13: 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<node*> >'
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<node*> >'
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<node*>, node*>::_Base_type {aka std::allocator_traits<std::allocator<node*> >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<node*>, node*>::_Base_type' {aka 'struct std::allocator_traits<std::allocator<node*> >'}
70 | using _Base_type::max_size;
| ^~~~~~~~
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/deque:64,
from /usr/include/c++/9/queue:60,
from foo.cc:5:
/usr/include/c++/9/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = node; _Args = {const node&}; _Tp = node]':
/usr/include/c++/9/bits/alloc_traits.h:483:4: required from 'static void std::allocator_traits<std::allocator<_Tp> >::construct(std::allocator_traits<std::allocator<_Tp> >::allocator_type&, _Up*, _Args&& ...) [with _Up = node; _Args = {const node&}; _Tp = node; std::allocator_traits<std::allocator<_Tp> >::allocator_type = std::allocator<node>]'
/usr/include/c++/9/bits/stl_deque.h:1574:30: required from 'void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = node; _Alloc = std::allocator<node>; std::deque<_Tp, _Alloc>::value_type = node]'
/usr/include/c++/9/bits/stl_queue.h:260:9: required from 'void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = node; _Sequence = std::deque<node, std::allocator<node> >; std::queue<_Tp, _Sequence>::value_type = node]'
foo.cc:29:9: 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
In file included from /usr/include/c++/9/deque:67,
from /usr/include/c++/9/queue:60,
from foo.cc:5:
/usr/include/c++/9/bits/stl_deque.h: In instantiation of 'static std::deque<_Tp, _Alloc>::size_type std::deque<_Tp, _Alloc>::_S_max_size(const _Tp_alloc_type&) [with _Tp = node; _Alloc = std::allocator<node>; std::deque<_Tp, _Alloc>::size_type = long unsigned int; std::deque<_Tp, _Alloc>::_Tp_alloc_type = std::allocator<node>]':
/usr/include/c++/9/bits/stl_deque.h:1304:27: required from 'std::deque<_Tp, _Alloc>::size_type std::deque<_Tp, _Alloc>::max_size() const [with _Tp = node; _Alloc = std::allocator<node>; std::deque<_Tp, _Alloc>::size_type = long unsigned int]'
/usr/include/c++/9/bits/deque.tcc:487:16: required from 'void std::deque<_Tp, _Alloc>::_M_push_back_aux(_Args&& ...) [with _Args = {const node&}; _Tp = node; _Alloc = std::allocator<node>]'
/usr/include/c++/9/bits/stl_deque.h:1579:4: required from 'void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = node; _Alloc = std::allocator<node>; std::deque<_Tp, _Alloc>::value_type = node]'
/usr/include/c++/9/bits/stl_queue.h:260:9: required from 'void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = node; _Sequence = std::deque<node, std::allocator<node> >; std::queue<_Tp, _Sequence>::value_type = node]'
foo.cc:29:9: required from here
/usr/include/c++/9/bits/stl_deque.h:1899:51: error: 'max_size' is not a member of 'std::deque<node, std::allocator<node> >::_Alloc_traits' {aka '__gnu_cxx::__alloc_traits<std::allocator<node>, node>'}
1899 | const size_t __allocmax = _Alloc_traits::max_size(__a);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~