foo.cc:2:1: error: '\U00004ee3\U00007801' does not name a type
2 | 代码
| ^~~~
In file included from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/move.h:57,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:59,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/utility:70,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/algorithm:60,
from foo.cc:3:
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:227:27: error: 'size_t' has not been declared
227 | template <typename _Tp, size_t = sizeof(_Tp)>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:431:31: error: 'std::size_t' has not been declared
431 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:432:25: error: '_Size' was not declared in this scope
432 | struct is_array<_Tp[_Size]>
| ^~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:432:31: error: template argument 1 is invalid
432 | struct is_array<_Tp[_Size]>
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:537:42: error: 'nullptr_t' is not a member of 'std'
537 | struct __is_null_pointer_helper<std::nullptr_t>
| ^~~~~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:537:42: error: 'nullptr_t' is not a member of 'std'
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:537:51: error: template argument 1 is invalid
537 | struct __is_null_pointer_helper<std::nullptr_t>
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1361:37: error: 'size_t' is not a member of 'std'
1361 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1361:37: error: 'size_t' is not a member of 'std'
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1361:57: error: template argument 1 is invalid
1361 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1361:57: note: invalid template non-type parameter
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1370:37: error: 'size_t' is not a member of 'std'
1370 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1370:37: error: 'size_t' is not a member of 'std'
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1370:46: error: template argument 1 is invalid
1370 | : public integral_constant<std::size_t, 0> { };
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1370:46: note: invalid template non-type parameter
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1372:31: error: 'std::size_t' has not been declared
1372 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1373:21: error: '_Size' was not declared in this scope
1373 | struct rank<_Tp[_Size]>
| ^~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1373:27: error: template argument 1 is invalid
1373 | struct rank<_Tp[_Size]>
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1374:37: error: 'size_t' is not a member of 'std'
1374 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1374:37: error: 'size_t' is not a member of 'std'
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1374:65: error: template argument 1 is invalid
1374 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1374:65: note: invalid template non-type parameter
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1378:37: error: 'size_t' is not a member of 'std'
1378 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1378:37: error: 'size_t' is not a member of 'std'
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1378:65: error: template argument 1 is invalid
1378 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1378:65: note: invalid template non-type parameter
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1383:37: error: 'size_t' is not a member of 'std'
1383 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1383:37: error: 'size_t' is not a member of 'std'
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1383:46: error: template argument 1 is invalid
1383 | : public integral_constant<std::size_t, 0> { };
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1383:46: note: invalid template non-type parameter
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1385:47: error: 'std::size_t' has not been declared
1385 | template<typename _Tp, unsigned _Uint, std::size_t _Size>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1386:23: error: '_Size' was not declared in this scope
1386 | struct extent<_Tp[_Size], _Uint>
| ^~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1386:36: error: template argument 1 is invalid
1386 | struct extent<_Tp[_Size], _Uint>
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1387:37: error: 'size_t' is not a member of 'std'
1387 | : public integral_constant<std::size_t,
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1387:37: error: 'size_t' is not a member of 'std'
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1388:45: error: '_Size' was not declared in this scope
1388 | _Uint == 0 ? _Size : extent<_Tp,
| ^~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1389:77: error: template argument 1 is invalid
1389 | _Uint - 1>::value>
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1389:77: note: invalid template non-type parameter
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1394:37: error: 'size_t' is not a member of 'std'
1394 | : public integral_constant<std::size_t,
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1394:37: error: 'size_t' is not a member of 'std'
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1396:73: error: template argument 1 is invalid
1396 | _Uint - 1>::value>
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1396:73: note: invalid template non-type parameter
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1765:26: error: 'size_t' does not name a type
1765 | { static constexpr size_t __size = sizeof(_Tp); };
| ^~~~~~
In file included from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/move.h:57,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:59,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/utility:70,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/algorithm:60,
from foo.cc:3:
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | // C++11 <type_traits> -*- C++ -*-
In file included from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/move.h:57,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:59,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/utility:70,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/algorithm:60,
from foo.cc:3:
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1767:14: error: 'size_t' has not been declared
1767 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1767:48: error: '_Sz' was not declared in this scope
1767 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1768:14: error: no default argument for '_Tp'
1768 | struct __select;
| ^~~~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1770:14: error: 'size_t' has not been declared
1770 | template<size_t _Sz, typename _Uint, typename... _UInts>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1771:23: error: '_Sz' was not declared in this scope
1771 | struct __select<_Sz, _List<_Uint, _UInts...>, true>
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1771:57: error: template argument 1 is invalid
1771 | struct __select<_Sz, _List<_Uint, _UInts...>, true>
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1774:14: error: 'size_t' has not been declared
1774 | template<size_t _Sz, typename _Uint, typename... _UInts>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1775:23: error: '_Sz' was not declared in this scope
1775 | struct __select<_Sz, _List<_Uint, _UInts...>, false>
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1775:58: error: template argument 1 is invalid
1775 | struct __select<_Sz, _List<_Uint, _UInts...>, false>
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1776:18: error: '_Sz' was not declared in this scope
1776 | : __select<_Sz, _List<_UInts...>>
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1776:38: error: template argument 1 is invalid
1776 | : __select<_Sz, _List<_UInts...>>
| ^~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1767:60: error: '__size' is not a member of 'std::__make_unsigned_selector_base::_List<unsigned char, short unsigned int, unsigned int, long unsigned int, long long unsigned int>'
1767 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1789:68: error: template argument 3 is invalid
1789 | using __unsigned_type = typename __select<sizeof(_Tp), _UInts>::__type;
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1793:47: error: '__unsigned_type' was not declared in this scope
1793 | = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
| ^~~~~~~~~~~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1793:62: error: template argument 2 is invalid
1793 | = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1805:68: error: '__type' in 'class std::__make_unsigned_selector<wchar_t, false, true>' does not name a type
1805 | = typename __make_unsigned_selector<wchar_t, false, true>::__type;
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1822:69: error: '__type' in 'class std::__make_unsigned_selector<char16_t, false, true>' does not name a type
1822 | = typename __make_unsigned_selector<char16_t, false, true>::__type;
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1829:69: error: '__type' in 'class std::__make_unsigned_selector<char32_t, false, true>' does not name a type
1829 | = typename __make_unsigned_selector<char32_t, false, true>::__type;
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits: In instantiation of 'class std::__make_unsigned_selector<wchar_t, true, false>':
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1918:62: required from 'class std::__make_signed_selector<wchar_t, false, true>'
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1933:57: required from here
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1750:13: error: no type named '__type' in 'struct std::__make_unsigned<wchar_t>'
1750 | using __unsigned_type
| ^~~~~~~~~~~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1754:13: error: no type named '__type' in 'struct std::__make_unsigned<wchar_t>'
1754 | using __type
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1933:66: error: invalid combination of multiple type-specifiers
1933 | = typename __make_signed_selector<wchar_t, false, true>::__type;
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits: In instantiation of 'class std::__make_unsigned_selector<char16_t, true, false>':
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1918:62: required from 'class std::__make_signed_selector<char16_t, false, true>'
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1950:58: required from here
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1750:13: error: no type named '__type' in 'struct std::__make_unsigned<char16_t>'
1750 | using __unsigned_type
| ^~~~~~~~~~~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1754:13: error: no type named '__type' in 'struct std::__make_unsigned<char16_t>'
1754 | using __type
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1950:67: error: invalid combination of multiple type-specifiers
1950 | = typename __make_signed_selector<char16_t, false, true>::__type;
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits: In instantiation of 'class std::__make_unsigned_selector<char32_t, true, false>':
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1918:62: required from 'class std::__make_signed_selector<char32_t, false, true>'
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1957:58: required from here
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1750:13: error: no type named '__type' in 'struct std::__make_unsigned<char32_t>'
1750 | using __unsigned_type
| ^~~~~~~~~~~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1754:13: error: no type named '__type' in 'struct std::__make_unsigned<char32_t>'
1754 | using __type
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1957:67: error: invalid combination of multiple type-specifiers
1957 | = typename __make_signed_selector<char32_t, false, true>::__type;
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1990:31: error: 'std::size_t' has not been declared
1990 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1991:30: error: '_Size' was not declared in this scope
1991 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:1991:36: error: template argument 1 is invalid
1991 | struct remove_extent<_Tp[_Size]>
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2003:31: error: 'std::size_t' has not been declared
2003 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2004:35: error: '_Size' was not declared in this scope
2004 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2004:41: error: template argument 1 is invalid
2004 | struct remove_all_extents<_Tp[_Size]>
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2062:17: error: 'std::size_t' has not been declared
2062 | template<std::size_t _Len>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2067:30: error: '_Len' was not declared in this scope
2067 | unsigned char __data[_Len];
| ^~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2082:17: error: 'std::size_t' has not been declared
2082 | template<std::size_t _Len, std::size_t _Align =
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2082:35: error: 'std::size_t' has not been declared
2082 | template<std::size_t _Len, std::size_t _Align =
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2083:55: error: '_Len' was not declared in this scope
2083 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2083:59: error: template argument 1 is invalid
2083 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2088:30: error: '_Len' was not declared in this scope
2088 | unsigned char __data[_Len];
| ^~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2089:44: error: '_Align' was not declared in this scope
2089 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2096:20: error: 'size_t' does not name a type
2096 | static const size_t _S_alignment = 0;
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2096:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2097:20: error: 'size_t' does not name a type
2097 | static const size_t _S_size = 0;
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2097:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2103:20: error: 'size_t' does not name a type
2103 | static const size_t _S_alignment =
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2103:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2106:20: error: 'size_t' does not name a type
2106 | static const size_t _S_size =
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2106:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2121:13: error: 'size_t' has not been declared
2121 | template <size_t _Len, typename... _Types>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2128:20: error: 'size_t' does not name a type
2128 | static const size_t _S_len = _Len > __strictest::_S_size
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2128:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2132:20: error: 'size_t' does not name a type
2132 | static const size_t alignment_value = __strictest::_S_alignment;
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2132:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2134:40: error: '_S_len' was not declared in this scope
2134 | typedef typename aligned_storage<_S_len, alignment_value>::type type;
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2134:48: error: 'alignment_value' was not declared in this scope; did you mean 'alignment_of'?
2134 | typedef typename aligned_storage<_S_len, alignment_value>::type type;
| ^~~~~~~~~~~~~~~
| alignment_of
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2134:63: error: template argument 1 is invalid
2134 | typedef typename aligned_storage<_S_len, alignment_value>::type type;
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2134:63: error: template argument 2 is invalid
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2137:13: error: 'size_t' has not been declared
2137 | template <size_t _Len, typename... _Types>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2138:11: error: 'size_t' does not name a type
2138 | const size_t aligned_union<_Len, _Types...>::alignment_value;
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2138:11: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2686:26: error: 'size_t' has not been declared
2686 | template<typename _Tp, size_t _Nm>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2690:21: error: '_Nm' was not declared in this scope
2690 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2690:24: error: 'template<class _Tp, <declaration error> > std::__enable_if_t<std::__is_swappable<_Tp>::value> std::swap' conflicts with a previous declaration
2690 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2682:5: note: previous declaration 'std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&)'
2682 | swap(_Tp&, _Tp&)
| ^~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2690:16: error: '__a' was not declared in this scope
2690 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2690:21: error: '_Nm' was not declared in this scope
2690 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2690:33: error: '__b' was not declared in this scope
2690 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2690:38: error: '_Nm' was not declared in this scope
2690 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/type_traits:2690:43: error: expected ';' before 'noexcept'
2690 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
| ;
2691 | noexcept(__is_nothrow_swappable<_Tp>::value);
| ~~~~~~~~
In file included from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:59,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/utility:70,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/algorithm:60,
from foo.cc:3:
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/move.h:212:26: error: 'size_t' has not been declared
212 | template<typename _Tp, size_t _Nm>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/move.h:220:21: error: '_Nm' was not declared in this scope
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/move.h:220:24: error: 'template<class _Tp, <declaration error> > typename std::enable_if<std::__is_swappable<_Tp>::value, void>::type std::swap' conflicts with a previous declaration
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/move.h:196:5: note: previous declaration 'std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&)'
196 | swap(_Tp& __a, _Tp& __b)
| ^~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/move.h:220:16: error: '__a' was not declared in this scope
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/move.h:220:21: error: '_Nm' was not declared in this scope
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/move.h:220:33: error: '__b' was not declared in this scope
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/move.h:220:38: error: '_Nm' was not declared in this scope
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/move.h:220:43: error: expected ';' before 'noexcept'
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
| ;
In file included from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/utility:70,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/algorithm:60,
from foo.cc:3:
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:92:12: error: 'size_t' has not been declared
92 | template<size_t...>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:449:36: error: 'size_t' has not been declared
449 | template<typename... _Args1, size_t... _Indexes1,
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:450:36: error: 'size_t' has not been declared
450 | typename... _Args2, size_t... _Indexes2>
| ^~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:453:27: error: '_Indexes1' was not declared in this scope
453 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~~~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:453:36: error: expected parameter pack before '...'
453 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:453:39: error: template argument 1 is invalid
453 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:453:55: error: '_Indexes2' was not declared in this scope
453 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~~~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:453:64: error: expected parameter pack before '...'
453 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:453:67: error: template argument 1 is invalid
453 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^
In file included from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/utility:76,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/algorithm:60,
from foo.cc:3:
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/initializer_list:53:15: error: 'size_t' does not name a type
53 | typedef size_t size_type;
| ^~~~~~
In file included from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/utility:76,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/algorithm:60,
from foo.cc:3:
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/initializer_list:1:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | // std::initializer_list support -*- C++ -*-
In file included from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/utility:76,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/algorithm:60,
from foo.cc:3:
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/initializer_list:59:7: error: 'size_type' does not name a type; did you mean 'true_type'?
59 | size_type _M_len;
| ^~~~~~~~~
| true_type
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/initializer_list:62:54: error: 'size_type' has not been declared
62 | constexpr initializer_list(const_iterator __a, size_type __l)
| ^~~~~~~~~
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/initializer_list:70:17: error: 'size_type' does not name a type; did you mean 'true_type'?
70 | constexpr size_type
| ^~~~~~~~~
| true_type
/nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/initializer_list:47:11: fatal error: definition of 'class std::initializer_list<_E>' does not match '#include <initializer_list>'
47 | class initializer_list
| ^~~~~~~~~~~~~~~~
compilation terminated.