/ Vijos /

记录详情

Compile Error

foo.cc:2:16: error: stray '@' in program
    2 | qig159357 LV 8 @ 7 年前
      |                ^
foo.cc:4:1: error: extended character 。 is not valid in an identifier
    4 | 额,迭代加深还真过了。
      | ^
foo.cc:5:1: error: extended character 。 is not valid in an identifier
    5 | 不会推理的我表示震惊。
      | ^
foo.cc:6:1: error: stray '`' in program
    6 | ```c++
      | ^
foo.cc:6:2: error: stray '`' in program
    6 | ```c++
      |  ^
foo.cc:6:3: error: stray '`' in program
    6 | ```c++
      |   ^
foo.cc:2:1: error: 'qig159357' does not name a type
    2 | qig159357 LV 8 @ 7 年前
      | ^~~~~~~~~
In file included from /nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:62,
                 from /nix/gcc/include/c++/13.2.0/algorithm:60,
                 from foo.cc:9:
/nix/gcc/include/c++/13.2.0/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
  164 |   __is_null_pointer(std::nullptr_t)
      |                                   ^
/nix/gcc/include/c++/13.2.0/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)'
  159 |     __is_null_pointer(_Type)
      |     ^~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.2.0/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std'
  164 |   __is_null_pointer(std::nullptr_t)
      |                          ^~~~~~~~~
In file included from /nix/gcc/include/c++/13.2.0/bits/stl_pair.h:60,
                 from /nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:64:
/nix/gcc/include/c++/13.2.0/type_traits:510:31: error: 'std::size_t' has not been declared
  510 |   template<typename _Tp, std::size_t _Size>
      |                               ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:511:25: error: '_Size' was not declared in this scope
  511 |     struct is_array<_Tp[_Size]>
      |                         ^~~~~
/nix/gcc/include/c++/13.2.0/type_traits:511:31: error: template argument 1 is invalid
  511 |     struct is_array<_Tp[_Size]>
      |                               ^
/nix/gcc/include/c++/13.2.0/type_traits:617:33: error: 'nullptr_t' is not a member of 'std'
  617 |     struct is_null_pointer<std::nullptr_t>
      |                                 ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:617:33: error: 'nullptr_t' is not a member of 'std'
/nix/gcc/include/c++/13.2.0/type_traits:617:42: error: template argument 1 is invalid
  617 |     struct is_null_pointer<std::nullptr_t>
      |                                          ^
/nix/gcc/include/c++/13.2.0/type_traits:621:48: error: template argument 1 is invalid
  621 |     struct is_null_pointer<const std::nullptr_t>
      |                                                ^
/nix/gcc/include/c++/13.2.0/type_traits:625:51: error: template argument 1 is invalid
  625 |     struct is_null_pointer<volatile std::nullptr_t>
      |                                                   ^
/nix/gcc/include/c++/13.2.0/type_traits:629:57: error: template argument 1 is invalid
  629 |     struct is_null_pointer<const volatile std::nullptr_t>
      |                                                         ^
/nix/gcc/include/c++/13.2.0/type_traits:1348:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1348 |     : public integral_constant<std::size_t, alignof(_Tp)>
      |                                     ^~~~~~
In file included from /nix/glibc-2.38-44-dev/include/stdio.h:33,
                 from /nix/gcc/include/c++/13.2.0/cstdio:42,
                 from foo.cc:7:
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:1348:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1348 |     : public integral_constant<std::size_t, alignof(_Tp)>
      |                                     ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:1348:57: error: template argument 1 is invalid
 1348 |     : public integral_constant<std::size_t, alignof(_Tp)>
      |                                                         ^
/nix/gcc/include/c++/13.2.0/type_traits:1348:57: note: invalid template non-type parameter
/nix/gcc/include/c++/13.2.0/type_traits:1357:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1357 |     : public integral_constant<std::size_t, 0> { };
      |                                     ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:1357:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1357 |     : public integral_constant<std::size_t, 0> { };
      |                                     ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:1357:46: error: template argument 1 is invalid
 1357 |     : public integral_constant<std::size_t, 0> { };
      |                                              ^
/nix/gcc/include/c++/13.2.0/type_traits:1357:46: note: invalid template non-type parameter
/nix/gcc/include/c++/13.2.0/type_traits:1359:31: error: 'std::size_t' has not been declared
 1359 |   template<typename _Tp, std::size_t _Size>
      |                               ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:1360:21: error: '_Size' was not declared in this scope
 1360 |     struct rank<_Tp[_Size]>
      |                     ^~~~~
/nix/gcc/include/c++/13.2.0/type_traits:1360:27: error: template argument 1 is invalid
 1360 |     struct rank<_Tp[_Size]>
      |                           ^
/nix/gcc/include/c++/13.2.0/type_traits:1361:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1361 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                     ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:1361:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1361 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                     ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:1361:65: error: template argument 1 is invalid
 1361 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                                                 ^
/nix/gcc/include/c++/13.2.0/type_traits:1361:65: note: invalid template non-type parameter
/nix/gcc/include/c++/13.2.0/type_traits:1365:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1365 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                     ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:1365:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1365 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                     ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:1365:65: error: template argument 1 is invalid
 1365 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                                                 ^
/nix/gcc/include/c++/13.2.0/type_traits:1365:65: note: invalid template non-type parameter
/nix/gcc/include/c++/13.2.0/type_traits:1993:31: error: 'std::size_t' has not been declared
 1993 |   template<typename _Tp, std::size_t _Size>
      |                               ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:1994:30: error: '_Size' was not declared in this scope
 1994 |     struct remove_extent<_Tp[_Size]>
      |                              ^~~~~
/nix/gcc/include/c++/13.2.0/type_traits:1994:36: error: template argument 1 is invalid
 1994 |     struct remove_extent<_Tp[_Size]>
      |                                    ^
/nix/gcc/include/c++/13.2.0/type_traits:2006:31: error: 'std::size_t' has not been declared
 2006 |   template<typename _Tp, std::size_t _Size>
      |                               ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:2007:35: error: '_Size' was not declared in this scope
 2007 |     struct remove_all_extents<_Tp[_Size]>
      |                                   ^~~~~
/nix/gcc/include/c++/13.2.0/type_traits:2007:41: error: template argument 1 is invalid
 2007 |     struct remove_all_extents<_Tp[_Size]>
      |                                         ^
/nix/gcc/include/c++/13.2.0/type_traits:2072:17: error: 'std::size_t' has not been declared
 2072 |   template<std::size_t _Len>
      |                 ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:2077:30: error: '_Len' was not declared in this scope
 2077 |         unsigned char __data[_Len];
      |                              ^~~~
/nix/gcc/include/c++/13.2.0/type_traits:2095:17: error: 'std::size_t' has not been declared
 2095 |   template<std::size_t _Len, std::size_t _Align =
      |                 ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:2095:35: error: 'std::size_t' has not been declared
 2095 |   template<std::size_t _Len, std::size_t _Align =
      |                                   ^~~~~~
/nix/gcc/include/c++/13.2.0/type_traits:2096:55: error: '_Len' was not declared in this scope
 2096 |            __alignof__(typename __aligned_storage_msa<_Len>::__type)>
      |                                                       ^~~~
/nix/gcc/include/c++/13.2.0/type_traits:2096:59: error: template argument 1 is invalid
 2096 |            __alignof__(typename __aligned_storage_msa<_Len>::__type)>
      |                                                           ^
/nix/gcc/include/c++/13.2.0/type_traits:2103:30: error: '_Len' was not declared in this scope
 2103 |         unsigned char __data[_Len];
      |                              ^~~~
/nix/gcc/include/c++/13.2.0/type_traits:2104:44: error: '_Align' was not declared in this scope
 2104 |         struct __attribute__((__aligned__((_Align)))) { } __align;
      |                                            ^~~~~~
In file included from /nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:65:
/nix/gcc/include/c++/13.2.0/bits/stl_iterator_base_types.h:125:67: error: 'ptrdiff_t' does not name a type
  125 |   template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
      |                                                                   ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/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++ -*-
/nix/gcc/include/c++/13.2.0/bits/stl_iterator_base_types.h:214:15: error: 'ptrdiff_t' does not name a type
  214 |       typedef ptrdiff_t                   difference_type;
      |               ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_iterator_base_types.h:214:15: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/gcc/include/c++/13.2.0/bits/stl_iterator_base_types.h:225:15: error: 'ptrdiff_t' does not name a type
  225 |       typedef ptrdiff_t                   difference_type;
      |               ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_iterator_base_types.h:225:15: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:66:
/nix/gcc/include/c++/13.2.0/bits/stl_iterator_base_funcs.h:112:5: error: 'ptrdiff_t' does not name a type
  112 |     ptrdiff_t
      |     ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/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 | #include <bits/stl_iterator_base_types.h>
/nix/gcc/include/c++/13.2.0/bits/stl_iterator_base_funcs.h:118:5: error: 'ptrdiff_t' does not name a type
  118 |     ptrdiff_t
      |     ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_iterator_base_funcs.h:118:5: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /nix/gcc/include/c++/13.2.0/bits/stl_iterator.h:67,
                 from /nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:67:
/nix/gcc/include/c++/13.2.0/bits/ptr_traits.h:163:47: error: 'ptrdiff_t' was not declared in this scope
  163 |       using difference_type = __detected_or_t<ptrdiff_t, __diff_t, _Ptr>;
      |                                               ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/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++ -*-
/nix/gcc/include/c++/13.2.0/bits/ptr_traits.h:163:72: error: template argument 1 is invalid
  163 |       using difference_type = __detected_or_t<ptrdiff_t, __diff_t, _Ptr>;
      |                                                                        ^
/nix/gcc/include/c++/13.2.0/bits/ptr_traits.h:201:15: error: 'ptrdiff_t' does not name a type
  201 |       typedef ptrdiff_t difference_type;
      |               ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/bits/ptr_traits.h:201:15: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/gcc/include/c++/13.2.0/bits/stl_algobase.h: In static member function 'static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*)':
/nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:435:17: error: 'ptrdiff_t' does not name a type
  435 |           const ptrdiff_t _Num = __last - __first;
      |                 ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/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
/nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:436:32: error: '_Num' was not declared in this scope
  436 |           if (__builtin_expect(_Num > 1, true))
      |                                ^~~~
/nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:441:29: error: '_Num' was not declared in this scope
  441 |           return __result + _Num;
      |                             ^~~~
/nix/gcc/include/c++/13.2.0/bits/stl_algobase.h: In static member function 'static _Up* std::__copy_move_backward<_IsMove, true, std::random_access_iterator_tag>::__copy_move_b(_Tp*, _Tp*, _Up*)':
/nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:746:17: error: 'ptrdiff_t' does not name a type
  746 |           const ptrdiff_t _Num = __last - __first;
      |                 ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:746:17: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:747:32: error: '_Num' was not declared in this scope
  747 |           if (__builtin_expect(_Num > 1, true))
      |                                ^~~~
/nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:752:29: error: '_Num' was not declared in this scope
  752 |           return __result - _Num;
      |                             ^~~~
/nix/gcc/include/c++/13.2.0/bits/stl_algobase.h: At global scope:
/nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:1357:16: error: 'ptrdiff_t' does not name a type
 1357 |         static ptrdiff_t
      |                ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_algobase.h:1357:16: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:59,
                 from /nix/gcc/include/c++/13.2.0/bits/stl_algo.h:69,
                 from /nix/gcc/include/c++/13.2.0/algorithm:61:
/nix/gcc/include/c++/13.2.0/new:126:26: error: declaration of 'operator new' as non-function
  126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                          ^~~~~~~~
/nix/gcc/include/c++/13.2.0/new:126:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
  126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                                            ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/new:127:41: error: attributes after parenthesized initializer ignored [-fpermissive]
  127 |   __attribute__((__externally_visible__));
      |                                         ^
/nix/gcc/include/c++/13.2.0/new:128:26: error: declaration of 'operator new []' as non-function
  128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                          ^~~~~~~~
/nix/gcc/include/c++/13.2.0/new:128:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
  128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                                              ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/new:129:41: error: attributes after parenthesized initializer ignored [-fpermissive]
  129 |   __attribute__((__externally_visible__));
      |                                         ^
/nix/gcc/include/c++/13.2.0/new:140:26: error: declaration of 'operator new' as non-function
  140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
      |                          ^~~~~~~~
/nix/gcc/include/c++/13.2.0/new:140:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
  140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
      |                                            ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/new:140:52: error: expected primary-expression before 'const'
  140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
      |                                                    ^~~~~
/nix/gcc/include/c++/13.2.0/new:142:26: error: declaration of 'operator new []' as non-function
  142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
      |                          ^~~~~~~~
/nix/gcc/include/c++/13.2.0/new:142:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
  142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
      |                                              ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/new:142:54: error: expected primary-expression before 'const'
  142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
      |                                                      ^~~~~
/nix/gcc/include/c++/13.2.0/new:174:33: error: declaration of 'operator new' as non-function
  174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
      |                                 ^~~~~~~~
/nix/gcc/include/c++/13.2.0/new:174:51: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
  174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
      |                                                   ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/new:174:59: error: expected primary-expression before 'void'
  174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
      |                                                           ^~~~
/nix/gcc/include/c++/13.2.0/new:176:33: error: declaration of 'operator new []' as non-function
  176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
      |                                 ^~~~~~~~
/nix/gcc/include/c++/13.2.0/new:176:53: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
  176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
      |                                                     ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/nix/gcc/include/c++/13.2.0/new:176:61: error: expected primary-expression before 'void'
  176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
      |                                                             ^~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:103:16: error: 'ptrdiff_t' was not declared in this scope
  103 |     pair<_Tp*, ptrdiff_t>
      |                ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:62:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
   61 | #include <bits/stl_construct.h>
  +++ |+#include <cstddef>
   62 | #include <bits/stl_pair.h>
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:103:25: error: template argument 2 is invalid
  103 |     pair<_Tp*, ptrdiff_t>
      |                         ^
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:104:26: error: 'ptrdiff_t' was not declared in this scope
  104 |     get_temporary_buffer(ptrdiff_t __len) _GLIBCXX_NOEXCEPT
      |                          ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:104:26: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:104:42: error: expected ';' before 'noexcept'
  104 |     get_temporary_buffer(ptrdiff_t __len) _GLIBCXX_NOEXCEPT
      |                                          ^
      |                                          ;
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:149:15: error: 'ptrdiff_t' does not name a type
  149 |       typedef ptrdiff_t   size_type;
      |               ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:149:15: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:152:7: error: 'size_type' does not name a type; did you mean 'true_type'?
  152 |       size_type  _M_original_len;
      |       ^~~~~~~~~
      |       true_type
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:153:7: error: 'size_type' does not name a type; did you mean 'true_type'?
  153 |       size_type  _M_len;
      |       ^~~~~~~~~
      |       true_type
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:158:7: error: 'size_type' does not name a type; did you mean 'true_type'?
  158 |       size_type
      |       ^~~~~~~~~
      |       true_type
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:163:7: error: 'size_type' does not name a type; did you mean 'true_type'?
  163 |       size_type
      |       ^~~~~~~~~
      |       true_type
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:181:50: error: 'size_type' has not been declared
  181 |       _Temporary_buffer(_ForwardIterator __seed, size_type __original_len);
      |                                                  ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h: In member function 'std::_Temporary_buffer<_ForwardIterator, _Tp>::value_type* std::_Temporary_buffer<_ForwardIterator, _Tp>::end()':
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:175:28: error: '_M_len' was not declared in this scope
  175 |       { return _M_buffer + _M_len; }
      |                            ^~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h: In destructor 'std::_Temporary_buffer<_ForwardIterator, _Tp>::~_Temporary_buffer()':
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:185:46: error: '_M_len' was not declared in this scope
  185 |         std::_Destroy(_M_buffer, _M_buffer + _M_len);
      |                                              ^~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h: At global scope:
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:264:48: error: 'size_type' has not been declared
  264 |     _Temporary_buffer(_ForwardIterator __seed, size_type __original_len)
      |                                                ^~~~~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h: In constructor 'std::_Temporary_buffer<_ForwardIterator, _Tp>::_Temporary_buffer(_ForwardIterator, int)':
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:265:7: error: class 'std::_Temporary_buffer<_ForwardIterator, _Tp>' does not have any field named '_M_original_len'
  265 |     : _M_original_len(__original_len), _M_len(0), _M_buffer(0)
      |       ^~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:265:40: error: class 'std::_Temporary_buffer<_ForwardIterator, _Tp>' does not have any field named '_M_len'
  265 |     : _M_original_len(__original_len), _M_len(0), _M_buffer(0)
      |                                        ^~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:267:26: error: 'size_type' was not declared in this scope; did you mean 'true_type'?
  267 |       std::pair<pointer, size_type> __p(
      |                          ^~~~~~~~~
      |                          true_type
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:267:35: error: template argument 2 is invalid
  267 |       std::pair<pointer, size_type> __p(
      |                                   ^
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:268:55: error: '_M_original_len' was not declared in this scope; did you mean '__original_len'?
  268 |                 std::get_temporary_buffer<value_type>(_M_original_len));
      |                                                       ^~~~~~~~~~~~~~~
      |                                                       __original_len
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:270:15: error: request for member 'first' in '__p', which is of non-class type 'int'
  270 |       if (__p.first)
      |               ^~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:274:54: error: request for member 'first' in '__p', which is of non-class type 'int'
  274 |               std::__uninitialized_construct_buf(__p.first, __p.first + __p.second,
      |                                                      ^~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:274:65: error: request for member 'first' in '__p', which is of non-class type 'int'
  274 |               std::__uninitialized_construct_buf(__p.first, __p.first + __p.second,
      |                                                                 ^~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:274:77: error: request for member 'second' in '__p', which is of non-class type 'int'
  274 |               std::__uninitialized_construct_buf(__p.first, __p.first + __p.second,
      |                                                                             ^~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:276:31: error: request for member 'first' in '__p', which is of non-class type 'int'
  276 |               _M_buffer = __p.first;
      |                               ^~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:277:15: error: '_M_len' was not declared in this scope
  277 |               _M_len = __p.second;
      |               ^~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:277:28: error: request for member 'second' in '__p', which is of non-class type 'int'
  277 |               _M_len = __p.second;
      |                            ^~~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:281:60: error: request for member 'first' in '__p', which is of non-class type 'int'
  281 |               std::__detail::__return_temporary_buffer(__p.first, __p.second);
      |                                                            ^~~~~
/nix/gcc/include/c++/13.2.0/bits/stl_tempbuf.h:281:71: error: request for member 'second' in '__p', which is of non-class type 'int'
  281 |               std::__detail::__return_temporary_buffer(__p.first, __p.second);
      |                                                                       ^~~~~~

信息

递交者
类型
递交
题目
P1158 小三学算术
语言
C++
递交时间
2024-03-21 10:42:04
评测时间
2024-03-21 10:42:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes