错误解释
CompileError!
编译信息
main.cpp:1:1: error: \xe2\x80\x98include\xe2\x80\x99 does not name a type\n 1 | include <iostream>\n | ^~~~~~~\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:62,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/ext/type_traits.h:162:35: error: \xe2\x80\x98bool __gnu_cxx::__is_null_pointer\xe2\x80\x99 redeclared as different kind of entity\n 162 | __is_null_pointer(std::nullptr_t)\n | ^\n/usr/include/c++/11/ext/type_traits.h:157:5: note: previous declaration \xe2\x80\x98template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)\xe2\x80\x99\n 157 | __is_null_pointer(_Type)\n | ^~~~~~~~~~~~~~~~~\n/usr/include/c++/11/ext/type_traits.h:162:26: error: \xe2\x80\x98nullptr_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n 162 | __is_null_pointer(std::nullptr_t)\n | ^~~~~~~~~\nIn file included from /usr/include/c++/11/bits/move.h:57,\n from /usr/include/c++/11/bits/stl_pair.h:59,\n from /usr/include/c++/11/bits/stl_algobase.h:64,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/type_traits:227:27: error: \xe2\x80\x98size_t\xe2\x80\x99 has not been declared\n 227 | template <typename _Tp, size_t = sizeof(_Tp)>\n | ^~~~~~\n/usr/include/c++/11/type_traits:431:31: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 431 | template<typename _Tp, std::size_t _Size>\n | ^~~~~~\n/usr/include/c++/11/type_traits:432:25: error: \xe2\x80\x98_Size\xe2\x80\x99 was not declared in this scope\n 432 | struct is_array<_Tp[_Size]>\n | ^~~~~\n/usr/include/c++/11/type_traits:432:31: error: template argument 1 is invalid\n 432 | struct is_array<_Tp[_Size]>\n | ^\n/usr/include/c++/11/type_traits:537:42: error: \xe2\x80\x98nullptr_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n 537 | struct __is_null_pointer_helper<std::nullptr_t>\n | ^~~~~~~~~\n/usr/include/c++/11/type_traits:537:42: error: \xe2\x80\x98nullptr_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n/usr/include/c++/11/type_traits:537:51: error: template argument 1 is invalid\n 537 | struct __is_null_pointer_helper<std::nullptr_t>\n | ^\n/usr/include/c++/11/type_traits:1361:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n 1361 | : public integral_constant<std::size_t, alignof(_Tp)>\n | ^~~~~~\n/usr/include/c++/11/type_traits:1361:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n/usr/include/c++/11/type_traits:1361:57: error: template argument 1 is invalid\n 1361 | : public integral_constant<std::size_t, alignof(_Tp)>\n | ^\n/usr/include/c++/11/type_traits:1361:57: note: invalid template non-type parameter\n/usr/include/c++/11/type_traits:1370:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n 1370 | : public integral_constant<std::size_t, 0> { };\n | ^~~~~~\n/usr/include/c++/11/type_traits:1370:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n/usr/include/c++/11/type_traits:1370:46: error: template argument 1 is invalid\n 1370 | : public integral_constant<std::size_t, 0> { };\n | ^\n/usr/include/c++/11/type_traits:1370:46: note: invalid template non-type parameter\n/usr/include/c++/11/type_traits:1372:31: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 1372 | template<typename _Tp, std::size_t _Size>\n | ^~~~~~\n/usr/include/c++/11/type_traits:1373:21: error: \xe2\x80\x98_Size\xe2\x80\x99 was not declared in this scope\n 1373 | struct rank<_Tp[_Size]>\n | ^~~~~\n/usr/include/c++/11/type_traits:1373:27: error: template argument 1 is invalid\n 1373 | struct rank<_Tp[_Size]>\n | ^\n/usr/include/c++/11/type_traits:1374:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n 1374 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };\n | ^~~~~~\n/usr/include/c++/11/type_traits:1374:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n/usr/include/c++/11/type_traits:1374:65: error: template argument 1 is invalid\n 1374 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };\n | ^\n/usr/include/c++/11/type_traits:1374:65: note: invalid template non-type parameter\n/usr/include/c++/11/type_traits:1378:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n 1378 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };\n | ^~~~~~\n/usr/include/c++/11/type_traits:1378:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n/usr/include/c++/11/type_traits:1378:65: error: template argument 1 is invalid\n 1378 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };\n | ^\n/usr/include/c++/11/type_traits:1378:65: note: invalid template non-type parameter\n/usr/include/c++/11/type_traits:1383:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n 1383 | : public integral_constant<std::size_t, 0> { };\n | ^~~~~~\n/usr/include/c++/11/type_traits:1383:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n/usr/include/c++/11/type_traits:1383:46: error: template argument 1 is invalid\n 1383 | : public integral_constant<std::size_t, 0> { };\n | ^\n/usr/include/c++/11/type_traits:1383:46: note: invalid template non-type parameter\n/usr/include/c++/11/type_traits:1385:47: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 1385 | template<typename _Tp, unsigned _Uint, std::size_t _Size>\n | ^~~~~~\n/usr/include/c++/11/type_traits:1386:23: error: \xe2\x80\x98_Size\xe2\x80\x99 was not declared in this scope\n 1386 | struct extent<_Tp[_Size], _Uint>\n | ^~~~~\n/usr/include/c++/11/type_traits:1386:36: error: template argument 1 is invalid\n 1386 | struct extent<_Tp[_Size], _Uint>\n | ^\n/usr/include/c++/11/type_traits:1387:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n 1387 | : public integral_constant<std::size_t,\n | ^~~~~~\n/usr/include/c++/11/type_traits:1387:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n/usr/include/c++/11/type_traits:1388:45: error: \xe2\x80\x98_Size\xe2\x80\x99 was not declared in this scope\n 1388 | _Uint == 0 ? _Size : extent<_Tp,\n | ^~~~~\n/usr/include/c++/11/type_traits:1389:77: error: template argument 1 is invalid\n 1389 | _Uint - 1>::value>\n | ^\n/usr/include/c++/11/type_traits:1389:77: note: invalid template non-type parameter\n/usr/include/c++/11/type_traits:1394:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n 1394 | : public integral_constant<std::size_t,\n | ^~~~~~\n/usr/include/c++/11/type_traits:1394:37: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99\n/usr/include/c++/11/type_traits:1396:73: error: template argument 1 is invalid\n 1396 | _Uint - 1>::value>\n | ^\n/usr/include/c++/11/type_traits:1396:73: note: invalid template non-type parameter\n/usr/include/c++/11/type_traits:1759:26: error: \xe2\x80\x98size_t\xe2\x80\x99 does not name a type\n 1759 | { static constexpr size_t __size = sizeof(_Tp); };\n | ^~~~~~\nIn file included from /usr/include/c++/11/bits/move.h:57,\n from /usr/include/c++/11/bits/stl_pair.h:59,\n from /usr/include/c++/11/bits/stl_algobase.h:64,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/type_traits:1:1: note: \xe2\x80\x98size_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n +++ |+#include <cstddef>\n 1 | // C++11 <type_traits> -*- C++ -*-\nIn file included from /usr/include/c++/11/bits/move.h:57,\n from /usr/include/c++/11/bits/stl_pair.h:59,\n from /usr/include/c++/11/bits/stl_algobase.h:64,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/type_traits:1761:14: error: \xe2\x80\x98size_t\xe2\x80\x99 has not been declared\n 1761 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>\n | ^~~~~~\n/usr/include/c++/11/type_traits:1761:48: error: \xe2\x80\x98_Sz\xe2\x80\x99 was not declared in this scope\n 1761 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>\n | ^~~\n/usr/include/c++/11/type_traits:1762:14: error: no default argument for \xe2\x80\x98_Tp\xe2\x80\x99\n 1762 | struct __select;\n | ^~~~~~~~\n/usr/include/c++/11/type_traits:1764:14: error: \xe2\x80\x98size_t\xe2\x80\x99 has not been declared\n 1764 | template<size_t _Sz, typename _Uint, typename... _UInts>\n | ^~~~~~\n/usr/include/c++/11/type_traits:1765:23: error: \xe2\x80\x98_Sz\xe2\x80\x99 was not declared in this scope\n 1765 | struct __select<_Sz, _List<_Uint, _UInts...>, true>\n | ^~~\n/usr/include/c++/11/type_traits:1765:57: error: template argument 1 is invalid\n 1765 | struct __select<_Sz, _List<_Uint, _UInts...>, true>\n | ^\n/usr/include/c++/11/type_traits:1768:14: error: \xe2\x80\x98size_t\xe2\x80\x99 has not been declared\n 1768 | template<size_t _Sz, typename _Uint, typename... _UInts>\n | ^~~~~~\n/usr/include/c++/11/type_traits:1769:23: error: \xe2\x80\x98_Sz\xe2\x80\x99 was not declared in this scope\n 1769 | struct __select<_Sz, _List<_Uint, _UInts...>, false>\n | ^~~\n/usr/include/c++/11/type_traits:1769:58: error: template argument 1 is invalid\n 1769 | struct __select<_Sz, _List<_Uint, _UInts...>, false>\n | ^\n/usr/include/c++/11/type_traits:1770:18: error: \xe2\x80\x98_Sz\xe2\x80\x99 was not declared in this scope\n 1770 | : __select<_Sz, _List<_UInts...>>\n | ^~~\n/usr/include/c++/11/type_traits:1770:38: error: template argument 1 is invalid\n 1770 | : __select<_Sz, _List<_UInts...>>\n | ^~\n/usr/include/c++/11/type_traits:1761:60: error: \xe2\x80\x98__size\xe2\x80\x99 is not a member of \xe2\x80\x98std::__make_unsigned_selector_base::_List<unsigned char, short unsigned int, unsigned int, long unsigned int, long long unsigned int>\xe2\x80\x99\n 1761 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>\n | ^~~~~~\n/usr/include/c++/11/type_traits:1783:68: error: template argument 3 is invalid\n 1783 | using __unsigned_type = typename __select<sizeof(_Tp), _UInts>::__type;\n | ^\n/usr/include/c++/11/type_traits:1787:47: error: \xe2\x80\x98__unsigned_type\xe2\x80\x99 was not declared in this scope\n 1787 | = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;\n | ^~~~~~~~~~~~~~~\n/usr/include/c++/11/type_traits:1787:62: error: template argument 2 is invalid\n 1787 | = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;\n | ^\n/usr/include/c++/11/type_traits:1799:68: error: \xe2\x80\x98__type\xe2\x80\x99 in \xe2\x80\x98class std::__make_unsigned_selector<wchar_t, false, true>\xe2\x80\x99 does not name a type\n 1799 | = typename __make_unsigned_selector<wchar_t, false, true>::__type;\n | ^~~~~~\n/usr/include/c++/11/type_traits:1816:69: error: \xe2\x80\x98__type\xe2\x80\x99 in \xe2\x80\x98class std::__make_unsigned_selector<char16_t, false, true>\xe2\x80\x99 does not name a type\n 1816 | = typename __make_unsigned_selector<char16_t, false, true>::__type;\n | ^~~~~~\n/usr/include/c++/11/type_traits:1823:69: error: \xe2\x80\x98__type\xe2\x80\x99 in \xe2\x80\x98class std::__make_unsigned_selector<char32_t, false, true>\xe2\x80\x99 does not name a type\n 1823 | = typename __make_unsigned_selector<char32_t, false, true>::__type;\n | ^~~~~~\n/usr/include/c++/11/type_traits: In instantiation of \xe2\x80\x98class std::__make_unsigned_selector<wchar_t, true, false>\xe2\x80\x99:\n/usr/include/c++/11/type_traits:1912:62: required from \xe2\x80\x98class std::__make_signed_selector<wchar_t, false, true>\xe2\x80\x99\n/usr/include/c++/11/type_traits:1927:57: required from here\n/usr/include/c++/11/type_traits:1744:13: error: no type named \xe2\x80\x98__type\xe2\x80\x99 in \xe2\x80\x98struct std::__make_unsigned<wchar_t>\xe2\x80\x99\n 1744 | using __unsigned_type\n | ^~~~~~~~~~~~~~~\n/usr/include/c++/11/type_traits:1748:13: error: no type named \xe2\x80\x98__type\xe2\x80\x99 in \xe2\x80\x98struct std::__make_unsigned<wchar_t>\xe2\x80\x99\n 1748 | using __type\n | ^~~~~~\n/usr/include/c++/11/type_traits:1927:66: error: invalid combination of multiple type-specifiers\n 1927 | = typename __make_signed_selector<wchar_t, false, true>::__type;\n | ^~~~~~\n/usr/include/c++/11/type_traits: In instantiation of \xe2\x80\x98class std::__make_unsigned_selector<char16_t, true, false>\xe2\x80\x99:\n/usr/include/c++/11/type_traits:1912:62: required from \xe2\x80\x98class std::__make_signed_selector<char16_t, false, true>\xe2\x80\x99\n/usr/include/c++/11/type_traits:1944:58: required from here\n/usr/include/c++/11/type_traits:1744:13: error: no type named \xe2\x80\x98__type\xe2\x80\x99 in \xe2\x80\x98struct std::__make_unsigned<char16_t>\xe2\x80\x99\n 1744 | using __unsigned_type\n | ^~~~~~~~~~~~~~~\n/usr/include/c++/11/type_traits:1748:13: error: no type named \xe2\x80\x98__type\xe2\x80\x99 in \xe2\x80\x98struct std::__make_unsigned<char16_t>\xe2\x80\x99\n 1748 | using __type\n | ^~~~~~\n/usr/include/c++/11/type_traits:1944:67: error: invalid combination of multiple type-specifiers\n 1944 | = typename __make_signed_selector<char16_t, false, true>::__type;\n | ^~~~~~\n/usr/include/c++/11/type_traits: In instantiation of \xe2\x80\x98class std::__make_unsigned_selector<char32_t, true, false>\xe2\x80\x99:\n/usr/include/c++/11/type_traits:1912:62: required from \xe2\x80\x98class std::__make_signed_selector<char32_t, false, true>\xe2\x80\x99\n/usr/include/c++/11/type_traits:1951:58: required from here\n/usr/include/c++/11/type_traits:1744:13: error: no type named \xe2\x80\x98__type\xe2\x80\x99 in \xe2\x80\x98struct std::__make_unsigned<char32_t>\xe2\x80\x99\n 1744 | using __unsigned_type\n | ^~~~~~~~~~~~~~~\n/usr/include/c++/11/type_traits:1748:13: error: no type named \xe2\x80\x98__type\xe2\x80\x99 in \xe2\x80\x98struct std::__make_unsigned<char32_t>\xe2\x80\x99\n 1748 | using __type\n | ^~~~~~\n/usr/include/c++/11/type_traits:1951:67: error: invalid combination of multiple type-specifiers\n 1951 | = typename __make_signed_selector<char32_t, false, true>::__type;\n | ^~~~~~\n/usr/include/c++/11/type_traits:1984:31: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 1984 | template<typename _Tp, std::size_t _Size>\n | ^~~~~~\n/usr/include/c++/11/type_traits:1985:30: error: \xe2\x80\x98_Size\xe2\x80\x99 was not declared in this scope\n 1985 | struct remove_extent<_Tp[_Size]>\n | ^~~~~\n/usr/include/c++/11/type_traits:1985:36: error: template argument 1 is invalid\n 1985 | struct remove_extent<_Tp[_Size]>\n | ^\n/usr/include/c++/11/type_traits:1997:31: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 1997 | template<typename _Tp, std::size_t _Size>\n | ^~~~~~\n/usr/include/c++/11/type_traits:1998:35: error: \xe2\x80\x98_Size\xe2\x80\x99 was not declared in this scope\n 1998 | struct remove_all_extents<_Tp[_Size]>\n | ^~~~~\n/usr/include/c++/11/type_traits:1998:41: error: template argument 1 is invalid\n 1998 | struct remove_all_extents<_Tp[_Size]>\n | ^\n/usr/include/c++/11/type_traits:2056:17: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 2056 | template<std::size_t _Len>\n | ^~~~~~\n/usr/include/c++/11/type_traits:2061:30: error: \xe2\x80\x98_Len\xe2\x80\x99 was not declared in this scope\n 2061 | unsigned char __data[_Len];\n | ^~~~\n/usr/include/c++/11/type_traits:2076:17: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 2076 | template<std::size_t _Len, std::size_t _Align =\n | ^~~~~~\n/usr/include/c++/11/type_traits:2076:35: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 2076 | template<std::size_t _Len, std::size_t _Align =\n | ^~~~~~\n/usr/include/c++/11/type_traits:2077:55: error: \xe2\x80\x98_Len\xe2\x80\x99 was not declared in this scope\n 2077 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>\n | ^~~~\n/usr/include/c++/11/type_traits:2077:59: error: template argument 1 is invalid\n 2077 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>\n | ^\n/usr/include/c++/11/type_traits:2082:30: error: \xe2\x80\x98_Len\xe2\x80\x99 was not declared in this scope\n 2082 | unsigned char __data[_Len];\n | ^~~~\n/usr/include/c++/11/type_traits:2083:44: error: \xe2\x80\x98_Align\xe2\x80\x99 was not declared in this scope\n 2083 | struct __attribute__((__aligned__((_Align)))) { } __align;\n | ^~~~~~\n/usr/include/c++/11/type_traits:2090:20: error: \xe2\x80\x98size_t\xe2\x80\x99 does not name a type\n 2090 | static const size_t _S_alignment = 0;\n | ^~~~~~\n/usr/include/c++/11/type_traits:2090:20: note: \xe2\x80\x98size_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n/usr/include/c++/11/type_traits:2091:20: error: \xe2\x80\x98size_t\xe2\x80\x99 does not name a type\n 2091 | static const size_t _S_size = 0;\n | ^~~~~~\n/usr/include/c++/11/type_traits:2091:20: note: \xe2\x80\x98size_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n/usr/include/c++/11/type_traits:2097:20: error: \xe2\x80\x98size_t\xe2\x80\x99 does not name a type\n 2097 | static const size_t _S_alignment =\n | ^~~~~~\n/usr/include/c++/11/type_traits:2097:20: note: \xe2\x80\x98size_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n/usr/include/c++/11/type_traits:2100:20: error: \xe2\x80\x98size_t\xe2\x80\x99 does not name a type\n 2100 | static const size_t _S_size =\n | ^~~~~~\n/usr/include/c++/11/type_traits:2100:20: note: \xe2\x80\x98size_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n/usr/include/c++/11/type_traits:2115:13: error: \xe2\x80\x98size_t\xe2\x80\x99 has not been declared\n 2115 | template <size_t _Len, typename... _Types>\n | ^~~~~~\n/usr/include/c++/11/type_traits:2122:20: error: \xe2\x80\x98size_t\xe2\x80\x99 does not name a type\n 2122 | static const size_t _S_len = _Len > __strictest::_S_size\n | ^~~~~~\n/usr/include/c++/11/type_traits:2122:20: note: \xe2\x80\x98size_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n/usr/include/c++/11/type_traits:2126:20: error: \xe2\x80\x98size_t\xe2\x80\x99 does not name a type\n 2126 | static const size_t alignment_value = __strictest::_S_alignment;\n | ^~~~~~\n/usr/include/c++/11/type_traits:2126:20: note: \xe2\x80\x98size_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n/usr/include/c++/11/type_traits:2128:40: error: \xe2\x80\x98_S_len\xe2\x80\x99 was not declared in this scope\n 2128 | typedef typename aligned_storage<_S_len, alignment_value>::type type;\n | ^~~~~~\n/usr/include/c++/11/type_traits:2128:48: error: \xe2\x80\x98alignment_value\xe2\x80\x99 was not declared in this scope; did you mean \xe2\x80\x98alignment_of\xe2\x80\x99?\n 2128 | typedef typename aligned_storage<_S_len, alignment_value>::type type;\n | ^~~~~~~~~~~~~~~\n | alignment_of\n/usr/include/c++/11/type_traits:2128:63: error: template argument 1 is invalid\n 2128 | typedef typename aligned_storage<_S_len, alignment_value>::type type;\n | ^\n/usr/include/c++/11/type_traits:2128:63: error: template argument 2 is invalid\n/usr/include/c++/11/type_traits:2131:13: error: \xe2\x80\x98size_t\xe2\x80\x99 has not been declared\n 2131 | template <size_t _Len, typename... _Types>\n | ^~~~~~\n/usr/include/c++/11/type_traits:2132:11: error: \xe2\x80\x98size_t\xe2\x80\x99 does not name a type\n 2132 | const size_t aligned_union<_Len, _Types...>::alignment_value;\n | ^~~~~~\n/usr/include/c++/11/type_traits:2132:11: note: \xe2\x80\x98size_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n/usr/include/c++/11/type_traits:2680:26: error: \xe2\x80\x98size_t\xe2\x80\x99 has not been declared\n 2680 | template<typename _Tp, size_t _Nm>\n | ^~~~~~\n/usr/include/c++/11/type_traits:2684:21: error: \xe2\x80\x98_Nm\xe2\x80\x99 was not declared in this scope\n 2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^~~\n/usr/include/c++/11/type_traits:2684:24: error: \xe2\x80\x98template<class _Tp, <declaration error> > std::__enable_if_t<std::__is_swappable<_Tp>::value> std::swap\xe2\x80\x99 conflicts with a previous declaration\n 2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^\n/usr/include/c++/11/type_traits:2676:5: note: previous declaration \xe2\x80\x98std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&)\xe2\x80\x99\n 2676 | swap(_Tp&, _Tp&)\n | ^~~~\n/usr/include/c++/11/type_traits:2684:16: error: \xe2\x80\x98__a\xe2\x80\x99 was not declared in this scope\n 2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^~~\n/usr/include/c++/11/type_traits:2684:21: error: \xe2\x80\x98_Nm\xe2\x80\x99 was not declared in this scope\n 2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^~~\n/usr/include/c++/11/type_traits:2684:33: error: \xe2\x80\x98__b\xe2\x80\x99 was not declared in this scope\n 2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^~~\n/usr/include/c++/11/type_traits:2684:38: error: \xe2\x80\x98_Nm\xe2\x80\x99 was not declared in this scope\n 2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^~~\n/usr/include/c++/11/type_traits:2684:43: error: expected \xe2\x80\x98;\xe2\x80\x99 before \xe2\x80\x98noexcept\xe2\x80\x99\n 2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^\n | ;\n 2685 | noexcept(__is_nothrow_swappable<_Tp>::value);\n | ~~~~~~~~ \nIn file included from /usr/include/c++/11/bits/stl_pair.h:59,\n from /usr/include/c++/11/bits/stl_algobase.h:64,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/bits/move.h:212:26: error: \xe2\x80\x98size_t\xe2\x80\x99 has not been declared\n 212 | template<typename _Tp, size_t _Nm>\n | ^~~~~~\n/usr/include/c++/11/bits/move.h:220:21: error: \xe2\x80\x98_Nm\xe2\x80\x99 was not declared in this scope\n 220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^~~\n/usr/include/c++/11/bits/move.h:220:24: error: \xe2\x80\x98template<class _Tp, <declaration error> > typename std::enable_if<std::__is_swappable<_Tp>::value, void>::type std::swap\xe2\x80\x99 conflicts with a previous declaration\n 220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^\n/usr/include/c++/11/bits/move.h:196:5: note: previous declaration \xe2\x80\x98std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&)\xe2\x80\x99\n 196 | swap(_Tp& __a, _Tp& __b)\n | ^~~~\n/usr/include/c++/11/bits/move.h:220:16: error: \xe2\x80\x98__a\xe2\x80\x99 was not declared in this scope\n 220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^~~\n/usr/include/c++/11/bits/move.h:220:21: error: \xe2\x80\x98_Nm\xe2\x80\x99 was not declared in this scope\n 220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^~~\n/usr/include/c++/11/bits/move.h:220:33: error: \xe2\x80\x98__b\xe2\x80\x99 was not declared in this scope\n 220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^~~\n/usr/include/c++/11/bits/move.h:220:38: error: \xe2\x80\x98_Nm\xe2\x80\x99 was not declared in this scope\n 220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^~~\n/usr/include/c++/11/bits/move.h:220:43: error: expected \xe2\x80\x98;\xe2\x80\x99 before \xe2\x80\x98noexcept\xe2\x80\x99\n 220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])\n | ^\n | ;\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:64,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/bits/stl_pair.h:92:12: error: \xe2\x80\x98size_t\xe2\x80\x99 has not been declared\n 92 | template<size_t...>\n | ^~~~~~\n/usr/include/c++/11/bits/stl_pair.h:449:36: error: \xe2\x80\x98size_t\xe2\x80\x99 has not been declared\n 449 | template<typename... _Args1, size_t... _Indexes1,\n | ^~~~~~\n/usr/include/c++/11/bits/stl_pair.h:450:36: error: \xe2\x80\x98size_t\xe2\x80\x99 has not been declared\n 450 | typename... _Args2, size_t... _Indexes2>\n | ^~~~~~\n/usr/include/c++/11/bits/stl_pair.h:453:27: error: \xe2\x80\x98_Indexes1\xe2\x80\x99 was not declared in this scope\n 453 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);\n | ^~~~~~~~~\n/usr/include/c++/11/bits/stl_pair.h:453:36: error: expected parameter pack before \xe2\x80\x98...\xe2\x80\x99\n 453 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);\n | ^~~\n/usr/include/c++/11/bits/stl_pair.h:453:39: error: template argument 1 is invalid\n 453 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);\n | ^\n/usr/include/c++/11/bits/stl_pair.h:453:55: error: \xe2\x80\x98_Indexes2\xe2\x80\x99 was not declared in this scope\n 453 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);\n | ^~~~~~~~~\n/usr/include/c++/11/bits/stl_pair.h:453:64: error: expected parameter pack before \xe2\x80\x98...\xe2\x80\x99\n 453 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);\n | ^~~\n/usr/include/c++/11/bits/stl_pair.h:453:67: error: template argument 1 is invalid\n 453 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);\n | ^\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:65,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/bits/stl_iterator_base_types.h:125:67: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 does not name a type\n 125 | template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,\n | ^~~~~~~~~\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:65,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/bits/stl_iterator_base_types.h:1:1: note: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n +++ |+#include <cstddef>\n 1 | // Types used in iterator implementation -*- C++ -*-\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:65,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/bits/stl_iterator_base_types.h:214:15: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 does not name a type\n 214 | typedef ptrdiff_t difference_type;\n | ^~~~~~~~~\n/usr/include/c++/11/bits/stl_iterator_base_types.h:214:15: note: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n/usr/include/c++/11/bits/stl_iterator_base_types.h:225:15: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 does not name a type\n 225 | typedef ptrdiff_t difference_type;\n | ^~~~~~~~~\n/usr/include/c++/11/bits/stl_iterator_base_types.h:225:15: note: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:66,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/bits/stl_iterator_base_funcs.h:110:5: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 does not name a type\n 110 | ptrdiff_t\n | ^~~~~~~~~\n/usr/include/c++/11/bits/stl_iterator_base_funcs.h:66:1: note: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n 65 | #include <debug/assertions.h>\n +++ |+#include <cstddef>\n 66 | \n/usr/include/c++/11/bits/stl_iterator_base_funcs.h:116:5: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 does not name a type\n 116 | ptrdiff_t\n | ^~~~~~~~~\n/usr/include/c++/11/bits/stl_iterator_base_funcs.h:116:5: note: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\nIn file included from /usr/include/c++/11/bits/stl_iterator.h:67,\n from /usr/include/c++/11/bits/stl_algobase.h:67,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/bits/ptr_traits.h:119:27: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 was not declared in this scope\n 119 | = __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;\n | ^~~~~~~~~\n/usr/include/c++/11/bits/ptr_traits.h:1:1: note: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n +++ |+#include <cstddef>\n 1 | // Pointer Traits -*- C++ -*-\n/usr/include/c++/11/bits/ptr_traits.h:119:61: error: template argument 1 is invalid\n 119 | = __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;\n | ^\n/usr/include/c++/11/bits/ptr_traits.h:138:15: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 does not name a type\n 138 | typedef ptrdiff_t difference_type;\n | ^~~~~~~~~\n/usr/include/c++/11/bits/ptr_traits.h:138:15: note: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\nIn file included from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/bits/stl_algobase.h:90:56: error: \xe2\x80\x98size_t\xe2\x80\x99 has not been declared\n 90 | __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num)\n | ^~~~~~\n/usr/include/c++/11/bits/stl_algobase.h: In static member function \xe2\x80\x98static _Tp* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(const _Tp*, const _Tp*, _Tp*)\xe2\x80\x99:\n/usr/include/c++/11/bits/stl_algobase.h:429:17: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 does not name a type\n 429 | const ptrdiff_t _Num = __last - __first;\n | ^~~~~~~~~\n/usr/include/c++/11/bits/stl_algobase.h:72:1: note: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n 71 | #include <bits/predefined_ops.h>\n +++ |+#include <cstddef>\n 72 | #if __cplusplus >= 201103L\n/usr/include/c++/11/bits/stl_algobase.h:430:15: error: \xe2\x80\x98_Num\xe2\x80\x99 was not declared in this scope\n 430 | if (_Num)\n | ^~~~\n/usr/include/c++/11/bits/stl_algobase.h:432:29: error: \xe2\x80\x98_Num\xe2\x80\x99 was not declared in this scope\n 432 | return __result + _Num;\n | ^~~~\n/usr/include/c++/11/bits/stl_algobase.h: In static member function \xe2\x80\x98static _Tp* std::__copy_move_backward<_IsMove, true, std::random_access_iterator_tag>::__copy_move_b(const _Tp*, const _Tp*, _Tp*)\xe2\x80\x99:\n/usr/include/c++/11/bits/stl_algobase.h:740:17: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 does not name a type\n 740 | const ptrdiff_t _Num = __last - __first;\n | ^~~~~~~~~\n/usr/include/c++/11/bits/stl_algobase.h:740:17: note: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n/usr/include/c++/11/bits/stl_algobase.h:741:15: error: \xe2\x80\x98_Num\xe2\x80\x99 was not declared in this scope\n 741 | if (_Num)\n | ^~~~\n/usr/include/c++/11/bits/stl_algobase.h:743:29: error: \xe2\x80\x98_Num\xe2\x80\x99 was not declared in this scope\n 743 | return __result - _Num;\n | ^~~~\n/usr/include/c++/11/bits/stl_algobase.h: In function \xe2\x80\x98typename __gnu_cxx::__enable_if<std::__is_byte<_Tp>::__value, void>::__type std::__fill_a1(_Tp*, _Tp*, const _Tp&)\xe2\x80\x99:\n/usr/include/c++/11/bits/stl_algobase.h:943:24: error: expected initializer before \xe2\x80\x98__len\xe2\x80\x99\n 943 | if (const size_t __len = __last - __first)\n | ^~~~~\n/usr/include/c++/11/bits/stl_algobase.h:943:23: error: expected \xe2\x80\x98)\xe2\x80\x99 before \xe2\x80\x98__len\xe2\x80\x99\n 943 | if (const size_t __len = __last - __first)\n | ~ ^~~~~~\n | )\n/usr/include/c++/11/bits/stl_algobase.h:944:70: error: \xe2\x80\x98__len\xe2\x80\x99 was not declared in this scope\n 944 | __builtin_memset(__first, static_cast<unsigned char>(__tmp), __len);\n | ^~~~~\n/usr/include/c++/11/bits/stl_algobase.h: In static member function \xe2\x80\x98static bool std::__equal<true>::equal(const _Tp*, const _Tp*, const _Tp*)\xe2\x80\x99:\n/usr/include/c++/11/bits/stl_algobase.h:1176:28: error: expected initializer before \xe2\x80\x98__len\xe2\x80\x99\n 1176 | if (const size_t __len = (__last1 - __first1))\n | ^~~~~\n/usr/include/c++/11/bits/stl_algobase.h:1176:28: error: expected \xe2\x80\x98)\xe2\x80\x99 before \xe2\x80\x98__len\xe2\x80\x99\n/usr/include/c++/11/bits/stl_algobase.h:1176:14: note: to match this \xe2\x80\x98(\xe2\x80\x99\n 1176 | if (const size_t __len = (__last1 - __first1))\n | ^\n/usr/include/c++/11/bits/stl_algobase.h:1177:55: error: \xe2\x80\x98__len\xe2\x80\x99 was not declared in this scope\n 1177 | return !std::__memcmp(__first1, __first2, __len);\n | ^~~~~\n/usr/include/c++/11/bits/stl_algobase.h: At global scope:\n/usr/include/c++/11/bits/stl_algobase.h:1349:16: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 does not name a type\n 1349 | static ptrdiff_t\n | ^~~~~~~~~\n/usr/include/c++/11/bits/stl_algobase.h:1349:16: note: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\nIn file included from /usr/include/c++/11/bits/char_traits.h:40,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/bits/postypes.h:98:11: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 does not name a type\n 98 | typedef ptrdiff_t streamsize; // Signed integral type\n | ^~~~~~~~~\n/usr/include/c++/11/bits/postypes.h:41:1: note: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n 40 | #include <cwchar> // For mbstate_t\n +++ |+#include <cstddef>\n 41 | \nIn file included from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/bits/char_traits.h:114:66: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 114 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);\n | ^~~~~~\n/usr/include/c++/11/bits/char_traits.h:116:40: error: \xe2\x80\x98size_t\xe2\x80\x99 in namespace \xe2\x80\x98std\xe2\x80\x99 does not name a type\n 116 | static _GLIBCXX14_CONSTEXPR std::size_t\n | ^~~~~~\n/usr/include/c++/11/bits/char_traits.h:120:39: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 120 | find(const char_type* __s, std::size_t __n, const char_type& __a);\n | ^~~~~~\n/usr/include/c++/11/bits/char_traits.h:123:57: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 123 | move(char_type* __s1, const char_type* __s2, std::size_t __n);\n | ^~~~~~\n/usr/include/c++/11/bits/char_traits.h:126:57: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 126 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);\n | ^~~~~~\n/usr/include/c++/11/bits/char_traits.h:129:35: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 129 | assign(char_type* __s, std::size_t __n, char_type __a);\n | ^~~~~~\n/usr/include/c++/11/bits/char_traits.h:155:64: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 155 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)\n | ^~~~~~\n/usr/include/c++/11/bits/char_traits.h: In static member function \xe2\x80\x98static int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)\xe2\x80\x99:\n/usr/include/c++/11/bits/char_traits.h:157:17: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99; did you mean \xe2\x80\x98size_t\xe2\x80\x99?\n 157 | for (std::size_t __i = 0; __i < __n; ++__i)\n | ^~~~~~\nIn file included from /usr/include/wchar.h:35,\n from /usr/include/c++/11/cwchar:44,\n from /usr/include/c++/11/bits/postypes.h:40,\n from /usr/include/c++/11/bits/char_traits.h:40,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: \xe2\x80\x98size_t\xe2\x80\x99 declared here\n 209 | typedef __SIZE_TYPE__ size_t;\n | ^~~~~~\nIn file included from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/bits/char_traits.h:157:33: error: \xe2\x80\x98__i\xe2\x80\x99 was not declared in this scope; did you mean \xe2\x80\x98__n\xe2\x80\x99?\n 157 | for (std::size_t __i = 0; __i < __n; ++__i)\n | ^~~\n | __n\n/usr/include/c++/11/bits/char_traits.h: At global scope:\n/usr/include/c++/11/bits/char_traits.h:166:31: error: \xe2\x80\x98size_t\xe2\x80\x99 in namespace \xe2\x80\x98std\xe2\x80\x99 does not name a type\n 166 | _GLIBCXX14_CONSTEXPR std::size_t\n | ^~~~~~\n/usr/include/c++/11/bits/char_traits.h:179:37: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 179 | find(const char_type* __s, std::size_t __n, const char_type& __a)\n | ^~~~~~\n/usr/include/c++/11/bits/char_traits.h: In static member function \xe2\x80\x98static const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)\xe2\x80\x99:\n/usr/include/c++/11/bits/char_traits.h:181:17: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99; did you mean \xe2\x80\x98size_t\xe2\x80\x99?\n 181 | for (std::size_t __i = 0; __i < __n; ++__i)\n | ^~~~~~\nIn file included from /usr/include/wchar.h:35,\n from /usr/include/c++/11/cwchar:44,\n from /usr/include/c++/11/bits/postypes.h:40,\n from /usr/include/c++/11/bits/char_traits.h:40,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: \xe2\x80\x98size_t\xe2\x80\x99 declared here\n 209 | typedef __SIZE_TYPE__ size_t;\n | ^~~~~~\nIn file included from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/include/c++/11/bits/char_traits.h:181:33: error: \xe2\x80\x98__i\xe2\x80\x99 was not declared in this scope; did you mean \xe2\x80\x98__s\xe2\x80\x99?\n 181 | for (std::size_t __i = 0; __i < __n; ++__i)\n | ^~~\n | __s\n/usr/include/c++/11/bits/char_traits.h: At global scope:\n/usr/include/c++/11/bits/char_traits.h:191:55: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 191 | move(char_type* __s1, const char_type* __s2, std::size_t __n)\n | ^~~~~~\n/usr/include/c++/11/bits/char_traits.h:241:55: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 241 | copy(char_type* __s1, const char_type* __s2, std::size_t __n)\n | ^~~~~~\n/usr/include/c++/11/bits/char_traits.h:252:33: error: \xe2\x80\x98std::size_t\xe2\x80\x99 has not been declared\n 252 | assign(char_type* __s, std::size_t __n, char_type __a)\n | ^~~~~~\nIn file included from /usr/include/c++/11/ext/new_allocator.h:33,\n from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,\n from /usr/include/c++/11/bits/allocator.h:46,\n from /usr/include/c++/11/string:41,\n from main.cpp:2:\n/usr/include/c++/11/new:126:26: error: declaration of \xe2\x80\x98operator new\xe2\x80\x99 as non-function\n 126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)\n | ^~~~~~~~\n/usr/include/c++/11/new:126:44: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99; did you mean \xe2\x80\x98size_t\xe2\x80\x99?\n 126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)\n | ^~~~~~\nIn file included from /usr/include/wchar.h:35,\n from /usr/include/c++/11/cwchar:44,\n from /usr/include/c++/11/bits/postypes.h:40,\n from /usr/include/c++/11/bits/char_traits.h:40,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: \xe2\x80\x98size_t\xe2\x80\x99 declared here\n 209 | typedef __SIZE_TYPE__ size_t;\n | ^~~~~~\nIn file included from /usr/include/c++/11/ext/new_allocator.h:33,\n from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,\n from /usr/include/c++/11/bits/allocator.h:46,\n from /usr/include/c++/11/string:41,\n from main.cpp:2:\n/usr/include/c++/11/new:127:41: error: attributes after parenthesized initializer ignored [-fpermissive]\n 127 | __attribute__((__externally_visible__));\n | ^\n/usr/include/c++/11/new:128:26: error: declaration of \xe2\x80\x98operator new []\xe2\x80\x99 as non-function\n 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)\n | ^~~~~~~~\n/usr/include/c++/11/new:128:46: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99; did you mean \xe2\x80\x98size_t\xe2\x80\x99?\n 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)\n | ^~~~~~\nIn file included from /usr/include/wchar.h:35,\n from /usr/include/c++/11/cwchar:44,\n from /usr/include/c++/11/bits/postypes.h:40,\n from /usr/include/c++/11/bits/char_traits.h:40,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: \xe2\x80\x98size_t\xe2\x80\x99 declared here\n 209 | typedef __SIZE_TYPE__ size_t;\n | ^~~~~~\nIn file included from /usr/include/c++/11/ext/new_allocator.h:33,\n from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,\n from /usr/include/c++/11/bits/allocator.h:46,\n from /usr/include/c++/11/string:41,\n from main.cpp:2:\n/usr/include/c++/11/new:129:41: error: attributes after parenthesized initializer ignored [-fpermissive]\n 129 | __attribute__((__externally_visible__));\n | ^\n/usr/include/c++/11/new:140:26: error: declaration of \xe2\x80\x98operator new\xe2\x80\x99 as non-function\n 140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT\n | ^~~~~~~~\n/usr/include/c++/11/new:140:44: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99; did you mean \xe2\x80\x98size_t\xe2\x80\x99?\n 140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT\n | ^~~~~~\nIn file included from /usr/include/wchar.h:35,\n from /usr/include/c++/11/cwchar:44,\n from /usr/include/c++/11/bits/postypes.h:40,\n from /usr/include/c++/11/bits/char_traits.h:40,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: \xe2\x80\x98size_t\xe2\x80\x99 declared here\n 209 | typedef __SIZE_TYPE__ size_t;\n | ^~~~~~\nIn file included from /usr/include/c++/11/ext/new_allocator.h:33,\n from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,\n from /usr/include/c++/11/bits/allocator.h:46,\n from /usr/include/c++/11/string:41,\n from main.cpp:2:\n/usr/include/c++/11/new:140:52: error: expected primary-expression before \xe2\x80\x98const\xe2\x80\x99\n 140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT\n | ^~~~~\n/usr/include/c++/11/new:142:26: error: declaration of \xe2\x80\x98operator new []\xe2\x80\x99 as non-function\n 142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT\n | ^~~~~~~~\n/usr/include/c++/11/new:142:46: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99; did you mean \xe2\x80\x98size_t\xe2\x80\x99?\n 142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT\n | ^~~~~~\nIn file included from /usr/include/wchar.h:35,\n from /usr/include/c++/11/cwchar:44,\n from /usr/include/c++/11/bits/postypes.h:40,\n from /usr/include/c++/11/bits/char_traits.h:40,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: \xe2\x80\x98size_t\xe2\x80\x99 declared here\n 209 | typedef __SIZE_TYPE__ size_t;\n | ^~~~~~\nIn file included from /usr/include/c++/11/ext/new_allocator.h:33,\n from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,\n from /usr/include/c++/11/bits/allocator.h:46,\n from /usr/include/c++/11/string:41,\n from main.cpp:2:\n/usr/include/c++/11/new:142:54: error: expected primary-expression before \xe2\x80\x98const\xe2\x80\x99\n 142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT\n | ^~~~~\n/usr/include/c++/11/new:174:33: error: declaration of \xe2\x80\x98operator new\xe2\x80\x99 as non-function\n 174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT\n | ^~~~~~~~\n/usr/include/c++/11/new:174:51: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99; did you mean \xe2\x80\x98size_t\xe2\x80\x99?\n 174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT\n | ^~~~~~\nIn file included from /usr/include/wchar.h:35,\n from /usr/include/c++/11/cwchar:44,\n from /usr/include/c++/11/bits/postypes.h:40,\n from /usr/include/c++/11/bits/char_traits.h:40,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: \xe2\x80\x98size_t\xe2\x80\x99 declared here\n 209 | typedef __SIZE_TYPE__ size_t;\n | ^~~~~~\nIn file included from /usr/include/c++/11/ext/new_allocator.h:33,\n from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,\n from /usr/include/c++/11/bits/allocator.h:46,\n from /usr/include/c++/11/string:41,\n from main.cpp:2:\n/usr/include/c++/11/new:174:59: error: expected primary-expression before \xe2\x80\x98void\xe2\x80\x99\n 174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT\n | ^~~~\n/usr/include/c++/11/new:176:33: error: declaration of \xe2\x80\x98operator new []\xe2\x80\x99 as non-function\n 176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT\n | ^~~~~~~~\n/usr/include/c++/11/new:176:53: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99; did you mean \xe2\x80\x98size_t\xe2\x80\x99?\n 176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT\n | ^~~~~~\nIn file included from /usr/include/wchar.h:35,\n from /usr/include/c++/11/cwchar:44,\n from /usr/include/c++/11/bits/postypes.h:40,\n from /usr/include/c++/11/bits/char_traits.h:40,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: \xe2\x80\x98size_t\xe2\x80\x99 declared here\n 209 | typedef __SIZE_TYPE__ size_t;\n | ^~~~~~\nIn file included from /usr/include/c++/11/ext/new_allocator.h:33,\n from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,\n from /usr/include/c++/11/bits/allocator.h:46,\n from /usr/include/c++/11/string:41,\n from main.cpp:2:\n/usr/include/c++/11/new:176:61: error: expected primary-expression before \xe2\x80\x98void\xe2\x80\x99\n 176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT\n | ^~~~\nIn file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,\n from /usr/include/c++/11/bits/allocator.h:46,\n from /usr/include/c++/11/string:41,\n from main.cpp:2:\n/usr/include/c++/11/ext/new_allocator.h:59:20: error: \xe2\x80\x98size_t\xe2\x80\x99 in namespace \xe2\x80\x98std\xe2\x80\x99 does not name a type\n 59 | typedef std::size_t size_type;\n | ^~~~~~\n/usr/include/c++/11/ext/new_allocator.h:60:20: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 in namespace \xe2\x80\x98std\xe2\x80\x99 does not name a type\n 60 | typedef std::ptrdiff_t difference_type;\n | ^~~~~~~~~\n/usr/include/c++/11/ext/new_allocator.h:103:16: error: \xe2\x80\x98size_type\xe2\x80\x99 has not been declared\n 103 | allocate(size_type __n, const void* = static_cast<const void*>(0))\n | ^~~~~~~~~\n/usr/include/c++/11/ext/new_allocator.h:132:28: error: \xe2\x80\x98size_type\xe2\x80\x99 has not been declared\n 132 | deallocate(_Tp* __p, size_type __t __attribute__ ((__unused__)))\n | ^~~~~~~~~\n/usr/include/c++/11/ext/new_allocator.h:153:7: error: \xe2\x80\x98size_type\xe2\x80\x99 does not name a type; did you mean \xe2\x80\x98size_t\xe2\x80\x99?\n 153 | size_type\n | ^~~~~~~~~\n | size_t\n/usr/include/c++/11/ext/new_allocator.h:196:26: error: \xe2\x80\x98size_type\xe2\x80\x99 does not name a type; did you mean \xe2\x80\x98size_t\xe2\x80\x99?\n 196 | _GLIBCXX_CONSTEXPR size_type\n | ^~~~~~~~~\n | size_t\n/usr/include/c++/11/ext/new_allocator.h: In member function \xe2\x80\x98_Tp* __gnu_cxx::new_allocator<_Tp>::allocate(int, const void*)\xe2\x80\x99:\n/usr/include/c++/11/ext/new_allocator.h:115:29: error: \xe2\x80\x98size_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99; did you mean \xe2\x80\x98size_t\xe2\x80\x99?\n 115 | if (__n > (std::size_t(-1) / sizeof(_Tp)))\n | ^~~~~~\nIn file included from /usr/include/wchar.h:35,\n from /usr/include/c++/11/cwchar:44,\n from /usr/include/c++/11/bits/postypes.h:40,\n from /usr/include/c++/11/bits/char_traits.h:40,\n from /usr/include/c++/11/string:40,\n from main.cpp:2:\n/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: \xe2\x80\x98size_t\xe2\x80\x99 declared here\n 209 | typedef __SIZE_TYPE__ size_t;\n | ^~~~~~\nIn file included from /usr/include/c++/11/string:41,\n from main.cpp:2:\n/usr/include/c++/11/bits/allocator.h: At global scope:\n/usr/include/c++/11/bits/allocator.h:77:15: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 does not name a type\n 77 | typedef ptrdiff_t difference_type;\n | ^~~~~~~~~\n/usr/include/c++/11/bits/allocator.h:47:1: note: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\n 46 | #include <bits/c++allocator.h> // Define the base class to std::allocator.\n +++ |+#include <cstddef>\n 47 | #include <bits/memoryfwd.h>\n/usr/include/c++/11/bits/allocator.h:129:15: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 does not name a type\n 129 | typedef ptrdiff_t difference_type;\n | ^~~~~~~~~\n/usr/include/c++/11/bits/allocator.h:129:15: note: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 is defined in header \xe2\x80\x98<cstddef>\xe2\x80\x99; did you forget to \xe2\x80\x98#include <cstddef>\xe2\x80\x99?\nIn file included from /usr/include/c++/11/string:44,\n from main.cpp:2:\n/usr/include/c++/11/bits/ostream_insert.h:46:40: error: \xe2\x80\x98streamsize\xe2\x80\x99 has not been declared\n 46 | const _CharT* __s, streamsize __n)\n | ^~~~~~~~~~\n/usr/include/c++/11/bits/ostream_insert.h: In function \xe2\x80\x98void std::__ostream_write(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)\xe2\x80\x99:\n/usr/include/c++/11/bits/ostream_insert.h:51:13: error: \xe2\x80\x98streamsize\xe2\x80\x99 does not name a type\n 51 | const streamsize __put = __out.rdbuf()->sputn(__s, __n);\n | ^~~~~~~~~~\n/usr/include/c++/11/bits/ostream_insert.h:52:11: error: \xe2\x80\x98__put\xe2\x80\x99 was not declared in this scope; did you mean \xe2\x80\x98__out\xe2\x80\x99?\n 52 | if (__put != __n)\n | ^~~~~\n | __out\n/usr/include/c++/11/bits/ostream_insert.h: At global scope:\n/usr/include/c++/11/bits/ostream_insert.h:58:59: error: \xe2\x80\x98streamsize\xe2\x80\x99 has not been declared\n 58 | __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n)\n | ^~~~~~~~~~\n/usr/include/c++/11/bits/ostream_insert.h:78:41: error: \xe2\x80\x98streamsize\xe2\x80\x99 has not been declared\n 78 | const _CharT* __s, streamsize __n)\n | ^~~~~~~~~~\n/usr/include/c++/11/bits/ostream_insert.h: In function \xe2\x80\x98std::basic_ostream<_CharT, _Traits>& std::__ostream_insert(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)\xe2\x80\x99:\n/usr/include/c++/11/bits/ostream_insert.h:88:21: error: \xe2\x80\x98streamsize\xe2\x80\x99 does not name a type\n 88 | const streamsize __w = __out.width();\n | ^~~~~~~~~~\n/usr/include/c++/11/bits/ostream_insert.h:89:19: error: \xe2\x80\x98__w\xe2\x80\x99 was not declared in this scope; did you mean \xe2\x80\x98__s\xe2\x80\x99?\n 89 | if (__w > __n)\n | ^~~\n | __s\n/usr/include/c++/11/bits/ostream_insert.h: At global scope:\n/usr/include/c++/11/bits/ostream_insert.h:119:68: error: \xe2\x80\x98streamsize\xe2\x80\x99 has not been declared\n 119 | extern template ostream& __ostream_insert(ostream&, const char*, streamsize);\n | ^~~~~~~~~~\n/usr/include/c++/11/bits/ostream_insert.h:123:46: error: \xe2\x80\x98streamsize\xe2\x80\x99 has not been declared\n 123 | streamsize);\n | ^~~~~~~~~~\nIn file included from /usr/include/c++/11/ext/alloc_traits.h:34,\n from /usr/include/c++/11/bits/basic_string.h:40,\n from /usr/include/c++/11/string:55,\n from main.cpp:2:\n/usr/include/c++/11/bits/alloc_traits.h:432:36: error: \xe2\x80\x98ptrdiff_t\xe2\x80\x99 in namespace \xe2\x80\x98std\xe2\x80\x99 does not name a type\n 432 | using difference_type = std::ptrdiff_t;\n | ^~~~~~~~~\n/usr/include/c++/11/bits/alloc_traits.h:435:30: error: \xe2\x80\x98size_t\xe2\x80\x99 in namespace \xe2\x80\x98std\xe2\x80\x99 does not name a type\n 435 | using size_type = std::size_t;\n | ^~~~~~\n/usr/include/c++/11/bits/alloc_traits.h:463:37: error: \xe2\x80\x98size_type\xe2\x80\x99 has not been declared\n 463 | allocate(allocator_type& __a, size_type __n)\n | ^~~~~~~~~\n/usr/include/c++/11/bits/alloc_traits.h:477:37: error: \xe2\x80\x98size_type\xe2\x80\x99 has not been declared\n 477 | allocate(allocator_type& __a, size_type __n, const_void_pointer __hint)\n | ^~~~~~~~~\n/usr/include/c++/11/bits/alloc_traits.h:495:52: error: \xe2\x80\x98size_type\xe2\x80\x99 has not bee