foo.cc:1:7: error: stray '\347' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:8: error: stray '\216' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:9: error: stray '\213' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:10: error: stray '\350' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:11: error: stray '\257' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:12: error: stray '\272' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:13: error: stray '\346' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:14: error: stray '\200' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:15: error: stray '\241' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:23: error: stray '\347' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:24: error: stray '\216' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:25: error: stray '\213' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:26: error: stray '\350' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:27: error: stray '\257' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:28: error: stray '\272' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:29: error: stray '\346' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:30: error: stray '\200' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:31: error: stray '\241' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:39: error: stray '@' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:43: error: stray '\344' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:44: error: stray '\270' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:45: error: stray '\252' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:46: error: stray '\346' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:47: error: stray '\234' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:48: error: stray '\210' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:49: error: stray '\345' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:50: error: stray '\211' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:51: error: stray '\215' in program
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^
foo.cc:1:2: error: expected unqualified-id before numeric constant
1 | 12312王诺怡 (12312王诺怡) LV 8 @ 1 个月前
| ^~~~~
In file included from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
from foo.cc:2:
/usr/include/c++/9/bits/postypes.h:98:11: error: 'ptrdiff_t' does not name a type
98 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/9/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/9/bits/stl_algobase.h:62,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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:1253:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1253 | : public integral_constant<std::size_t, alignof(_Tp)> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/type_traits:1253:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1253 | : public integral_constant<std::size_t, alignof(_Tp)> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/type_traits:1253:57: error: template argument 1 is invalid
1253 | : public integral_constant<std::size_t, alignof(_Tp)> { };
| ^
/usr/include/c++/9/type_traits:1253:57: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1258:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1258 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/type_traits:1258:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1258 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/type_traits:1258:46: error: template argument 1 is invalid
1258 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/9/type_traits:1258:46: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1260:31: error: 'std::size_t' has not been declared
1260 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/usr/include/c++/9/type_traits:1261:21: error: '_Size' was not declared in this scope
1261 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/9/type_traits:1261:27: error: template argument 1 is invalid
1261 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/9/type_traits:1262:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1262 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/type_traits:1262:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1262 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/type_traits:1262:65: error: template argument 1 is invalid
1262 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/9/type_traits:1262:65: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1266:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1266 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/type_traits:1266:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1266 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/type_traits:1266:65: error: template argument 1 is invalid
1266 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/9/type_traits:1266:65: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1271:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1271 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/type_traits:1271:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1271 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/type_traits:1271:46: error: template argument 1 is invalid
1271 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/9/type_traits:1271:46: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1273:47: error: 'std::size_t' has not been declared
1273 | template<typename _Tp, unsigned _Uint, std::size_t _Size>
| ^~~~~~
/usr/include/c++/9/type_traits:1274:23: error: '_Size' was not declared in this scope
1274 | struct extent<_Tp[_Size], _Uint>
| ^~~~~
/usr/include/c++/9/type_traits:1274:36: error: template argument 1 is invalid
1274 | struct extent<_Tp[_Size], _Uint>
| ^
/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/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/type_traits:1276:24: error: '_Size' was not declared in this scope
1276 | _Uint == 0 ? _Size : extent<_Tp,
| ^~~~~
/usr/include/c++/9/type_traits:1277:28: error: template argument 1 is invalid
1277 | _Uint - 1>::value>
| ^
/usr/include/c++/9/type_traits:1277:28: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1282:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1282 | : public integral_constant<std::size_t,
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/type_traits:1282:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1282 | : public integral_constant<std::size_t,
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/type_traits:1284:31: error: template argument 1 is invalid
1284 | _Uint - 1>::value>
| ^
/usr/include/c++/9/type_traits:1284:31: note: invalid template non-type parameter
/usr/include/c++/9/type_traits:1839:31: error: 'std::size_t' has not been declared
1839 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/usr/include/c++/9/type_traits:1840:30: error: '_Size' was not declared in this scope
1840 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/9/type_traits:1840:36: error: template argument 1 is invalid
1840 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/9/type_traits:1852:31: error: 'std::size_t' has not been declared
1852 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/usr/include/c++/9/type_traits:1853:35: error: '_Size' was not declared in this scope
1853 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/9/type_traits:1853:41: error: template argument 1 is invalid
1853 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/9/type_traits:1911:17: error: 'std::size_t' has not been declared
1911 | template<std::size_t _Len>
| ^~~~~~
/usr/include/c++/9/type_traits:1916:23: error: '_Len' was not declared in this scope
1916 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/9/type_traits:1931:17: error: 'std::size_t' has not been declared
1931 | template<std::size_t _Len, std::size_t _Align =
| ^~~~~~
/usr/include/c++/9/type_traits:1931:35: error: 'std::size_t' has not been declared
1931 | template<std::size_t _Len, std::size_t _Align =
| ^~~~~~
/usr/include/c++/9/type_traits:1932:48: error: '_Len' was not declared in this scope
1932 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/9/type_traits:1932:52: error: template argument 1 is invalid
1932 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/9/type_traits:1937:23: error: '_Len' was not declared in this scope
1937 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/9/type_traits:1938:37: error: '_Align' was not declared in this scope
1938 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/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/string:41,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/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/string:41,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/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/string:41,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/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/string:41,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/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/string:41,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/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/string:41,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/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/string:41,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/string:41,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/string:44,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/ostream_insert.h:45:26: error: 'streamsize' has not been declared
45 | const _CharT* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/9/bits/ostream_insert.h: In function 'void std::__ostream_write(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)':
/usr/include/c++/9/bits/ostream_insert.h:50:13: error: 'streamsize' does not name a type
50 | const streamsize __put = __out.rdbuf()->sputn(__s, __n);
| ^~~~~~~~~~
/usr/include/c++/9/bits/ostream_insert.h:51:11: error: '__put' was not declared in this scope; did you mean '__out'?
51 | if (__put != __n)
| ^~~~~
| __out
/usr/include/c++/9/bits/ostream_insert.h: At global scope:
/usr/include/c++/9/bits/ostream_insert.h:57:59: error: 'streamsize' has not been declared
57 | __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/9/bits/ostream_insert.h:77:27: error: 'streamsize' has not been declared
77 | const _CharT* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/9/bits/ostream_insert.h: In function 'std::basic_ostream<_CharT, _Traits>& std::__ostream_insert(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)':
/usr/include/c++/9/bits/ostream_insert.h:87:14: error: 'streamsize' does not name a type
87 | const streamsize __w = __out.width();
| ^~~~~~~~~~
/usr/include/c++/9/bits/ostream_insert.h:88:12: error: '__w' was not declared in this scope; did you mean '__s'?
88 | if (__w > __n)
| ^~~
| __s
/usr/include/c++/9/bits/ostream_insert.h: At global scope:
/usr/include/c++/9/bits/ostream_insert.h:118:68: error: 'streamsize' has not been declared
118 | extern template ostream& __ostream_insert(ostream&, const char*, streamsize);
| ^~~~~~~~~~
/usr/include/c++/9/bits/ostream_insert.h:122:11: error: 'streamsize' has not been declared
122 | streamsize);
| ^~~~~~~~~~
In file included from /usr/include/c++/9/ext/alloc_traits.h:36,
from /usr/include/c++/9/bits/basic_string.h:40,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/alloc_traits.h:412:36: error: 'ptrdiff_t' in namespace 'std' does not name a type
412 | using difference_type = std::ptrdiff_t;
| ^~~~~~~~~
/usr/include/c++/9/bits/alloc_traits.h:415:30: error: 'size_t' in namespace 'std' does not name a type
415 | using size_type = std::size_t;
| ^~~~~~
/usr/include/c++/9/bits/alloc_traits.h:443:37: error: 'size_type' has not been declared
443 | allocate(allocator_type& __a, size_type __n)
| ^~~~~~~~~
/usr/include/c++/9/bits/alloc_traits.h:457:37: error: 'size_type' has not been declared
457 | allocate(allocator_type& __a, size_type __n, const_void_pointer __hint)
| ^~~~~~~~~
/usr/include/c++/9/bits/alloc_traits.h:469:52: error: 'size_type' has not been declared
469 | deallocate(allocator_type& __a, pointer __p, size_type __n)
| ^~~~~~~~~
/usr/include/c++/9/bits/alloc_traits.h:504:14: error: 'size_type' does not name a type; did you mean 'true_type'?
504 | static size_type
| ^~~~~~~~~
| true_type
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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/basic_string.h:40,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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:80:24: required from 'class std::__cxx11::basic_string<char>'
/usr/include/c++/9/bits/basic_string.h:6504: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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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:6505: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&)'
6505 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6505:6: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6505 | __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:6510:22: error: no matching function for call to '__stoa(long int (*)(const char*, char**, int) throw (), const char [5], const char*, size_t*&, int&)'
6510 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6510:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6510 | __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:6515: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&)'
6515 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6515:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6515 | __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:6520: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&)'
6520 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6520:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6520 | __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:6525: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&)'
6525 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6525:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6525 | __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:6530:72: error: no matching function for call to '__stoa(float (*)(const char*, char**) throw (), const char [5], const char*, size_t*&)'
6530 | { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6530:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6530 | { 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:6534:72: error: no matching function for call to '__stoa(double (*)(const char*, char**) throw (), const char [5], const char*, size_t*&)'
6534 | { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6534:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6534 | { 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:6538:74: error: no matching function for call to '__stoa(long double (*)(const char*, char**) throw (), const char [6], const char*, size_t*&)'
6538 | { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6538:69: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6538 | { 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:6548: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&)'
6548 | "%d", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6548:20: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6548 | "%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:6554: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&)'
6554 | "%u", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6554:20: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6554 | "%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:6559: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&)'
6559 | "%ld", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6559:21: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6559 | "%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:6565: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&)'
6565 | "%lu", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6565:21: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6565 | "%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:6571: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&)'
6571 | "%lld", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6571:22: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6571 | "%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:6577: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&)'
6577 | "%llu", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6577:22: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6577 | "%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:6585: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&)'
6585 | "%f", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6585:20: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6585 | "%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:6594: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&)'
6594 | "%f", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6594:20: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6594 | "%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:6603: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&)'
6603 | "%Lf", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6603:21: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6603 | "%Lf", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:40,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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:80:24: required from 'class std::__cxx11::basic_string<wchar_t>'
/usr/include/c++/9/bits/basic_string.h:6610: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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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:6611: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&)'
6611 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6611:6: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6611 | __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:6616: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&)'
6616 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6616:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6616 | __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:6621: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&)'
6621 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6621:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6621 | __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:6626: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&)'
6626 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6626:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6626 | __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:6631: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&)'
6631 | __idx, __base); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6631:9: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6631 | __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:6636:72: error: no matching function for call to '__stoa(float (*)(const wchar_t*, wchar_t**) throw (), const char [5], const wchar_t*, size_t*&)'
6636 | { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6636:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6636 | { 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:6640:72: error: no matching function for call to '__stoa(double (*)(const wchar_t*, wchar_t**) throw (), const char [5], const wchar_t*, size_t*&)'
6640 | { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6640:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6640 | { 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:6644: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*&)'
6644 | { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6644:69: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6644 | { 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:6651: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&)'
6651 | L"%d", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6651:22: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6651 | 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:6657: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&)'
6657 | L"%u", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6657:22: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6657 | 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:6662: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&)'
6662 | L"%ld", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6662:23: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6662 | 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:6668: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&)'
6668 | L"%lu", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6668:23: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6668 | 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:6674: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&)'
6674 | L"%lld", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6674:24: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6674 | 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:6680: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&)'
6680 | L"%llu", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6680:24: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6680 | 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:6688: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&)'
6688 | L"%f", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6688:22: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6688 | 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:6697: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&)'
6697 | L"%f", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6697:22: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6697 | 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:6706: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&)'
6706 | L"%Lf", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h:6706:23: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6706 | L"%Lf", __val);
| ^
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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:6735:54: error: 'const string' {aka 'const class std::__cxx11::basic_string<char>'} has no member named 'length'
6735 | { 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:6751:42: error: 'const wstring' {aka 'const class std::__cxx11::basic_string<wchar_t>'} has no member named 'length'
6751 | __s.length() * sizeof(wchar_t)); }
| ^~~~~~
In file included from /usr/include/c++/9/bits/basic_string.h:40,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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:80:24: required from 'class std::__cxx11::basic_string<char16_t>'
/usr/include/c++/9/bits/basic_string.h:6784: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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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:6785:42: error: 'const u16string' {aka 'const class std::__cxx11::basic_string<char16_t>'} has no member named 'length'
6785 | __s.length() * sizeof(char16_t)); }
| ^~~~~~
In file included from /usr/include/c++/9/bits/basic_string.h:40,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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:80:24: required from 'class std::__cxx11::basic_string<char32_t>'
/usr/include/c++/9/bits/basic_string.h:6799: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 /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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:6800:42: error: 'const u32string' {aka 'const class std::__cxx11::basic_string<char32_t>'} has no member named 'length'
6800 | __s.length() * sizeof(char32_t)); }
| ^~~~~~
In file included from /usr/include/c++/9/string:56,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.tcc: In function 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)':
/usr/include/c++/9/bits/basic_string.tcc:1488:14: error: 'streamsize' does not name a type
1488 | const streamsize __w = __in.width();
| ^~~~~~~~~~
/usr/include/c++/9/bits/basic_string.tcc:1489:32: error: '__w' was not declared in this scope; did you mean '__n'?
1489 | const __size_type __n = __w > 0 ? static_cast<__size_type>(__w)
| ^~~
| __n
In file included from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/ios_base.h: At global scope:
/usr/include/c++/9/bits/ios_base.h:522:5: error: 'streamsize' does not name a type
522 | streamsize _M_precision;
| ^~~~~~~~~~
/usr/include/c++/9/bits/ios_base.h:523:5: error: 'streamsize' does not name a type
523 | streamsize _M_width;
| ^~~~~~~~~~
/usr/include/c++/9/bits/ios_base.h:695:5: error: 'streamsize' does not name a type
695 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/bits/ios_base.h:704:5: error: 'streamsize' does not name a type
704 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/bits/ios_base.h:718:5: error: 'streamsize' does not name a type
718 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/bits/ios_base.h:727:5: error: 'streamsize' does not name a type
727 | streamsize
| ^~~~~~~~~~
In file included from /usr/include/c++/9/bits/locale_facets.h:44,
from /usr/include/c++/9/locale:40,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/streambuf:52:5: error: 'streamsize' does not name a type
52 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/streambuf:149:14: error: 'streamsize' does not name a type
149 | friend streamsize
| ^~~~~~~~~~
/usr/include/c++/9/streambuf:246:33: error: 'streamsize' has not been declared
246 | pubsetbuf(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/9/streambuf:290:7: error: 'streamsize' does not name a type
290 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/streambuf:363:7: error: 'streamsize' does not name a type
363 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/streambuf:456:7: error: 'streamsize' does not name a type
456 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/streambuf:598:26: error: 'streamsize' has not been declared
598 | setbuf(char_type*, streamsize)
| ^~~~~~~~~~
/usr/include/c++/9/streambuf:655:15: error: 'streamsize' does not name a type
655 | virtual streamsize
| ^~~~~~~~~~
/usr/include/c++/9/streambuf:671:15: error: 'streamsize' does not name a type
671 | virtual streamsize
| ^~~~~~~~~~
/usr/include/c++/9/streambuf:748:15: error: 'streamsize' does not name a type
748 | virtual streamsize
| ^~~~~~~~~~
/usr/include/c++/9/streambuf:804:20: error: 'streamsize' has not been declared
804 | __safe_gbump(streamsize __n) { _M_in_cur += __n; }
| ^~~~~~~~~~
/usr/include/c++/9/streambuf:807:20: error: 'streamsize' has not been declared
807 | __safe_pbump(streamsize __n) { _M_out_cur += __n; }
| ^~~~~~~~~~
/usr/include/c++/9/streambuf:847:5: error: 'streamsize' does not name a type
847 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/streambuf:852:5: error: 'streamsize' does not name a type
852 | streamsize
| ^~~~~~~~~~
In file included from /usr/include/c++/9/streambuf:862,
from /usr/include/c++/9/bits/locale_facets.h:44,
from /usr/include/c++/9/locale:40,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/bits/streambuf.tcc:44:5: error: 'streamsize' does not name a type
44 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf.tcc:78:5: error: 'streamsize' does not name a type
78 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf.tcc:115:5: error: 'streamsize' does not name a type
115 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf.tcc:138:12: error: 'streamsize' does not name a type
138 | inline streamsize
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf.tcc:151:5: error: 'streamsize' is not a template function
151 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf.tcc:151:15: error: expected ';' before '__copy_streambufs'
151 | streamsize
| ^
| ;
152 | __copy_streambufs(basic_streambuf<char>*,
| ~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/streambuf.tcc:155:5: error: 'streamsize' is not a template function
155 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf.tcc:155:15: error: expected ';' before '__copy_streambufs_eof'
155 | streamsize
| ^
| ;
156 | __copy_streambufs_eof(basic_streambuf<char>*,
| ~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/streambuf.tcc:162:5: error: 'streamsize' is not a template function
162 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf.tcc:162:15: error: expected ';' before '__copy_streambufs'
162 | streamsize
| ^
| ;
163 | __copy_streambufs(basic_streambuf<wchar_t>*,
| ~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/streambuf.tcc:166:5: error: 'streamsize' is not a template function
166 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf.tcc:166:15: error: expected ';' before '__copy_streambufs_eof'
166 | streamsize
| ^
| ;
167 | __copy_streambufs_eof(basic_streambuf<wchar_t>*,
| ~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/9/bits/locale_facets.h:48,
from /usr/include/c++/9/locale:40,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/bits/streambuf_iterator.h:283:34: error: 'streamsize' has not been declared
283 | _M_put(const _CharT* __ws, streamsize __len)
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_move_a2(_CharT*, _CharT*, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> >)':
/usr/include/c++/9/bits/streambuf_iterator.h:317:13: error: 'streamsize' does not name a type
317 | const streamsize __num = __last - __first;
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf_iterator.h:318:11: error: '__num' was not declared in this scope
318 | if (__num > 0)
| ^~~~~
/usr/include/c++/9/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_move_a2(const _CharT*, const _CharT*, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> >)':
/usr/include/c++/9/bits/streambuf_iterator.h:329:13: error: 'streamsize' does not name a type
329 | const streamsize __num = __last - __first;
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf_iterator.h:330:11: error: '__num' was not declared in this scope
330 | if (__num > 0)
| ^~~~~
/usr/include/c++/9/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, _CharT*>::__type std::__copy_move_a2(std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, _CharT*)':
/usr/include/c++/9/bits/streambuf_iterator.h:352:14: error: 'streamsize' does not name a type
352 | const streamsize __n = __sb->egptr() - __sb->gptr();
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf_iterator.h:353:12: error: '__n' was not declared in this scope; did you mean '__c'?
353 | if (__n > 1)
| ^~~
| __c
/usr/include/c++/9/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)':
/usr/include/c++/9/bits/streambuf_iterator.h:390:8: error: 'streamsize' was not declared in this scope
390 | streamsize __n = __sb->egptr() - __sb->gptr();
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf_iterator.h:391:12: error: '__n' was not declared in this scope; did you mean '__c'?
391 | if (__n > 1)
| ^~~
| __c
/usr/include/c++/9/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, void>::__type std::advance(std::istreambuf_iterator<_CharT>&, _Distance)':
/usr/include/c++/9/bits/streambuf_iterator.h:432:4: error: 'streamsize' was not declared in this scope
432 | streamsize __size = __sb->egptr() - __sb->gptr();
| ^~~~~~~~~~
/usr/include/c++/9/bits/streambuf_iterator.h:433:8: error: '__size' was not declared in this scope; did you mean 'dysize'?
433 | if (__size > __n)
| ^~~~~~
| dysize
/usr/include/c++/9/bits/streambuf_iterator.h:439:23: error: '__size' was not declared in this scope; did you mean 'dysize'?
439 | __sb->__safe_gbump(__size);
| ^~~~~~
| dysize
In file included from /usr/include/c++/9/locale:40,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/bits/locale_facets.h: At global scope:
/usr/include/c++/9/bits/locale_facets.h:99:29: error: 'streamsize' has not been declared
99 | const _CharT* __olds, streamsize __newlen, streamsize __oldlen);
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_facets.h:99:50: error: 'streamsize' has not been declared
99 | const _CharT* __olds, streamsize __newlen, streamsize __oldlen);
| ^~~~~~~~~~
In file included from /usr/include/c++/9/locale:40,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/bits/locale_facets.h:2488:32: error: 'streamsize' has not been declared
2488 | _M_pad(char_type __fill, streamsize __w, ios_base& __io,
| ^~~~~~~~~~
In file included from /usr/include/c++/9/bits/locale_facets.h:2655,
from /usr/include/c++/9/locale:40,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/bits/locale_facets.tcc: In member function 'void std::__numpunct_cache<_CharT>::_M_cache(const std::locale&)':
/usr/include/c++/9/bits/locale_facets.tcc:88:27: error: 'const string' {aka 'const class std::__cxx11::basic_string<char>'} has no member named 'size'
88 | _M_grouping_size = __g.size();
| ^~~~
/usr/include/c++/9/bits/locale_facets.tcc:90:8: error: 'const string' {aka 'const class std::__cxx11::basic_string<char>'} has no member named 'copy'
90 | __g.copy(__grouping, _M_grouping_size);
| ^~~~
/usr/include/c++/9/bits/locale_facets.tcc: In member function '_InIter std::num_get<_CharT, _InIter>::_M_extract_float(_InIter, _InIter, std::ios_base&, std::ios_base::iostate&, std::string&) const':
/usr/include/c++/9/bits/locale_facets.tcc:211:19: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reserve'
211 | __found_grouping.reserve(32);
| ^~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:296:28: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
296 | if (__found_grouping.size())
| ^~~~
/usr/include/c++/9/bits/locale_facets.tcc:319:28: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
319 | if (__found_grouping.size() && !__found_dec)
| ^~~~
/usr/include/c++/9/bits/locale_facets.tcc:355:28: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
355 | if (__found_grouping.size())
| ^~~~
/usr/include/c++/9/bits/locale_facets.tcc: In member function '_InIter std::num_get<_CharT, _InIter>::_M_extract_int(_InIter, _InIter, std::ios_base&, std::ios_base::iostate&, _ValueT&) const':
/usr/include/c++/9/bits/locale_facets.tcc:469:21: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reserve'
469 | __found_grouping.reserve(32);
| ^~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:555:23: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
555 | if (__found_grouping.size())
| ^~~~
/usr/include/c++/9/bits/locale_facets.tcc:568:56: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
568 | if ((!__sep_pos && !__found_zero && !__found_grouping.size())
| ^~~~
/usr/include/c++/9/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, float&) const':
/usr/include/c++/9/bits/locale_facets.tcc:695:14: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reserve'
695 | __xtrc.reserve(32);
| ^~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, double&) const':
/usr/include/c++/9/bits/locale_facets.tcc:710:14: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reserve'
710 | __xtrc.reserve(32);
| ^~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, long double&) const':
/usr/include/c++/9/bits/locale_facets.tcc:742:14: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reserve'
742 | __xtrc.reserve(32);
| ^~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc: At global scope:
/usr/include/c++/9/bits/locale_facets.tcc:780:27: error: 'streamsize' has not been declared
780 | _M_pad(_CharT __fill, streamsize __w, ios_base& __io,
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc: In member function '_OutIter std::num_put<_CharT, _OutIter>::_M_insert_int(_OutIter, std::ios_base&, _CharT, _ValueT) const':
/usr/include/c++/9/bits/locale_facets.tcc:921:8: error: 'streamsize' does not name a type
921 | const streamsize __w = __io.width();
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:922:6: error: '__w' was not declared in this scope; did you mean '__u'?
922 | if (__w > static_cast<streamsize>(__len))
| ^~~
| __u
/usr/include/c++/9/bits/locale_facets.tcc:922:24: error: 'streamsize' does not name a type
922 | if (__w > static_cast<streamsize>(__len))
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:929:7: error: 'class std::ios_base' has no member named 'width'
929 | __io.width(0);
| ^~~~~
/usr/include/c++/9/bits/locale_facets.tcc: In member function '_OutIter std::num_put<_CharT, _OutIter>::_M_insert_float(_OutIter, std::ios_base&, _CharT, char, _ValueT) const':
/usr/include/c++/9/bits/locale_facets.tcc:984:8: error: 'streamsize' does not name a type
984 | const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision();
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:1006:14: error: '__prec' was not declared in this scope
1006 | __fbuf, __prec, __v);
| ^~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:1018:18: error: '__prec' was not declared in this scope
1018 | __fbuf, __prec, __v);
| ^~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:1071:6: error: 'streamsize' was not declared in this scope
1071 | streamsize __off = 0;
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:1074:3: error: '__off' was not declared in this scope
1074 | __off = 1;
| ^~~~~
/usr/include/c++/9/bits/locale_facets.tcc:1080:45: error: '__off' was not declared in this scope
1080 | __lc->_M_thousands_sep, __wp, __ws2 + __off,
| ^~~~~
/usr/include/c++/9/bits/locale_facets.tcc:1088:8: error: 'streamsize' does not name a type
1088 | const streamsize __w = __io.width();
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:1089:6: error: '__w' was not declared in this scope; did you mean '__p'?
1089 | if (__w > static_cast<streamsize>(__len))
| ^~~
| __p
/usr/include/c++/9/bits/locale_facets.tcc:1089:24: error: 'streamsize' does not name a type
1089 | if (__w > static_cast<streamsize>(__len))
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:1096:7: error: 'class std::ios_base' has no member named 'width'
1096 | __io.width(0);
| ^~~~~
/usr/include/c++/9/bits/locale_facets.tcc: In member function 'virtual _OutIter std::num_put<_CharT, _OutIter>::do_put(std::num_put<_CharT, _OutIter>::iter_type, std::ios_base&, std::num_put<_CharT, _OutIter>::char_type, bool) const':
/usr/include/c++/9/bits/locale_facets.tcc:1126:10: error: 'streamsize' does not name a type
1126 | const streamsize __w = __io.width();
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:1127:8: error: '__w' was not declared in this scope; did you mean '__s'?
1127 | if (__w > static_cast<streamsize>(__len))
| ^~~
| __s
/usr/include/c++/9/bits/locale_facets.tcc:1127:26: error: 'streamsize' does not name a type
1127 | if (__w > static_cast<streamsize>(__len))
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:1129:14: error: 'streamsize' does not name a type
1129 | const streamsize __plen = __w - __len;
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:1132:10: error: '__plen' was not declared in this scope; did you mean '__len'?
1132 | * __plen));
| ^~~~~~
| __len
/usr/include/c++/9/bits/locale_facets.tcc:1135:13: error: 'class std::ios_base' has no member named 'width'
1135 | __io.width(0);
| ^~~~~
/usr/include/c++/9/bits/locale_facets.tcc:1149:9: error: 'class std::ios_base' has no member named 'width'
1149 | __io.width(0);
| ^~~~~
/usr/include/c++/9/bits/locale_facets.tcc: At global scope:
/usr/include/c++/9/bits/locale_facets.tcc:1210:8: error: 'streamsize' has not been declared
1210 | streamsize __newlen, streamsize __oldlen)
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_facets.tcc:1210:29: error: 'streamsize' has not been declared
1210 | streamsize __newlen, streamsize __oldlen)
| ^~~~~~~~~~
In file included from /usr/include/c++/9/bits/locale_facets_nonio.h:2015,
from /usr/include/c++/9/locale:41,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/bits/locale_facets_nonio.tcc: In member function 'void std::__moneypunct_cache<_CharT, _Intl>::_M_cache(const std::locale&)':
/usr/include/c++/9/bits/locale_facets_nonio.tcc:85:27: error: 'const string' {aka 'const class std::__cxx11::basic_string<char>'} has no member named 'size'
85 | _M_grouping_size = __g.size();
| ^~~~
/usr/include/c++/9/bits/locale_facets_nonio.tcc:87:8: error: 'const string' {aka 'const class std::__cxx11::basic_string<char>'} has no member named 'copy'
87 | __g.copy(__grouping, _M_grouping_size);
| ^~~~
/usr/include/c++/9/bits/locale_facets_nonio.tcc: In member function '_InIter std::__cxx11::money_get<_CharT, _InIter>::_M_extract(std::__cxx11::money_get<_CharT, _InIter>::iter_type, std::__cxx11::money_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, std::string&) const':
/usr/include/c++/9/bits/locale_facets_nonio.tcc:162:19: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reserve'
162 | __grouping_tmp.reserve(32);
| ^~~~~~~
/usr/include/c++/9/bits/locale_facets_nonio.tcc:174:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reserve'
174 | __res.reserve(32);
| ^~~~~~~
/usr/include/c++/9/bits/locale_facets_nonio.tcc:311:16: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
311 | if (__res.size() > 1)
| ^~~~
/usr/include/c++/9/bits/locale_facets_nonio.tcc:313:35: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'find_first_not_of'
313 | const size_type __first = __res.find_first_not_of('0');
| ^~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/locale_facets_nonio.tcc:314:48: error: 'npos' is not a member of 'std::string' {aka 'std::__cxx11::basic_string<char>'}
314 | const bool __only_zeros = __first == string::npos;
| ^~~~
/usr/include/c++/9/bits/locale_facets_nonio.tcc:316:41: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
316 | __res.erase(0, __only_zeros ? __res.size() - 1 : __first);
| ^~~~
/usr/include/c++/9/bits/locale_facets_nonio.tcc:320:29: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
320 | if (__negative && __res[0] != '0')
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/stl_iterator.h: In instantiation of 'class __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >':
/usr/include/c++/9/bits/locale_facets_nonio.tcc:321:39: required from here
/usr/include/c++/9/bits/stl_iterator.h:798:56: error: no type named 'difference_type' in 'struct std::iterator_traits<char*>'
798 | typedef typename __traits_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_iterator.h: In instantiation of 'class __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >':
/usr/include/c++/9/bits/locale_facets_nonio.tcc:321:39: required from here
/usr/include/c++/9/bits/stl_iterator.h:798:56: error: no type named 'difference_type' in 'struct std::iterator_traits<const char*>'
In file included from /usr/include/c++/9/bits/locale_facets_nonio.h:2015,
from /usr/include/c++/9/locale:41,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/bits/locale_facets_nonio.tcc:324:25: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
324 | if (__grouping_tmp.size())
| ^~~~
/usr/include/c++/9/bits/locale_facets_nonio.tcc: In member function 'virtual _InIter std::__cxx11::money_get<_CharT, _InIter>::do_get(std::__cxx11::money_get<_CharT, _InIter>::iter_type, std::__cxx11::money_get<_CharT, _InIter>::iter_type, bool, std::ios_base&, std::ios_base::iostate&, std::__cxx11::money_get<_CharT, _InIter>::string_type&) const':
/usr/include/c++/9/bits/locale_facets_nonio.tcc:387:32: error: invalid combination of multiple type-specifiers
387 | typedef typename string::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/9/bits/locale_facets_nonio.tcc:395:37: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
395 | const size_type __len = __str.size();
| ^~~~
/usr/include/c++/9/bits/locale_facets_nonio.tcc: In member function '_OutIter std::__cxx11::money_put<_CharT, _OutIter>::_M_insert(std::__cxx11::money_put<_CharT, _OutIter>::iter_type, std::ios_base&, std::__cxx11::money_put<_CharT, _OutIter>::char_type, const string_type&) const':
/usr/include/c++/9/bits/locale_facets_nonio.tcc:500:60: error: 'class std::ios_base' has no member named 'width'
500 | const size_type __width = static_cast<size_type>(__io.width());
| ^~~~~
/usr/include/c++/9/bits/locale_facets_nonio.tcc:560:7: error: 'class std::ios_base' has no member named 'width'
560 | __io.width(0);
| ^~~~~
In file included from /usr/include/c++/9/bits/unique_ptr.h:36,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/utility: At global scope:
/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/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/unique_ptr.h:36,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/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/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/unique_ptr.h:36,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/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/tuple:39,
from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/array:47:31: error: 'std::size_t' has not been declared
47 | template<typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:50:25: error: '_Nm' was not declared in this scope
50 | typedef _Tp _Type[_Nm];
| ^~~
/usr/include/c++/9/array:55:20: error: '_Type' does not name a type; did you mean '_Tp'?
55 | _S_ref(const _Type& __t, std::size_t __n) noexcept
| ^~~~~
| _Tp
/usr/include/c++/9/array:55:37: error: 'std::size_t' has not been declared
55 | _S_ref(const _Type& __t, std::size_t __n) noexcept
| ^~~~~~
/usr/include/c++/9/array:59:20: error: '_Type' does not name a type; did you mean '_Tp'?
59 | _S_ptr(const _Type& __t) noexcept
| ^~~~~
| _Tp
/usr/include/c++/9/array:93:31: error: 'std::size_t' has not been declared
93 | template<typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:103:20: error: 'size_t' in namespace 'std' does not name a type
103 | typedef std::size_t size_type;
| ^~~~~~
/usr/include/c++/9/array:104:20: error: 'ptrdiff_t' in namespace 'std' does not name a type
104 | typedef std::ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/include/c++/9/array:109:51: error: '_Nm' was not declared in this scope
109 | typedef _GLIBCXX_STD_C::__array_traits<_Tp, _Nm> _AT_Type;
| ^~~
/usr/include/c++/9/array:109:54: error: template argument 2 is invalid
109 | typedef _GLIBCXX_STD_C::__array_traits<_Tp, _Nm> _AT_Type;
| ^
/usr/include/c++/9/array:110:16: error: '_AT_Type' is not a class, namespace, or enumeration
110 | typename _AT_Type::_Type _M_elems;
| ^~~~~~~~
/usr/include/c++/9/array:121:16: error: '_AT_Type' is not a class, namespace, or enumeration
121 | noexcept(_AT_Type::_Is_nothrow_swappable::value)
| ^~~~~~~~
/usr/include/c++/9/array:174:17: error: 'size_type' does not name a type; did you mean 'true_type'?
174 | constexpr size_type
| ^~~~~~~~~
| true_type
/usr/include/c++/9/array:177:17: error: 'size_type' does not name a type; did you mean 'true_type'?
177 | constexpr size_type
| ^~~~~~~~~
| true_type
/usr/include/c++/9/array:185:18: error: 'size_type' has not been declared
185 | operator[](size_type __n) noexcept
| ^~~~~~~~~
/usr/include/c++/9/array:189:18: error: 'size_type' has not been declared
189 | operator[](size_type __n) const noexcept
| ^~~~~~~~~
/usr/include/c++/9/array:193:10: error: 'size_type' has not been declared
193 | at(size_type __n)
| ^~~~~~~~~
/usr/include/c++/9/array:203:10: error: 'size_type' has not been declared
203 | at(size_type __n) const
| ^~~~~~~~~
/usr/include/c++/9/array:250:31: error: 'std::size_t' has not been declared
250 | template<typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:252:33: error: '_Nm' was not declared in this scope
252 | operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~
/usr/include/c++/9/array:252:36: error: template argument 2 is invalid
252 | operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^
/usr/include/c++/9/array:252:63: error: '_Nm' was not declared in this scope
252 | operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~
/usr/include/c++/9/array:252:66: error: template argument 2 is invalid
252 | operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^
/usr/include/c++/9/array:252:5: error: 'bool std::operator==(const int&, const int&)' must have an argument of class or enumerated type
252 | operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~~~~~~
/usr/include/c++/9/array:255:31: error: 'std::size_t' has not been declared
255 | template<typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:257:33: error: '_Nm' was not declared in this scope
257 | operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~
/usr/include/c++/9/array:257:36: error: template argument 2 is invalid
257 | operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^
/usr/include/c++/9/array:257:63: error: '_Nm' was not declared in this scope
257 | operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~
/usr/include/c++/9/array:257:66: error: template argument 2 is invalid
257 | operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^
/usr/include/c++/9/array:257:5: error: 'bool std::operator!=(const int&, const int&)' must have an argument of class or enumerated type
257 | operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~~~~~~
/usr/include/c++/9/array:260:31: error: 'std::size_t' has not been declared
260 | template<typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:262:32: error: '_Nm' was not declared in this scope
262 | operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b)
| ^~~
/usr/include/c++/9/array:262:35: error: template argument 2 is invalid
262 | operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b)
| ^
/usr/include/c++/9/array:262:60: error: '_Nm' was not declared in this scope
262 | operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b)
| ^~~
/usr/include/c++/9/array:262:63: error: template argument 2 is invalid
262 | operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b)
| ^
/usr/include/c++/9/array:262:5: error: 'bool std::operator<(const int&, const int&)' must have an argument of class or enumerated type
262 | operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b)
| ^~~~~~~~
/usr/include/c++/9/array:268:31: error: 'std::size_t' has not been declared
268 | template<typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:270:32: error: '_Nm' was not declared in this scope
270 | operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~
/usr/include/c++/9/array:270:35: error: template argument 2 is invalid
270 | operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^
/usr/include/c++/9/array:270:62: error: '_Nm' was not declared in this scope
270 | operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~
/usr/include/c++/9/array:270:65: error: template argument 2 is invalid
270 | operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^
/usr/include/c++/9/array:270:5: error: 'bool std::operator>(const int&, const int&)' must have an argument of class or enumerated type
270 | operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~~~~~~
/usr/include/c++/9/array:273:31: error: 'std::size_t' has not been declared
273 | template<typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:275:33: error: '_Nm' was not declared in this scope
275 | operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~
/usr/include/c++/9/array:275:36: error: template argument 2 is invalid
275 | operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^
/usr/include/c++/9/array:275:63: error: '_Nm' was not declared in this scope
275 | operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~
/usr/include/c++/9/array:275:66: error: template argument 2 is invalid
275 | operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^
/usr/include/c++/9/array:275:5: error: 'bool std::operator<=(const int&, const int&)' must have an argument of class or enumerated type
275 | operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~~~~~~
/usr/include/c++/9/array:278:31: error: 'std::size_t' has not been declared
278 | template<typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:280:33: error: '_Nm' was not declared in this scope
280 | operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~
/usr/include/c++/9/array:280:36: error: template argument 2 is invalid
280 | operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^
/usr/include/c++/9/array:280:63: error: '_Nm' was not declared in this scope
280 | operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~
/usr/include/c++/9/array:280:66: error: template argument 2 is invalid
280 | operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^
/usr/include/c++/9/array:280:5: error: 'bool std::operator>=(const int&, const int&)' must have an argument of class or enumerated type
280 | operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~~~~~~
/usr/include/c++/9/array:284:31: error: 'std::size_t' has not been declared
284 | template<typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:294:21: error: '_Nm' was not declared in this scope
294 | swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two)
| ^~~
/usr/include/c++/9/array:294:24: error: template argument 2 is invalid
294 | swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two)
| ^
/usr/include/c++/9/array:294:45: error: '_Nm' was not declared in this scope
294 | swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two)
| ^~~
/usr/include/c++/9/array:294:48: error: template argument 2 is invalid
294 | swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two)
| ^
/usr/include/c++/9/array:295:29: error: request for member 'swap' in '__one', which is of non-class type 'int'
295 | noexcept(noexcept(__one.swap(__two)))
| ^~~~
/usr/include/c++/9/array: In function 'void std::swap(int&, int&)':
/usr/include/c++/9/array:296:13: error: request for member 'swap' in '__one', which is of non-class type 'int'
296 | { __one.swap(__two); }
| ^~~~
/usr/include/c++/9/array: At global scope:
/usr/include/c++/9/array:305:17: error: 'std::size_t' has not been declared
305 | template<std::size_t _Int, typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:305:49: error: 'std::size_t' has not been declared
305 | template<std::size_t _Int, typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:307:20: error: '_Nm' was not declared in this scope
307 | get(array<_Tp, _Nm>& __arr) noexcept
| ^~~
/usr/include/c++/9/array:307:23: error: template argument 2 is invalid
307 | get(array<_Tp, _Nm>& __arr) noexcept
| ^
/usr/include/c++/9/array: In function 'constexpr _Tp& std::get(int&)':
/usr/include/c++/9/array:309:21: error: '_Int' was not declared in this scope
309 | static_assert(_Int < _Nm, "array index is within bounds");
| ^~~~
/usr/include/c++/9/array:309:28: error: '_Nm' was not declared in this scope
309 | static_assert(_Int < _Nm, "array index is within bounds");
| ^~~
/usr/include/c++/9/array:311:15: error: request for member '_M_elems' in '__arr', which is of non-class type 'int'
311 | _S_ref(__arr._M_elems, _Int);
| ^~~~~~~~
/usr/include/c++/9/array: At global scope:
/usr/include/c++/9/array:314:17: error: 'std::size_t' has not been declared
314 | template<std::size_t _Int, typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:314:49: error: 'std::size_t' has not been declared
314 | template<std::size_t _Int, typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:316:20: error: '_Nm' was not declared in this scope
316 | get(array<_Tp, _Nm>&& __arr) noexcept
| ^~~
/usr/include/c++/9/array:316:23: error: template argument 2 is invalid
316 | get(array<_Tp, _Nm>&& __arr) noexcept
| ^
/usr/include/c++/9/array: In function 'constexpr _Tp&& std::get(int&&)':
/usr/include/c++/9/array:318:21: error: '_Int' was not declared in this scope
318 | static_assert(_Int < _Nm, "array index is within bounds");
| ^~~~
/usr/include/c++/9/array:318:28: error: '_Nm' was not declared in this scope
318 | static_assert(_Int < _Nm, "array index is within bounds");
| ^~~
/usr/include/c++/9/array:319:55: error: no matching function for call to 'get<_Int>(int&)'
319 | return std::move(_GLIBCXX_STD_C::get<_Int>(__arr));
| ^
In file included from /usr/include/c++/9/bits/unique_ptr.h:36,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/utility:219:5: note: candidate: 'template<<declaration error>, class _Tp1, class _Tp2> constexpr int& std::get(std::pair<_Tp1, _Tp2>&)'
219 | get(std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/9/utility:219:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/utility:224:5: note: candidate: 'template<<declaration error>, class _Tp1, class _Tp2> constexpr int&& std::get(std::pair<_Tp1, _Tp2>&&)'
224 | get(std::pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/9/utility:224:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/utility:229:5: note: candidate: 'template<<declaration error>, class _Tp1, class _Tp2> constexpr const int& std::get(const std::pair<_Tp1, _Tp2>&)'
229 | get(const std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/9/utility:229:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/utility:234:5: note: candidate: 'template<<declaration error>, class _Tp1, class _Tp2> constexpr const int&& std::get(const std::pair<_Tp1, _Tp2>&&)'
234 | get(const std::pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/9/utility:234:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/array:307:5: note: candidate: 'template<<declaration error>, class _Tp, <declaration error> > constexpr _Tp& std::get(int&)'
307 | get(array<_Tp, _Nm>& __arr) noexcept
| ^~~
/usr/include/c++/9/array:307:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/array:316:5: note: candidate: 'template<<declaration error>, class _Tp, <declaration error> > constexpr _Tp&& std::get(int&&)'
316 | get(array<_Tp, _Nm>&& __arr) noexcept
| ^~~
/usr/include/c++/9/array:316:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/array: At global scope:
/usr/include/c++/9/array:322:17: error: 'std::size_t' has not been declared
322 | template<std::size_t _Int, typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:322:49: error: 'std::size_t' has not been declared
322 | template<std::size_t _Int, typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:324:26: error: '_Nm' was not declared in this scope
324 | get(const array<_Tp, _Nm>& __arr) noexcept
| ^~~
/usr/include/c++/9/array:324:29: error: template argument 2 is invalid
324 | get(const array<_Tp, _Nm>& __arr) noexcept
| ^
/usr/include/c++/9/array: In function 'constexpr const _Tp& std::get(const int&)':
/usr/include/c++/9/array:326:21: error: '_Int' was not declared in this scope
326 | static_assert(_Int < _Nm, "array index is within bounds");
| ^~~~
/usr/include/c++/9/array:326:28: error: '_Nm' was not declared in this scope
326 | static_assert(_Int < _Nm, "array index is within bounds");
| ^~~
/usr/include/c++/9/array:328:15: error: request for member '_M_elems' in '__arr', which is of non-class type 'const int'
328 | _S_ref(__arr._M_elems, _Int);
| ^~~~~~~~
/usr/include/c++/9/array: At global scope:
/usr/include/c++/9/array:331:17: error: 'std::size_t' has not been declared
331 | template<std::size_t _Int, typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:331:49: error: 'std::size_t' has not been declared
331 | template<std::size_t _Int, typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:333:26: error: '_Nm' was not declared in this scope
333 | get(const array<_Tp, _Nm>&& __arr) noexcept
| ^~~
/usr/include/c++/9/array:333:29: error: template argument 2 is invalid
333 | get(const array<_Tp, _Nm>&& __arr) noexcept
| ^
/usr/include/c++/9/array: In function 'constexpr const _Tp&& std::get(const int&&)':
/usr/include/c++/9/array:335:21: error: '_Int' was not declared in this scope
335 | static_assert(_Int < _Nm, "array index is within bounds");
| ^~~~
/usr/include/c++/9/array:335:28: error: '_Nm' was not declared in this scope
335 | static_assert(_Int < _Nm, "array index is within bounds");
| ^~~
/usr/include/c++/9/array:336:55: error: no matching function for call to 'get<_Int>(const int&)'
336 | return std::move(_GLIBCXX_STD_C::get<_Int>(__arr));
| ^
In file included from /usr/include/c++/9/bits/unique_ptr.h:36,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/utility:219:5: note: candidate: 'template<<declaration error>, class _Tp1, class _Tp2> constexpr int& std::get(std::pair<_Tp1, _Tp2>&)'
219 | get(std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/9/utility:219:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/utility:224:5: note: candidate: 'template<<declaration error>, class _Tp1, class _Tp2> constexpr int&& std::get(std::pair<_Tp1, _Tp2>&&)'
224 | get(std::pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/9/utility:224:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/utility:229:5: note: candidate: 'template<<declaration error>, class _Tp1, class _Tp2> constexpr const int& std::get(const std::pair<_Tp1, _Tp2>&)'
229 | get(const std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/9/utility:229:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/utility:234:5: note: candidate: 'template<<declaration error>, class _Tp1, class _Tp2> constexpr const int&& std::get(const std::pair<_Tp1, _Tp2>&&)'
234 | get(const std::pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/9/utility:234:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/array:307:5: note: candidate: 'template<<declaration error>, class _Tp, <declaration error> > constexpr _Tp& std::get(int&)'
307 | get(array<_Tp, _Nm>& __arr) noexcept
| ^~~
/usr/include/c++/9/array:307:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/array:316:5: note: candidate: 'template<<declaration error>, class _Tp, <declaration error> > constexpr _Tp&& std::get(int&&)'
316 | get(array<_Tp, _Nm>&& __arr) noexcept
| ^~~
/usr/include/c++/9/array:316:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/array:324:5: note: candidate: 'template<<declaration error>, class _Tp, <declaration error> > constexpr const _Tp& std::get(const int&)'
324 | get(const array<_Tp, _Nm>& __arr) noexcept
| ^~~
/usr/include/c++/9/array:324:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/array:333:5: note: candidate: 'template<<declaration error>, class _Tp, <declaration error> > constexpr const _Tp&& std::get(const int&&)'
333 | get(const array<_Tp, _Nm>&& __arr) noexcept
| ^~~
/usr/include/c++/9/array:333:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/array: At global scope:
/usr/include/c++/9/array:353:31: error: 'std::size_t' has not been declared
353 | template<typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:354:50: error: '_Nm' was not declared in this scope
354 | struct tuple_size<_GLIBCXX_STD_C::array<_Tp, _Nm>>
| ^~~
/usr/include/c++/9/array:354:50: error: template argument 2 is invalid
/usr/include/c++/9/array:354:53: error: template argument 1 is invalid
354 | struct tuple_size<_GLIBCXX_STD_C::array<_Tp, _Nm>>
| ^~
/usr/include/c++/9/array:355:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
355 | : public integral_constant<std::size_t, _Nm> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/tuple:39,
from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/array:355:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
355 | : public integral_constant<std::size_t, _Nm> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/tuple:39,
from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/array:355:45: error: '_Nm' was not declared in this scope
355 | : public integral_constant<std::size_t, _Nm> { };
| ^~~
/usr/include/c++/9/array:355:48: error: template argument 1 is invalid
355 | : public integral_constant<std::size_t, _Nm> { };
| ^
/usr/include/c++/9/array:355:48: error: template argument 2 is invalid
/usr/include/c++/9/array:358:17: error: 'std::size_t' has not been declared
358 | template<std::size_t _Int, typename _Tp>
| ^~~~~~
/usr/include/c++/9/array:362:17: error: 'std::size_t' has not been declared
362 | template<std::size_t _Int, typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:362:49: error: 'std::size_t' has not been declared
362 | template<std::size_t _Int, typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:363:26: error: '_Int' was not declared in this scope
363 | struct tuple_element<_Int, _GLIBCXX_STD_C::array<_Tp, _Nm>>
| ^~~~
/usr/include/c++/9/array:363:59: error: '_Nm' was not declared in this scope
363 | struct tuple_element<_Int, _GLIBCXX_STD_C::array<_Tp, _Nm>>
| ^~~
/usr/include/c++/9/array:363:59: error: template argument 2 is invalid
/usr/include/c++/9/array:363:62: error: template argument 1 is invalid
363 | struct tuple_element<_Int, _GLIBCXX_STD_C::array<_Tp, _Nm>>
| ^~
/usr/include/c++/9/array:363:62: error: template argument 2 is invalid
/usr/include/c++/9/array:369:31: error: 'std::size_t' has not been declared
369 | template<typename _Tp, std::size_t _Nm>
| ^~~~~~
/usr/include/c++/9/array:370:60: error: '_Nm' was not declared in this scope
370 | struct __is_tuple_like_impl<_GLIBCXX_STD_C::array<_Tp, _Nm>> : true_type
| ^~~
/usr/include/c++/9/array:370:60: error: template argument 2 is invalid
/usr/include/c++/9/array:370:63: error: template argument 1 is invalid
370 | struct __is_tuple_like_impl<_GLIBCXX_STD_C::array<_Tp, _Nm>> : true_type
| ^~
In file included from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/tuple:68:17: error: 'std::size_t' has not been declared
68 | template<std::size_t _Idx, typename _Head,
| ^~~~~~
/usr/include/c++/9/tuple:70:12: error: no default argument for '_Head'
70 | struct _Head_base;
| ^~~~~~~~~~
/usr/include/c++/9/tuple:72:17: error: 'std::size_t' has not been declared
72 | template<std::size_t _Idx, typename _Head>
| ^~~~~~
/usr/include/c++/9/tuple:73:23: error: '_Idx' was not declared in this scope
73 | struct _Head_base<_Idx, _Head, true>
| ^~~~
/usr/include/c++/9/tuple:73:40: error: template argument 1 is invalid
73 | struct _Head_base<_Idx, _Head, true>
| ^
/usr/include/c++/9/tuple:119:17: error: 'std::size_t' has not been declared
119 | template<std::size_t _Idx, typename _Head>
| ^~~~~~
/usr/include/c++/9/tuple:120:23: error: '_Idx' was not declared in this scope
120 | struct _Head_base<_Idx, _Head, false>
| ^~~~
/usr/include/c++/9/tuple:120:41: error: template argument 1 is invalid
120 | struct _Head_base<_Idx, _Head, false>
| ^
/usr/include/c++/9/tuple:176:17: error: 'std::size_t' has not been declared
176 | template<std::size_t _Idx, typename... _Elements>
| ^~~~~~
/usr/include/c++/9/tuple:184:17: error: 'std::size_t' has not been declared
184 | template<std::size_t _Idx, typename _Head, typename... _Tail>
| ^~~~~~
/usr/include/c++/9/tuple:185:24: error: '_Idx' was not declared in this scope
185 | struct _Tuple_impl<_Idx, _Head, _Tail...>
| ^~~~
/usr/include/c++/9/tuple:185:45: error: template argument 1 is invalid
185 | struct _Tuple_impl<_Idx, _Head, _Tail...>
| ^
/usr/include/c++/9/tuple:186:26: error: '_Idx' was not declared in this scope
186 | : public _Tuple_impl<_Idx + 1, _Tail...>,
| ^~~~
/usr/include/c++/9/tuple:186:44: error: template argument 1 is invalid
186 | : public _Tuple_impl<_Idx + 1, _Tail...>,
| ^
/usr/include/c++/9/tuple:187:26: error: '_Idx' was not declared in this scope
187 | private _Head_base<_Idx, _Head>
| ^~~~
/usr/include/c++/9/tuple:187:37: error: template argument 1 is invalid
187 | private _Head_base<_Idx, _Head>
| ^
/usr/include/c++/9/tuple:325:17: error: 'std::size_t' has not been declared
325 | template<std::size_t _Idx, typename _Head>
| ^~~~~~
/usr/include/c++/9/tuple:326:24: error: '_Idx' was not declared in this scope
326 | struct _Tuple_impl<_Idx, _Head>
| ^~~~
/usr/include/c++/9/tuple:326:35: error: template argument 1 is invalid
326 | struct _Tuple_impl<_Idx, _Head>
| ^
/usr/include/c++/9/tuple:327:26: error: '_Idx' was not declared in this scope
327 | : private _Head_base<_Idx, _Head>
| ^~~~
/usr/include/c++/9/tuple:327:37: error: template argument 1 is invalid
327 | : private _Head_base<_Idx, _Head>
| ^
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_Elements>::tuple()':
/usr/include/c++/9/tuple:562:9: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
562 | : _Inherited() { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_Elements>::tuple()':
/usr/include/c++/9/tuple:572:9: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
572 | : _Inherited() { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_Elements>::tuple(const _Elements& ...)':
/usr/include/c++/9/tuple:589:9: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
589 | : _Inherited(__elements...) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_Elements>::tuple(const _Elements& ...)':
/usr/include/c++/9/tuple:600:9: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
600 | : _Inherited(__elements...) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_Elements>::tuple(_UElements&& ...)':
/usr/include/c++/9/tuple:627:11: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
627 | : _Inherited(std::forward<_UElements>(__elements)...) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_Elements>::tuple(_UElements&& ...)':
/usr/include/c++/9/tuple:638:4: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
638 | : _Inherited(std::forward<_UElements>(__elements)...) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_Elements>::tuple(const std::tuple<_Args1 ...>&)':
/usr/include/c++/9/tuple:659:11: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
659 | : _Inherited(static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^~~~~~~~~~
/usr/include/c++/9/tuple:659:69: error: expected '>' before '&' token
659 | : _Inherited(static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^
/usr/include/c++/9/tuple:659:69: error: expected '(' before '&' token
659 | : _Inherited(static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^
| (
/usr/include/c++/9/tuple:659:70: error: expected primary-expression before '>' token
659 | : _Inherited(static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^
/usr/include/c++/9/tuple:660:11: error: expected '{' at end of input
660 | { }
| ^
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_Elements>::tuple(const std::tuple<_Args1 ...>&)':
/usr/include/c++/9/tuple:671:11: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
671 | : _Inherited(static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^~~~~~~~~~
/usr/include/c++/9/tuple:671:69: error: expected '>' before '&' token
671 | : _Inherited(static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^
/usr/include/c++/9/tuple:671:69: error: expected '(' before '&' token
671 | : _Inherited(static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^
| (
/usr/include/c++/9/tuple:671:70: error: expected primary-expression before '>' token
671 | : _Inherited(static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^
/usr/include/c++/9/tuple:672:11: error: expected '{' at end of input
672 | { }
| ^
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_Elements>::tuple(std::tuple<_Args1 ...>&&)':
/usr/include/c++/9/tuple:683:11: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
683 | : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple:683:63: error: expected '>' before '&&' token
683 | : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { }
| ^~
/usr/include/c++/9/tuple:683:63: error: expected '(' before '&&' token
683 | : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { }
| ^~
| (
/usr/include/c++/9/tuple:683:65: error: expected identifier before '>' token
683 | : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { }
| ^
/usr/include/c++/9/tuple:683:76: error: expected '{' at end of input
683 | : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { }
| ^
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_Elements>::tuple(std::tuple<_Args1 ...>&&)':
/usr/include/c++/9/tuple:694:11: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
694 | : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple:694:63: error: expected '>' before '&&' token
694 | : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { }
| ^~
/usr/include/c++/9/tuple:694:63: error: expected '(' before '&&' token
694 | : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { }
| ^~
| (
/usr/include/c++/9/tuple:694:65: error: expected identifier before '>' token
694 | : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { }
| ^
/usr/include/c++/9/tuple:694:76: error: expected '{' at end of input
694 | : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { }
| ^
/usr/include/c++/9/tuple: In constructor 'std::tuple<_Elements>::tuple(std::allocator_arg_t, const _Alloc&)':
/usr/include/c++/9/tuple:700:4: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
700 | : _Inherited(__tag, __a) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_Elements>::tuple(std::allocator_arg_t, const _Alloc&, const _Elements& ...)':
/usr/include/c++/9/tuple:711:4: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
711 | : _Inherited(__tag, __a, __elements...) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_Elements>::tuple(std::allocator_arg_t, const _Alloc&, const _Elements& ...)':
/usr/include/c++/9/tuple:722:4: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
722 | : _Inherited(__tag, __a, __elements...) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_Elements>::tuple(std::allocator_arg_t, const _Alloc&, _UElements&& ...)':
/usr/include/c++/9/tuple:732:4: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
732 | : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...)
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_Elements>::tuple(std::allocator_arg_t, const _Alloc&, _UElements&& ...)':
/usr/include/c++/9/tuple:743:4: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
743 | : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...)
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_Elements>::tuple(std::allocator_arg_t, const _Alloc&, const std::tuple<_Elements>&)':
/usr/include/c++/9/tuple:748:4: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
748 | : _Inherited(__tag, __a, static_cast<const _Inherited&>(__in)) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_Elements>::tuple(std::allocator_arg_t, const _Alloc&, std::tuple<_Elements>&&)':
/usr/include/c++/9/tuple:752:4: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
752 | : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_Elements>::tuple(std::allocator_arg_t, const _Alloc&, const std::tuple<_UElements ...>&)':
/usr/include/c++/9/tuple:765:4: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
765 | : _Inherited(__tag, __a,
| ^~~~~~~~~~
/usr/include/c++/9/tuple:766:62: error: expected '>' before '&' token
766 | static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^
/usr/include/c++/9/tuple:766:62: error: expected '(' before '&' token
766 | static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^
| (
/usr/include/c++/9/tuple:766:63: error: expected primary-expression before '>' token
766 | static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^
/usr/include/c++/9/tuple:767:4: error: expected '{' at end of input
767 | { }
| ^
/usr/include/c++/9/tuple: In constructor 'std::tuple<_Elements>::tuple(std::allocator_arg_t, const _Alloc&, const std::tuple<_UElements ...>&)':
/usr/include/c++/9/tuple:780:4: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
780 | : _Inherited(__tag, __a,
| ^~~~~~~~~~
/usr/include/c++/9/tuple:781:62: error: expected '>' before '&' token
781 | static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^
/usr/include/c++/9/tuple:781:62: error: expected '(' before '&' token
781 | static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^
| (
/usr/include/c++/9/tuple:781:63: error: expected primary-expression before '>' token
781 | static_cast<const _Tuple_impl<0, _UElements...>&>(__in))
| ^
/usr/include/c++/9/tuple:782:4: error: expected '{' at end of input
782 | { }
| ^
/usr/include/c++/9/tuple: In constructor 'std::tuple<_Elements>::tuple(std::allocator_arg_t, const _Alloc&, std::tuple<_UElements ...>&&)':
/usr/include/c++/9/tuple:795:4: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
795 | : _Inherited(__tag, __a,
| ^~~~~~~~~~
/usr/include/c++/9/tuple:796:56: error: expected '>' before '&&' token
796 | static_cast<_Tuple_impl<0, _UElements...>&&>(__in))
| ^~
/usr/include/c++/9/tuple:796:56: error: expected '(' before '&&' token
796 | static_cast<_Tuple_impl<0, _UElements...>&&>(__in))
| ^~
| (
/usr/include/c++/9/tuple:796:58: error: expected identifier before '>' token
796 | static_cast<_Tuple_impl<0, _UElements...>&&>(__in))
| ^
/usr/include/c++/9/tuple:797:4: error: expected '{' at end of input
797 | { }
| ^
/usr/include/c++/9/tuple: In constructor 'std::tuple<_Elements>::tuple(std::allocator_arg_t, const _Alloc&, std::tuple<_UElements ...>&&)':
/usr/include/c++/9/tuple:810:4: error: 'typedef int std::tuple<_Elements>::_Inherited' is not a non-static data member of 'std::tuple<_Elements>'
810 | : _Inherited(__tag, __a,
| ^~~~~~~~~~
/usr/include/c++/9/tuple:811:56: error: expected '>' before '&&' token
811 | static_cast<_Tuple_impl<0, _UElements...>&&>(__in))
| ^~
/usr/include/c++/9/tuple:811:56: error: expected '(' before '&&' token
811 | static_cast<_Tuple_impl<0, _UElements...>&&>(__in))
| ^~
| (
/usr/include/c++/9/tuple:811:58: error: expected identifier before '>' token
811 | static_cast<_Tuple_impl<0, _UElements...>&&>(__in))
| ^
/usr/include/c++/9/tuple:812:4: error: expected '{' at end of input
812 | { }
| ^
/usr/include/c++/9/tuple: In member function 'void std::tuple<_Elements>::swap(std::tuple<_Elements>&)':
/usr/include/c++/9/tuple:858:28: error: qualified-id in declaration before '(' token
858 | { _Inherited::_M_swap(__in); }
| ^
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple()':
/usr/include/c++/9/tuple:919:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
919 | : _Inherited() { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple()':
/usr/include/c++/9/tuple:932:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
932 | : _Inherited() { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple(const _T1&, const _T2&)':
/usr/include/c++/9/tuple:946:11: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
946 | : _Inherited(__a1, __a2) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple(const _T1&, const _T2&)':
/usr/include/c++/9/tuple:955:11: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
955 | : _Inherited(__a1, __a2) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&)':
/usr/include/c++/9/tuple:969:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
969 | : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&)':
/usr/include/c++/9/tuple:979:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
979 | : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple(const std::tuple<_U1, _U2>&)':
/usr/include/c++/9/tuple:992:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
992 | : _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple:992:57: error: expected '>' before '&' token
992 | : _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { }
| ^
/usr/include/c++/9/tuple:992:57: error: expected '(' before '&' token
992 | : _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { }
| ^
| (
/usr/include/c++/9/tuple:992:58: error: expected primary-expression before '>' token
992 | : _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { }
| ^
/usr/include/c++/9/tuple:992:69: error: expected '{' at end of input
992 | : _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { }
| ^
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple(const std::tuple<_U1, _U2>&)':
/usr/include/c++/9/tuple:1001:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1001 | : _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple:1001:57: error: expected '>' before '&' token
1001 | : _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { }
| ^
/usr/include/c++/9/tuple:1001:57: error: expected '(' before '&' token
1001 | : _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { }
| ^
| (
/usr/include/c++/9/tuple:1001:58: error: expected primary-expression before '>' token
1001 | : _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { }
| ^
/usr/include/c++/9/tuple:1001:69: error: expected '{' at end of input
1001 | : _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { }
| ^
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple(std::tuple<_U1, _U2>&&)':
/usr/include/c++/9/tuple:1010:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1010 | : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple:1010:51: error: expected '>' before '&&' token
1010 | : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { }
| ^~
/usr/include/c++/9/tuple:1010:51: error: expected '(' before '&&' token
1010 | : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { }
| ^~
| (
/usr/include/c++/9/tuple:1010:53: error: expected identifier before '>' token
1010 | : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { }
| ^
/usr/include/c++/9/tuple:1010:64: error: expected '{' at end of input
1010 | : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { }
| ^
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple(std::tuple<_U1, _U2>&&)':
/usr/include/c++/9/tuple:1019:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1019 | : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple:1019:51: error: expected '>' before '&&' token
1019 | : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { }
| ^~
/usr/include/c++/9/tuple:1019:51: error: expected '(' before '&&' token
1019 | : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { }
| ^~
| (
/usr/include/c++/9/tuple:1019:53: error: expected identifier before '>' token
1019 | : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { }
| ^
/usr/include/c++/9/tuple:1019:64: error: expected '{' at end of input
1019 | : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { }
| ^
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple(const std::pair<_U1, _U2>&)':
/usr/include/c++/9/tuple:1028:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1028 | : _Inherited(__in.first, __in.second) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple(const std::pair<_U1, _U2>&)':
/usr/include/c++/9/tuple:1037:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1037 | : _Inherited(__in.first, __in.second) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple(std::pair<_U1, _U2>&&)':
/usr/include/c++/9/tuple:1046:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1046 | : _Inherited(std::forward<_U1>(__in.first),
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'constexpr std::tuple<_T1, _T2>::tuple(std::pair<_U1, _U2>&&)':
/usr/include/c++/9/tuple:1056:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1056 | : _Inherited(std::forward<_U1>(__in.first),
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&)':
/usr/include/c++/9/tuple:1063:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1063 | : _Inherited(__tag, __a) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const _T1&, const _T2&)':
/usr/include/c++/9/tuple:1075:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1075 | : _Inherited(__tag, __a, __a1, __a2) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const _T1&, const _T2&)':
/usr/include/c++/9/tuple:1087:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1087 | : _Inherited(__tag, __a, __a1, __a2) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, _U1&&, _U2&&)':
/usr/include/c++/9/tuple:1096:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1096 | : _Inherited(__tag, __a, std::forward<_U1>(__a1),
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, _U1&&, _U2&&)':
/usr/include/c++/9/tuple:1107:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1107 | : _Inherited(__tag, __a, std::forward<_U1>(__a1),
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const std::tuple<_T1, _T2>&)':
/usr/include/c++/9/tuple:1112:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1112 | : _Inherited(__tag, __a, static_cast<const _Inherited&>(__in)) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, std::tuple<_T1, _T2>&&)':
/usr/include/c++/9/tuple:1116:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1116 | : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const std::tuple<_U1, _U2>&)':
/usr/include/c++/9/tuple:1126:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1126 | : _Inherited(__tag, __a,
| ^~~~~~~~~~
/usr/include/c++/9/tuple:1127:57: error: expected '>' before '&' token
1127 | static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in))
| ^
/usr/include/c++/9/tuple:1127:57: error: expected '(' before '&' token
1127 | static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in))
| ^
| (
/usr/include/c++/9/tuple:1127:58: error: expected primary-expression before '>' token
1127 | static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in))
| ^
/usr/include/c++/9/tuple:1128:4: error: expected '{' at end of input
1128 | { }
| ^
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const std::tuple<_U1, _U2>&)':
/usr/include/c++/9/tuple:1138:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1138 | : _Inherited(__tag, __a,
| ^~~~~~~~~~
/usr/include/c++/9/tuple:1139:57: error: expected '>' before '&' token
1139 | static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in))
| ^
/usr/include/c++/9/tuple:1139:57: error: expected '(' before '&' token
1139 | static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in))
| ^
| (
/usr/include/c++/9/tuple:1139:58: error: expected primary-expression before '>' token
1139 | static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in))
| ^
/usr/include/c++/9/tuple:1140:4: error: expected '{' at end of input
1140 | { }
| ^
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, std::tuple<_U1, _U2>&&)':
/usr/include/c++/9/tuple:1149:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1149 | : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in))
| ^~~~~~~~~~
/usr/include/c++/9/tuple:1149:63: error: expected '>' before '&&' token
1149 | : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in))
| ^~
/usr/include/c++/9/tuple:1149:63: error: expected '(' before '&&' token
1149 | : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in))
| ^~
| (
/usr/include/c++/9/tuple:1149:65: error: expected identifier before '>' token
1149 | : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in))
| ^
/usr/include/c++/9/tuple:1150:4: error: expected '{' at end of input
1150 | { }
| ^
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, std::tuple<_U1, _U2>&&)':
/usr/include/c++/9/tuple:1160:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1160 | : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in))
| ^~~~~~~~~~
/usr/include/c++/9/tuple:1160:63: error: expected '>' before '&&' token
1160 | : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in))
| ^~
/usr/include/c++/9/tuple:1160:63: error: expected '(' before '&&' token
1160 | : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in))
| ^~
| (
/usr/include/c++/9/tuple:1160:65: error: expected identifier before '>' token
1160 | : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in))
| ^
/usr/include/c++/9/tuple:1161:4: error: expected '{' at end of input
1161 | { }
| ^
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const std::pair<_U1, _U2>&)':
/usr/include/c++/9/tuple:1171:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1171 | : _Inherited(__tag, __a, __in.first, __in.second) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const std::pair<_U1, _U2>&)':
/usr/include/c++/9/tuple:1181:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1181 | : _Inherited(__tag, __a, __in.first, __in.second) { }
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, std::pair<_U1, _U2>&&)':
/usr/include/c++/9/tuple:1190:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1190 | : _Inherited(__tag, __a, std::forward<_U1>(__in.first),
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In constructor 'std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, std::pair<_U1, _U2>&&)':
/usr/include/c++/9/tuple:1201:4: error: 'typedef int std::tuple<_T1, _T2>::_Inherited' is not a non-static data member of 'std::tuple<_T1, _T2>'
1201 | : _Inherited(__tag, __a, std::forward<_U1>(__in.first),
| ^~~~~~~~~~
/usr/include/c++/9/tuple: In member function 'void std::tuple<_T1, _T2>::swap(std::tuple<_T1, _T2>&)':
/usr/include/c++/9/tuple:1266:28: error: qualified-id in declaration before '(' token
1266 | { _Inherited::_M_swap(__in); }
| ^
/usr/include/c++/9/tuple: At global scope:
/usr/include/c++/9/tuple:1273:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1273 | : public integral_constant<std::size_t, sizeof...(_Elements)> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/unique_ptr.h:37,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/tuple:1273:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1273 | : public integral_constant<std::size_t, sizeof...(_Elements)> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/iomanip:39,
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/unique_ptr.h:37,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/tuple:1273:65: error: template argument 1 is invalid
1273 | : public integral_constant<std::size_t, sizeof...(_Elements)> { };
| ^
/usr/include/c++/9/tuple:1273:65: note: invalid template non-type parameter
/usr/include/c++/9/tuple:1284:17: error: 'std::size_t' has not been declared
1284 | template<std::size_t __i, typename _Head, typename... _Tail>
| ^~~~~~
/usr/include/c++/9/tuple:1285:26: error: '__i' was not declared in this scope
1285 | struct tuple_element<__i, tuple<_Head, _Tail...> >
| ^~~
/usr/include/c++/9/tuple:1285:54: error: template argument 1 is invalid
1285 | struct tuple_element<__i, tuple<_Head, _Tail...> >
| ^
/usr/include/c++/9/tuple:1286:21: error: '__i' was not declared in this scope
1286 | : tuple_element<__i - 1, tuple<_Tail...> > { };
| ^~~
/usr/include/c++/9/tuple:1286:46: error: template argument 1 is invalid
1286 | : tuple_element<__i - 1, tuple<_Tail...> > { };
| ^
/usr/include/c++/9/tuple:1307:17: error: 'std::size_t' has not been declared
1307 | template<std::size_t __i, typename _Head, typename... _Tail>
| ^~~~~~
/usr/include/c++/9/tuple:1309:30: error: '__i' was not declared in this scope
1309 | __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept
| ^~~
/usr/include/c++/9/tuple:1309:50: error: template argument 1 is invalid
1309 | __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept
| ^
/usr/include/c++/9/tuple: In function 'constexpr _Head& std::__get_helper(int&)':
/usr/include/c++/9/tuple:1310:26: error: '__i' was not declared in this scope; did you mean '__t'?
1310 | { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); }
| ^~~
| __t
/usr/include/c++/9/tuple:1310:46: error: template argument 1 is invalid
1310 | { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); }
| ^
/usr/include/c++/9/tuple: At global scope:
/usr/include/c++/9/tuple:1312:17: error: 'std::size_t' has not been declared
1312 | template<std::size_t __i, typename _Head, typename... _Tail>
| ^~~~~~
/usr/include/c++/9/tuple:1314:36: error: '__i' was not declared in this scope
1314 | __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept
| ^~~
/usr/include/c++/9/tuple:1314:56: error: template argument 1 is invalid
1314 | __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept
| ^
/usr/include/c++/9/tuple: In function 'constexpr const _Head& std::__get_helper(const int&)':
/usr/include/c++/9/tuple:1315:26: error: '__i' was not declared in this scope; did you mean '__t'?
1315 | { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); }
| ^~~
| __t
/usr/include/c++/9/tuple:1315:46: error: template argument 1 is invalid
1315 | { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); }
| ^
/usr/include/c++/9/tuple: At global scope:
/usr/include/c++/9/tuple:1318:17: error: 'std::size_t' has not been declared
1318 | template<std::size_t __i, typename... _Elements>
| ^~~~~~
/usr/include/c++/9/tuple:1319:15: error: '__tuple_element_t' does not name a type; did you mean 'tuple_element'?
1319 | constexpr __tuple_element_t<__i, tuple<_Elements...>>&
| ^~~~~~~~~~~~~~~~~
| tuple_element
/usr/include/c++/9/tuple:1324:17: error: 'std::size_t' has not been declared
1324 | template<std::size_t __i, typename... _Elements>
| ^~~~~~
/usr/include/c++/9/tuple:1325:21: error: '__tuple_element_t' does not name a type; did you mean 'tuple_element'?
1325 | constexpr const __tuple_element_t<__i, tuple<_Elements...>>&
| ^~~~~~~~~~~~~~~~~
| tuple_element
/usr/include/c++/9/tuple:1330:17: error: 'std::size_t' has not been declared
1330 | template<std::size_t __i, typename... _Elements>
| ^~~~~~
/usr/include/c++/9/tuple:1331:15: error: '__tuple_element_t' does not name a type; did you mean 'tuple_element'?
1331 | constexpr __tuple_element_t<__i, tuple<_Elements...>>&&
| ^~~~~~~~~~~~~~~~~
| tuple_element
/usr/include/c++/9/tuple:1339:17: error: 'std::size_t' has not been declared
1339 | template<std::size_t __i, typename... _Elements>
| ^~~~~~
/usr/include/c++/9/tuple:1340:21: error: '__tuple_element_t' does not name a type; did you mean 'tuple_element'?
1340 | constexpr const __tuple_element_t<__i, tuple<_Elements...>>&&
| ^~~~~~~~~~~~~~~~~
| tuple_element
/usr/include/c++/9/tuple:1491:18: error: '__tuple_element_t' was not declared in this scope; did you mean 'tuple_element'?
1491 | tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>,
| ^~~~~~~~~~~~~~~~~
| tuple_element
/usr/include/c++/9/tuple:1491:42: error: template argument 2 is invalid
1491 | tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>,
| ^~~~~~
/usr/include/c++/9/tuple:1491:48: error: wrong number of template arguments (2, should be 4)
1491 | tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>,
| ^~
/usr/include/c++/9/tuple:1486:12: note: provided for 'template<long unsigned int <anonymous>, class, class, long unsigned int <anonymous> > struct std::__make_tuple_impl'
1486 | struct __make_tuple_impl;
| ^~~~~~~~~~~~~~~~~
/usr/include/c++/9/tuple:1492:15: error: expected class-name before '>' token
1492 | _Tuple, _Nm>
| ^
/usr/include/c++/9/tuple:1492:15: error: expected '{' before '>' token
/usr/include/c++/9/tuple:1495:17: error: 'std::size_t' has not been declared
1495 | template<std::size_t _Nm, typename _Tuple, typename... _Tp>
| ^~~~~~
/usr/include/c++/9/tuple:1496:30: error: '_Nm' was not declared in this scope
1496 | struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm>
| ^~~
/usr/include/c++/9/tuple:1496:58: error: '_Nm' was not declared in this scope
1496 | struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm>
| ^~~
/usr/include/c++/9/tuple:1496:61: error: template argument 1 is invalid
1496 | struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm>
| ^
/usr/include/c++/9/tuple:1496:61: error: template argument 4 is invalid
/usr/include/c++/9/tuple:1567:32: error: 'std::size_t' has not been declared
1567 | template<typename _Ret, std::size_t... _Is, typename _Tp, typename... _Tpls>
| ^~~~~~
/usr/include/c++/9/tuple:1568:53: error: '_Is' was not declared in this scope
1568 | struct __tuple_concater<_Ret, std::_Index_tuple<_Is...>, _Tp, _Tpls...>
| ^~~
/usr/include/c++/9/tuple:1568:56: error: expected parameter pack before '...'
1568 | struct __tuple_concater<_Ret, std::_Index_tuple<_Is...>, _Tp, _Tpls...>
| ^~~
/usr/include/c++/9/tuple:1568:59: error: template argument 1 is invalid
1568 | struct __tuple_concater<_Ret, std::_Index_tuple<_Is...>, _Tp, _Tpls...>
| ^
/usr/include/c++/9/tuple:1568:75: error: template argument 2 is invalid
1568 | struct __tuple_concater<_Ret, std::_Index_tuple<_Is...>, _Tp, _Tpls...>
| ^
/usr/include/c++/9/tuple:1667:39: error: 'std::size_t' has not been declared
1667 | template<typename... _Args1, std::size_t... _Indexes1,
| ^~~~~~
/usr/include/c++/9/tuple:1668:39: error: 'std::size_t' has not been declared
1668 | typename... _Args2, std::size_t... _Indexes2>
| ^~~~~~
/usr/include/c++/9/tuple:1672:18: error: '_Indexes1' was not declared in this scope
1672 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>)
| ^~~~~~~~~
/usr/include/c++/9/tuple:1672:27: error: expected parameter pack before '...'
1672 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>)
| ^~~
/usr/include/c++/9/tuple:1672:30: error: template argument 1 is invalid
1672 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>)
| ^
/usr/include/c++/9/tuple:1672:46: error: '_Indexes2' was not declared in this scope
1672 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>)
| ^~~~~~~~~
/usr/include/c++/9/tuple:1672:55: error: expected parameter pack before '...'
1672 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>)
| ^~~
/usr/include/c++/9/tuple:1672:58: error: template argument 1 is invalid
1672 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>)
| ^
/usr/include/c++/9/tuple:1672:59: error: default argument for template parameter for class enclosing 'std::pair<_T1, _T2>::pair(std::tuple<_Args1 ...>&, std::tuple<_Args2 ...>&, int, int)'
1672 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>)
| ^
/usr/include/c++/9/tuple: In constructor 'std::pair<_T1, _T2>::pair(std::tuple<_Args1 ...>&, std::tuple<_Args2 ...>&, int, int)':
/usr/include/c++/9/tuple:1673:45: error: '_Indexes1' was not declared in this scope
1673 | : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...),
| ^~~~~~~~~
/usr/include/c++/9/tuple:1674:46: error: '_Indexes2' was not declared in this scope
1674 | second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...)
| ^~~~~~~~~
In file included from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from foo.cc:2:
/usr/include/c++/9/bits/locale_conv.h: At global scope:
/usr/include/c++/9/bits/locale_conv.h:471:7: error: 'streamsize' does not name a type
471 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:550:31: error: 'streamsize' has not been declared
550 | _M_put(const char* __p, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:600:20: error: 'streamsize' does not name a type
600 | static const streamsize _S_buffer_length = 32;
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:601:20: error: 'streamsize' does not name a type
601 | static const streamsize _S_putback_length = 3;
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:602:45: error: '_S_buffer_length' was not declared in this scope
602 | _Elem _M_put_area[_S_buffer_length];
| ^~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:603:45: error: '_S_buffer_length' was not declared in this scope
603 | _Elem _M_get_area[_S_buffer_length];
| ^~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:604:7: error: 'streamsize' does not name a type
604 | streamsize _M_unconv = 0;
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:605:25: error: '_S_buffer_length' was not declared in this scope
605 | char _M_get_buf[_S_buffer_length-_S_putback_length];
| ^~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:605:42: error: '_S_putback_length' was not declared in this scope
605 | char _M_get_buf[_S_buffer_length-_S_putback_length];
| ^~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h: In constructor 'std::wbuffer_convert<_Codecvt, _Elem, _Tr>::wbuffer_convert(std::streambuf*, _Codecvt*, std::wbuffer_convert<_Codecvt, _Elem, _Tr>::state_type)':
/usr/include/c++/9/bits/locale_conv.h:417:17: error: '_M_put_area' was not declared in this scope
417 | this->setp(_M_put_area, _M_put_area + _S_buffer_length);
| ^~~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:417:44: error: '_S_buffer_length' was not declared in this scope
417 | this->setp(_M_put_area, _M_put_area + _S_buffer_length);
| ^~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:418:17: error: '_M_get_area' was not declared in this scope
418 | this->setg(_M_get_area + _S_putback_length,
| ^~~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:418:31: error: '_S_putback_length' was not declared in this scope
418 | this->setg(_M_get_area + _S_putback_length,
| ^~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h: In member function 'bool std::wbuffer_convert<_Codecvt, _Elem, _Tr>::_M_conv_get()':
/usr/include/c++/9/bits/locale_conv.h:493:8: error: 'streamsize' does not name a type
493 | const streamsize __pb1 = this->gptr() - this->eback();
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:494:8: error: 'streamsize' does not name a type
494 | const streamsize __pb2 = _S_putback_length;
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:495:8: error: 'streamsize' does not name a type
495 | const streamsize __npb = std::min(__pb1, __pb2);
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:497:12: error: '_M_get_area' was not declared in this scope
497 | _Tr::move(_M_get_area + _S_putback_length - __npb,
| ^~~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:497:26: error: '_S_putback_length' was not declared in this scope
497 | _Tr::move(_M_get_area + _S_putback_length - __npb,
| ^~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:497:46: error: '__npb' was not declared in this scope
497 | _Tr::move(_M_get_area + _S_putback_length - __npb,
| ^~~~~
/usr/include/c++/9/bits/locale_conv.h:500:2: error: 'streamsize' was not declared in this scope
500 | streamsize __nbytes = sizeof(_M_get_buf) - _M_unconv;
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:501:2: error: '__nbytes' was not declared in this scope
501 | __nbytes = std::min(__nbytes, _M_buf->in_avail());
| ^~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:501:40: error: 'std::streambuf' {aka 'class std::basic_streambuf<char>'} has no member named 'in_avail'
501 | __nbytes = std::min(__nbytes, _M_buf->in_avail());
| ^~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:504:21: error: 'std::streambuf' {aka 'class std::basic_streambuf<char>'} has no member named 'sgetn'; did you mean 'sgetc'?
504 | __nbytes = _M_buf->sgetn(_M_get_buf + _M_unconv, __nbytes);
| ^~~~~
| sgetc
/usr/include/c++/9/bits/locale_conv.h:504:27: error: '_M_get_buf' was not declared in this scope; did you mean '_M_buf'?
504 | __nbytes = _M_buf->sgetn(_M_get_buf + _M_unconv, __nbytes);
| ^~~~~~~~~~
| _M_buf
/usr/include/c++/9/bits/locale_conv.h:504:40: error: '_M_unconv' was not declared in this scope
504 | __nbytes = _M_buf->sgetn(_M_get_buf + _M_unconv, __nbytes);
| ^~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:520:38: error: '_S_buffer_length' was not declared in this scope
520 | _Elem* __outend = _M_get_area + _S_buffer_length;
| ^~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h: In member function 'bool std::wbuffer_convert<_Codecvt, _Elem, _Tr>::_M_put(const char*, int)':
/usr/include/c++/9/bits/locale_conv.h:552:14: error: 'std::streambuf' {aka 'class std::basic_streambuf<char>'} has no member named 'sputn'; did you mean 'sputc'?
552 | if (_M_buf->sputn(__p, __n) < __n)
| ^~~~~
| sputc
/usr/include/c++/9/bits/locale_conv.h: In member function 'bool std::wbuffer_convert<_Codecvt, _Elem, _Tr>::_M_conv_put()':
/usr/include/c++/9/bits/locale_conv.h:563:8: error: 'streamsize' does not name a type
563 | const streamsize __pending = __last - __first;
| ^~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:566:27: error: '__pending' was not declared in this scope
566 | return _M_put(__first, __pending);
| ^~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:568:20: error: '_S_buffer_length' was not declared in this scope
568 | char __outbuf[2 * _S_buffer_length];
| ^~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:575:24: error: '__outbuf' was not declared in this scope
575 | char* __outnext = __outbuf;
| ^~~~~~~~
/usr/include/c++/9/bits/locale_conv.h:582:30: error: '__pending' was not declared in this scope
582 | return _M_put(__next, __pending);
| ^~~~~~~~~
In file included from /usr/include/c++/9/iostream:39,
from foo.cc:3:
/usr/include/c++/9/ostream: At global scope:
/usr/include/c++/9/ostream:317:38: error: 'streamsize' has not been declared
317 | _M_write(const char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/9/ostream:341:35: error: 'streamsize' has not been declared
341 | write(const char_type* __s, streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/9/ostream: In member function 'void std::basic_ostream<_CharT, _Traits>::_M_write(const char_type*, int)':
/usr/include/c++/9/ostream:319:8: error: 'streamsize' does not name a type
319 | const streamsize __put = this->rdbuf()->sputn(__s, __n);
| ^~~~~~~~~~
/usr/include/c++/9/ostream:320:6: error: '__put' was not declared in this scope; did you mean 'put'?
320 | if (__put != __n)
| ^~~~~
| put
/usr/include/c++/9/ostream: In function 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)':
/usr/include/c++/9/ostream:554:17: error: 'streamsize' does not name a type
554 | static_cast<streamsize>(_Traits::length(__s)));
| ^~~~~~~~~~
/usr/include/c++/9/ostream: In function 'std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)':
/usr/include/c++/9/ostream:571:17: error: 'streamsize' does not name a type
571 | static_cast<streamsize>(_Traits::length(__s)));
| ^~~~~~~~~~
In file included from /usr/include/c++/9/ostream:702,
from /usr/include/c++/9/iostream:39,
from foo.cc:3:
/usr/include/c++/9/bits/ostream.tcc: At global scope:
/usr/include/c++/9/bits/ostream.tcc:183:30: error: 'streamsize' has not been declared
183 | write(const _CharT* __s, streamsize __n)
| ^~~~~~~~~~
In file included from /usr/include/c++/9/iostream:40,
from foo.cc:3:
/usr/include/c++/9/istream:82:7: error: 'streamsize' does not name a type
82 | streamsize _M_gcount;
| ^~~~~~~~~~
/usr/include/c++/9/istream:268:7: error: 'streamsize' does not name a type
268 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/istream:343:27: error: 'streamsize' has not been declared
343 | get(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/usr/include/c++/9/istream:354:27: error: 'streamsize' has not been declared
354 | get(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/9/istream:416:31: error: 'streamsize' has not been declared
416 | getline(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/usr/include/c++/9/istream:427:31: error: 'streamsize' has not been declared
427 | getline(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/9/istream:451:7: error: expected ';' at end of member declaration
451 | ignore(streamsize __n, int_type __delim);
| ^~~~~~
| ;
/usr/include/c++/9/istream:451:24: error: expected ')' before '__n'
451 | ignore(streamsize __n, int_type __delim);
| ~ ^~~~
| )
/usr/include/c++/9/istream:454:7: error: expected ';' at end of member declaration
454 | ignore(streamsize __n);
| ^~~~~~
| ;
/usr/include/c++/9/istream:454:14: error: redeclaration of 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore'
454 | ignore(streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/9/istream:451:7: note: previous declaration 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore'
451 | ignore(streamsize __n, int_type __delim);
| ^~~~~~
/usr/include/c++/9/istream:454:24: error: expected ')' before '__n'
454 | ignore(streamsize __n);
| ~ ^~~~
| )
/usr/include/c++/9/istream:457:14: error: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore()' conflicts with a previous declaration
457 | ignore();
| ^
/usr/include/c++/9/istream:451:7: note: previous declaration 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore'
451 | ignore(streamsize __n, int_type __delim);
| ^~~~~~
/usr/include/c++/9/istream:486:28: error: 'streamsize' has not been declared
486 | read(char_type* __s, streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/9/istream:504:7: error: 'streamsize' does not name a type
504 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/istream: In constructor 'std::basic_istream<_CharT, _Traits>::basic_istream(std::basic_istream<_CharT, _Traits>::__streambuf_type*)':
/usr/include/c++/9/istream:94:9: error: class 'std::basic_istream<_CharT, _Traits>' does not have any field named '_M_gcount'
94 | : _M_gcount(streamsize(0))
| ^~~~~~~~~
/usr/include/c++/9/istream:94:19: error: there are no arguments to 'streamsize' that depend on a template parameter, so a declaration of 'streamsize' must be available [-fpermissive]
94 | : _M_gcount(streamsize(0))
| ^~~~~~~~~~
/usr/include/c++/9/istream:94:19: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/include/c++/9/istream: In destructor 'virtual std::basic_istream<_CharT, _Traits>::~basic_istream()':
/usr/include/c++/9/istream:104:9: error: '_M_gcount' was not declared in this scope
104 | { _M_gcount = streamsize(0); }
| ^~~~~~~~~
/usr/include/c++/9/istream:104:21: error: there are no arguments to 'streamsize' that depend on a template parameter, so a declaration of 'streamsize' must be available [-fpermissive]
104 | { _M_gcount = streamsize(0); }
| ^~~~~~~~~~
/usr/include/c++/9/istream: In constructor 'std::basic_istream<_CharT, _Traits>::basic_istream()':
/usr/include/c++/9/istream:607:9: error: class 'std::basic_istream<_CharT, _Traits>' does not have any field named '_M_gcount'
607 | : _M_gcount(streamsize(0))
| ^~~~~~~~~
/usr/include/c++/9/istream:607:19: error: there are no arguments to 'streamsize' that depend on a template parameter, so a declaration of 'streamsize' must be available [-fpermissive]
607 | : _M_gcount(streamsize(0))
| ^~~~~~~~~~
/usr/include/c++/9/istream: In constructor 'std::basic_istream<_CharT, _Traits>::basic_istream(std::basic_istream<_CharT, _Traits>&&)':
/usr/include/c++/9/istream:614:23: error: class 'std::basic_istream<_CharT, _Traits>' does not have any field named '_M_gcount'
614 | : __ios_type(), _M_gcount(__rhs._M_gcount)
| ^~~~~~~~~
/usr/include/c++/9/istream: In member function 'void std::basic_istream<_CharT, _Traits>::swap(std::basic_istream<_CharT, _Traits>&)':
/usr/include/c++/9/istream:635:12: error: '_M_gcount' was not declared in this scope
635 | std::swap(_M_gcount, __rhs._M_gcount);
| ^~~~~~~~~
/usr/include/c++/9/istream: At global scope:
/usr/include/c++/9/istream:648:29: error: 'streamsize' has not been declared
648 | getline(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/usr/include/c++/9/istream:652:5: error: 'std::basic_istream<char>& std::basic_istream<char>::ignore' is not a static data member of 'class std::basic_istream<char>'
652 | basic_istream<char>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/istream:653:12: error: 'streamsize' was not declared in this scope
653 | ignore(streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/9/istream:657:5: error: 'std::basic_istream<char>& std::basic_istream<char>::ignore' is not a static data member of 'class std::basic_istream<char>'
657 | basic_istream<char>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/istream:658:12: error: 'streamsize' was not declared in this scope
658 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~~~~
/usr/include/c++/9/istream:658:37: error: expected primary-expression before '__delim'
658 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~
/usr/include/c++/9/istream:658:44: error: expression list treated as compound expression in initializer [-fpermissive]
658 | ignore(streamsize __n, int_type __delim);
| ^
/usr/include/c++/9/istream:664:29: error: 'streamsize' has not been declared
664 | getline(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/usr/include/c++/9/istream:668:5: error: 'std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore' is not a static data member of 'class std::basic_istream<wchar_t>'
668 | basic_istream<wchar_t>::
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/istream:669:12: error: 'streamsize' was not declared in this scope
669 | ignore(streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/9/istream:673:5: error: 'std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore' is not a static data member of 'class std::basic_istream<wchar_t>'
673 | basic_istream<wchar_t>::
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/istream:674:12: error: 'streamsize' was not declared in this scope
674 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~~~~
/usr/include/c++/9/istream:674:37: error: expected primary-expression before '__delim'
674 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~
/usr/include/c++/9/istream:674:44: error: expression list treated as compound expression in initializer [-fpermissive]
674 | ignore(streamsize __n, int_type __delim);
| ^
In file included from /usr/include/c++/9/istream:991,
from /usr/include/c++/9/iostream:40,
from foo.cc:3:
/usr/include/c++/9/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::get()':
/usr/include/c++/9/bits/istream.tcc:248:7: error: '_M_gcount' was not declared in this scope
248 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/9/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::char_type&)':
/usr/include/c++/9/bits/istream.tcc:282:7: error: '_M_gcount' was not declared in this scope
282 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/9/bits/istream.tcc: At global scope:
/usr/include/c++/9/bits/istream.tcc:317:25: error: 'streamsize' has not been declared
317 | get(char_type* __s, streamsize __n, char_type __delim)
| ^~~~~~~~~~
/usr/include/c++/9/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::char_type*, int, std::basic_istream<_CharT, _Traits>::char_type)':
/usr/include/c++/9/bits/istream.tcc:319:7: error: '_M_gcount' was not declared in this scope
319 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/9/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::__streambuf_type&, std::basic_istream<_CharT, _Traits>::char_type)':
/usr/include/c++/9/bits/istream.tcc:366:7: error: '_M_gcount' was not declared in this scope
366 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/9/bits/istream.tcc: At global scope:
/usr/include/c++/9/bits/istream.tcc:408:29: error: 'streamsize' has not been declared
408 | getline(char_type* __s, streamsize __n, char_type __delim)
| ^~~~~~~~~~
/usr/include/c++/9/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(std::basic_istream<_CharT, _Traits>::char_type*, int, std::basic_istream<_CharT, _Traits>::char_type)':
/usr/include/c++/9/bits/istream.tcc:410:7: error: '_M_gcount' was not declared in this scope
410 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/9/bits/istream.tcc: At global scope:
/usr/include/c++/9/bits/istream.tcc:467:5: error: no declaration matches 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore()'
467 | basic_istream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/9/iostream:40,
from foo.cc:3:
/usr/include/c++/9/istream:451:7: note: candidate is: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore'
451 | ignore(streamsize __n, int_type __delim);
| ^~~~~~
/usr/include/c++/9/istream:58:11: note: 'class std::basic_istream<_CharT, _Traits>' defined here
58 | class basic_istream : virtual public basic_ios<_CharT, _Traits>
| ^~~~~~~~~~~~~
In file included from /usr/include/c++/9/istream:991,
from /usr/include/c++/9/iostream:40,
from foo.cc:3:
/usr/include/c++/9/bits/istream.tcc:500:5: error: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore' is not a static data member of 'class std::basic_istream<_CharT, _Traits>'
500 | basic_istream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/istream.tcc:501:12: error: template definition of non-template 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore'
501 | ignore(streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/9/bits/istream.tcc:501:12: error: 'streamsize' was not declared in this scope
/usr/include/c++/9/bits/istream.tcc:562:5: error: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore' is not a static data member of 'class std::basic_istream<_CharT, _Traits>'
562 | basic_istream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/istream.tcc:563:12: error: template definition of non-template 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore'
563 | ignore(streamsize __n, int_type __delim)
| ^~~~~~~~~~
/usr/include/c++/9/bits/istream.tcc:563:12: error: 'streamsize' was not declared in this scope
/usr/include/c++/9/bits/istream.tcc:563:37: error: expected primary-expression before '__delim'
563 | ignore(streamsize __n, int_type __delim)
| ^~~~~~~
/usr/include/c++/9/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::peek()':
/usr/include/c++/9/bits/istream.tcc:631:7: error: '_M_gcount' was not declared in this scope
631 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/9/bits/istream.tcc: At global scope:
/usr/include/c++/9/bits/istream.tcc:658:26: error: 'streamsize' has not been declared
658 | read(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/9/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::read(std::basic_istream<_CharT, _Traits>::char_type*, int)':
/usr/include/c++/9/bits/istream.tcc:660:7: error: '_M_gcount' was not declared in this scope
660 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/9/bits/istream.tcc: At global scope:
/usr/include/c++/9/bits/istream.tcc:685:5: error: 'streamsize' does not name a type
685 | streamsize
| ^~~~~~~~~~
/usr/include/c++/9/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::putback(std::basic_istream<_CharT, _Traits>::char_type)':
/usr/include/c++/9/bits/istream.tcc:723:7: error: '_M_gcount' was not declared in this scope
723 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/9/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::unget()':
/usr/include/c++/9/bits/istream.tcc:758:7: error: '_M_gcount' was not declared in this scope
758 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/9/bits/istream.tcc: In function 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)':
/usr/include/c++/9/bits/istream.tcc:971:7: error: 'streamsize' was not declared in this scope
971 | streamsize __extracted = 0;
| ^~~~~~~~~~
/usr/include/c++/9/bits/istream.tcc:979:18: error: expected ';' before '__num'
979 | streamsize __num = __in.width();
| ^~~~~~
| ;
/usr/include/c++/9/bits/istream.tcc:980:12: error: '__num' was not declared in this scope
980 | if (__num <= 0)
| ^~~~~
/usr/include/c++/9/bits/istream.tcc:989:15: error: '__extracted' was not declared in this scope
989 | while (__extracted < __num - 1
| ^~~~~~~~~~~
/usr/include/c++/9/bits/istream.tcc:989:29: error: '__num' was not declared in this scope
989 | while (__extracted < __num - 1
| ^~~~~
/usr/include/c++/9/bits/istream.tcc:1014:12: error: '__extracted' was not declared in this scope
1014 | if (!__extracted)
| ^~~~~~~~~~~
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/usr/include/c++/9/bits/basic_string.h: In instantiation of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
/usr/include/c++/9/system_error:189:40: required from here
/usr/include/c++/9/bits/basic_string.h:563:24: error: 'class std::__cxx11::basic_string<char>' has no member named '_M_allocated_capacity'; did you mean '_S_local_capacity'?
563 | _M_capacity(__str._M_allocated_capacity);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~
| _S_local_capacity
/usr/include/c++/9/bits/basic_string.h: In instantiation of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
/usr/include/c++/9/system_error:351:50: required from here
/usr/include/c++/9/bits/basic_string.h:6100:33: error: 'class std::__cxx11::basic_string<char>' has no member named 'size'
6100 | const auto __size = __lhs.size() + __rhs.size();
| ~~~~~~^~~~
/usr/include/c++/9/bits/basic_string.h:6100:48: error: 'class std::__cxx11::basic_string<char>' has no member named 'size'
6100 | const auto __size = __lhs.size() + __rhs.size();
| ~~~~~~^~~~
/usr/include/c++/9/bits/basic_string.h:6101:43: error: 'class std::__cxx11::basic_string<char>' has no member named 'capacity'
6101 | const bool __cond = (__size > __lhs.capacity()
| ~~~~~~^~~~~~~~
/usr/include/c++/9/bits/basic_string.h:6102:26: error: 'class std::__cxx11::basic_string<char>' has no member named 'capacity'
6102 | && __size <= __rhs.capacity());
| ~~~~~~^~~~~~~~
/usr/include/c++/9/bits/basic_string.h:6103:32: error: no matching function for call to 'std::__cxx11::basic_string<char>::insert(int, std::__cxx11::basic_string<char>&)'
6103 | return __cond ? std::move(__rhs.insert(0, __lhs))
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/basic_string.h:1578:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1578 | insert(const_iterator __p, _InputIterator __beg, _InputIterator __end)
| ^~~~~~
/usr/include/c++/9/bits/basic_string.h:1578:9: note: template argument deduction/substitution failed:
/usr/include/c++/9/bits/basic_string.h:6103:32: note: candidate expects 3 arguments, 2 provided
6103 | return __cond ? std::move(__rhs.insert(0, __lhs))
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/basic_string.h:1612:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::const_pointer = const char*]'
1612 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ^~~~~~
/usr/include/c++/9/bits/basic_string.h:1612:29: note: no known conversion for argument 1 from 'int' to 'std::__cxx11::basic_string<char>::const_iterator' {aka '__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >'}
1612 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/basic_string.h:1746:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::const_pointer = const char*]'
1746 | insert(__const_iterator __p, _CharT __c)
| ^~~~~~
/usr/include/c++/9/bits/basic_string.h:1746:31: note: no known conversion for argument 1 from 'int' to 'std::__cxx11::basic_string<char>::__const_iterator' {aka '__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >'}
1746 | insert(__const_iterator __p, _CharT __c)
| ~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/basic_string.h: In instantiation of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
/usr/include/c++/9/system_error:354:51: required from here
/usr/include/c++/9/bits/basic_string.h:6111:23: error: no matching function for call to 'std::__cxx11::basic_string<char>::insert(int, const char*&)'
6111 | { return std::move(__rhs.insert(0, __lhs)); }
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/basic_string.h:1578:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1578 | insert(const_iterator __p, _InputIterator __beg, _InputIterator __end)
| ^~~~~~
/usr/include/c++/9/bits/basic_string.h:1578:9: note: template argument deduction/substitution failed:
/usr/include/c++/9/bits/basic_string.h:6111:23: note: candidate expects 3 arguments, 2 provided
6111 | { return std::move(__rhs.insert(0, __lhs)); }
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/basic_string.h:1612:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::const_pointer = const char*]'
1612 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ^~~~~~
/usr/include/c++/9/bits/basic_string.h:1612:29: note: no known conversion for argument 1 from 'int' to 'std::__cxx11::basic_string<char>::const_iterator' {aka '__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >'}
1612 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/basic_string.h:1746:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::const_pointer = const char*]'
1746 | insert(__const_iterator __p, _CharT __c)
| ^~~~~~
/usr/include/c++/9/bits/basic_string.h:1746:31: note: no known conversion for argument 1 from 'int' to 'std::__cxx11::basic_string<char>::__const_iterator' {aka '__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >'}
1746 | insert(__const_iterator __p, _CharT __c)
| ~~~~~~~~~~~~~~~~~^~~
In file included from foo.cc:2:
/usr/include/c++/9/iomanip: In instantiation of 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, std::_Setprecision) [with _CharT = char; _Traits = std::char_traits<char>]':
foo.cc:12:28: required from here
/usr/include/c++/9/iomanip:210:12: error: 'class std::basic_ostream<char>' has no member named 'precision'
210 | __os.precision(__f._M_n);
| ~~~~~^~~~~~~~~
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/iomanip:40,
from foo.cc:2:
/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:658:9: required from 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/9/system_error:189:40: required from here
/usr/include/c++/9/bits/basic_string.h:232:15: error: using invalid field 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::<unnamed union>::_M_allocated_capacity'
232 | _M_destroy(_M_allocated_capacity);
| ^~~~~~~~~~~~~~~~~~~~~