foo.cc:2:33: error: stray ‘@’ in program
2 | 12239姚与露 (12239姚与露) LV 7 @ 3 年前
| ^
foo.cc:2:2: error: expected unqualified-id before numeric constant
2 | 12239姚与露 (12239姚与露) LV 7 @ 3 年前
| ^~~~~~~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/iosfwd:42,
from /nix/gcc/include/c++/14.2.1.20250322/ios:40,
from /nix/gcc/include/c++/14.2.1.20250322/ostream:40,
from /nix/gcc/include/c++/14.2.1.20250322/iostream:41,
from foo.cc:3:
/nix/gcc/include/c++/14.2.1.20250322/bits/postypes.h:68:11: error: ‘ptrdiff_t’ does not name a type
68 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/postypes.h:41:1: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/exception_ptr.h:38,
from /nix/gcc/include/c++/14.2.1.20250322/exception:166,
from /nix/gcc/include/c++/14.2.1.20250322/ios:41:
/nix/gcc/include/c++/14.2.1.20250322/new:131:26: error: declaration of ‘operator new’ as non-function
131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:131:44: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
In file included from /nix/glibc-2.40-66-dev/include/wchar.h:35,
from /nix/gcc/include/c++/14.2.1.20250322/cwchar:44,
from /nix/gcc/include/c++/14.2.1.20250322/bits/postypes.h:40:
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive]
132 | __attribute__((__externally_visible__));
| ^
/nix/gcc/include/c++/14.2.1.20250322/new:133:26: error: declaration of ‘operator new []’ as non-function
133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:133:46: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:134:41: error: attributes after parenthesized initializer ignored [-fpermissive]
134 | __attribute__((__externally_visible__));
| ^
/nix/gcc/include/c++/14.2.1.20250322/new:145:26: error: declaration of ‘operator new’ as non-function
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:145:44: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:145:52: error: expected primary-expression before ‘const’
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:147:26: error: declaration of ‘operator new []’ as non-function
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:147:46: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:147:54: error: expected primary-expression before ‘const’
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:179:33: error: declaration of ‘operator new’ as non-function
179 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:179:51: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
179 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:179:59: error: expected primary-expression before ‘void’
179 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/new:181:33: error: declaration of ‘operator new []’ as non-function
181 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:181:53: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
181 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:181:61: error: expected primary-expression before ‘void’
181 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/move.h:37,
from /nix/gcc/include/c++/14.2.1.20250322/bits/exception_ptr.h:41:
/nix/gcc/include/c++/14.2.1.20250322/type_traits:666:33: error: ‘nullptr_t’ is not a member of ‘std’; did you mean ‘nullptr_t’?
666 | struct is_null_pointer<std::nullptr_t>
| ^~~~~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/cxxabi_init_exception.h:38,
from /nix/gcc/include/c++/14.2.1.20250322/bits/exception_ptr.h:36:
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:443:29: note: ‘nullptr_t’ declared here
443 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:666:33: error: ‘nullptr_t’ is not a member of ‘std’; did you mean ‘nullptr_t’?
666 | struct is_null_pointer<std::nullptr_t>
| ^~~~~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:443:29: note: ‘nullptr_t’ declared here
443 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:666:42: error: template argument 1 is invalid
666 | struct is_null_pointer<std::nullptr_t>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:670:48: error: template argument 1 is invalid
670 | struct is_null_pointer<const std::nullptr_t>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:674:51: error: template argument 1 is invalid
674 | struct is_null_pointer<volatile std::nullptr_t>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:678:57: error: template argument 1 is invalid
678 | struct is_null_pointer<const volatile std::nullptr_t>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1429:37: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1429:37: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1429:57: error: template argument 1 is invalid
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1429:57: note: invalid template non-type parameter
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1438:37: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
1438 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1438:37: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
1438 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1438:46: error: template argument 1 is invalid
1438 | : public integral_constant<std::size_t, 0> { };
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1438:46: note: invalid template non-type parameter
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1440:31: error: ‘std::size_t’ has not been declared
1440 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1441:21: error: ‘_Size’ was not declared in this scope
1441 | struct rank<_Tp[_Size]>
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1441:27: error: template argument 1 is invalid
1441 | struct rank<_Tp[_Size]>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1442:37: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1442:37: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1442:65: error: template argument 1 is invalid
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1442:65: note: invalid template non-type parameter
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1446:37: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1446:37: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1446:65: error: template argument 1 is invalid
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1446:65: note: invalid template non-type parameter
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2086:31: error: ‘std::size_t’ has not been declared
2086 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2087:30: error: ‘_Size’ was not declared in this scope
2087 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2087:36: error: template argument 1 is invalid
2087 | struct remove_extent<_Tp[_Size]>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2099:31: error: ‘std::size_t’ has not been declared
2099 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2100:35: error: ‘_Size’ was not declared in this scope
2100 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2100:41: error: template argument 1 is invalid
2100 | struct remove_all_extents<_Tp[_Size]>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2171:17: error: ‘std::size_t’ has not been declared
2171 | template<std::size_t _Len>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2176:30: error: ‘_Len’ was not declared in this scope
2176 | unsigned char __data[_Len];
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2194:17: error: ‘std::size_t’ has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2194:35: error: ‘std::size_t’ has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2195:55: error: ‘_Len’ was not declared in this scope
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2195:59: error: template argument 1 is invalid
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2202:30: error: ‘_Len’ was not declared in this scope
2202 | unsigned char __data[_Len];
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2203:44: error: ‘_Align’ was not declared in this scope
2203 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/ios:42:
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:144:66: error: ‘std::size_t’ has not been declared
144 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:146:40: error: ‘size_t’ in namespace ‘std’ does not name a type
146 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:150:39: error: ‘std::size_t’ has not been declared
150 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:153:57: error: ‘std::size_t’ has not been declared
153 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:156:57: error: ‘std::size_t’ has not been declared
156 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:159:35: error: ‘std::size_t’ has not been declared
159 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:187:64: error: ‘std::size_t’ has not been declared
187 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h: In static member function ‘static int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:189:17: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:189:33: error: ‘__i’ was not declared in this scope; did you mean ‘__n’?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __n
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:198:31: error: ‘size_t’ in namespace ‘std’ does not name a type
198 | _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:211:37: error: ‘std::size_t’ has not been declared
211 | find(const char_type* __s, std::size_t __n, const char_type& __a)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h: In static member function ‘static const __gnu_cxx::char_traits<_CharT>::char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:213:17: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
213 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:213:33: error: ‘__i’ was not declared in this scope; did you mean ‘__s’?
213 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __s
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:223:55: error: ‘std::size_t’ has not been declared
223 | move(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:254:55: error: ‘std::size_t’ has not been declared
254 | copy(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:274:33: error: ‘std::size_t’ has not been declared
274 | assign(char_type* __s, std::size_t __n, char_type __a)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h: In static member function ‘static __gnu_cxx::char_traits<_CharT>::char_type* __gnu_cxx::char_traits<_CharT>::assign(char_type*, int, char_type)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:296:21: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
296 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/char_traits.h:296:37: error: ‘__i’ was not declared in this scope; did you mean ‘__s’?
296 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __s
In file included from /nix/gcc/include/c++/14.2.1.20250322/x86_64-unknown-linux-gnu/bits/c++allocator.h:33,
from /nix/gcc/include/c++/14.2.1.20250322/bits/allocator.h:46,
from /nix/gcc/include/c++/14.2.1.20250322/string:43,
from /nix/gcc/include/c++/14.2.1.20250322/bits/locale_classes.h:40,
from /nix/gcc/include/c++/14.2.1.20250322/bits/ios_base.h:41,
from /nix/gcc/include/c++/14.2.1.20250322/ios:44:
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:67:20: error: ‘size_t’ in namespace ‘std’ does not name a type
67 | typedef std::size_t size_type;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:68:20: error: ‘ptrdiff_t’ in namespace ‘std’ does not name a type
68 | typedef std::ptrdiff_t difference_type;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:126:16: error: ‘size_type’ has not been declared
126 | allocate(size_type __n, const void* = static_cast<const void*>(0))
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:156:28: error: ‘size_type’ has not been declared
156 | deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__)))
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:181:7: error: ‘size_type’ does not name a type; did you mean ‘true_type’?
181 | size_type
| ^~~~~~~~~
| true_type
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:229:26: error: ‘size_type’ does not name a type; did you mean ‘true_type’?
229 | _GLIBCXX_CONSTEXPR size_type
| ^~~~~~~~~
| true_type
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h: In member function ‘_Tp* std::__new_allocator<_Tp>::allocate(int, const void*)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:138:29: error: ‘size_t’ is not a member of ‘std’; did you mean ‘size_t’?
138 | if (__n > (std::size_t(-1) / sizeof(_Tp)))
| ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:214:23: note: ‘size_t’ declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/string:46:
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h:48:40: error: ‘streamsize’ has not been declared
48 | const _CharT* __s, streamsize __n)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h: In function ‘void std::__ostream_write(basic_ostream<_CharT, _Traits>&, const _CharT*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h:53:13: error: ‘streamsize’ does not name a type
53 | const streamsize __put = __out.rdbuf()->sputn(__s, __n);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h:54:11: error: ‘__put’ was not declared in this scope; did you mean ‘__out’?
54 | if (__put != __n)
| ^~~~~
| __out
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h:60:59: error: ‘streamsize’ has not been declared
60 | __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h:80:41: error: ‘streamsize’ has not been declared
80 | const _CharT* __s, streamsize __n)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h: In function ‘std::basic_ostream<_CharT, _Traits>& std::__ostream_insert(basic_ostream<_CharT, _Traits>&, const _CharT*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h:90:21: error: ‘streamsize’ does not name a type
90 | const streamsize __w = __out.width();
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h:91:19: error: ‘__w’ was not declared in this scope; did you mean ‘__s’?
91 | if (__w > __n)
| ^~~
| __s
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h:121:68: error: ‘streamsize’ has not been declared
121 | extern template ostream& __ostream_insert(ostream&, const char*, streamsize);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream_insert.h:125:46: error: ‘streamsize’ has not been declared
125 | streamsize);
| ^~~~~~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/stl_iterator.h:65,
from /nix/gcc/include/c++/14.2.1.20250322/string:48:
/nix/gcc/include/c++/14.2.1.20250322/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++/14.2.1.20250322/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++/14.2.1.20250322/ext/type_traits.h:164:26: error: ‘nullptr_t’ is not a member of ‘std’; did you mean ‘nullptr_t’?
164 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/14.2.1/include/stddef.h:443:29: note: ‘nullptr_t’ declared here
443 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/ext/alloc_traits.h:34,
from /nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:39,
from /nix/gcc/include/c++/14.2.1.20250322/string:54:
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:482:36: error: ‘ptrdiff_t’ in namespace ‘std’ does not name a type
482 | using difference_type = std::ptrdiff_t;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:485:30: error: ‘size_t’ in namespace ‘std’ does not name a type
485 | using size_type = std::size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:514:37: error: ‘size_type’ has not been declared
514 | allocate(allocator_type& __a, size_type __n)
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:529:37: error: ‘size_type’ has not been declared
529 | allocate(allocator_type& __a, size_type __n,
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:549:52: error: ‘size_type’ has not been declared
549 | deallocate(allocator_type& __a, pointer __p, size_type __n)
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:609:35: error: ‘size_type’ does not name a type; did you mean ‘true_type’?
609 | static _GLIBCXX20_CONSTEXPR size_type
| ^~~~~~~~~
| true_type
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:659:36: error: ‘ptrdiff_t’ in namespace ‘std’ does not name a type
659 | using difference_type = std::ptrdiff_t;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:662:30: error: ‘size_t’ in namespace ‘std’ does not name a type
662 | using size_type = std::size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:684:33: error: ‘size_type’ has not been declared
684 | allocate(allocator_type&, size_type, const void* = nullptr) = delete;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:688:42: error: ‘size_type’ has not been declared
688 | deallocate(allocator_type&, void*, size_type) = delete;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:723:14: error: ‘size_type’ does not name a type; did you mean ‘true_type’?
723 | static size_type
| ^~~~~~~~~
| true_type
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4154:
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:57:58: error: ‘std::size_t’ has not been declared
57 | const char* __name, const _CharT* __str, std::size_t* __idx,
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:101:48: error: ‘std::size_t’ has not been declared
101 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:102:59: error: ‘std::size_t’ has not been declared
102 | __builtin_va_list), std::size_t __n,
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<char>, char>’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:94:24: required from ‘class std::__cxx11::basic_string<char>’
94 | rebind<_CharT>::other _Char_alloc_type;
| ^~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4165:68: required from here
4165 | { return __gnu_cxx::__stoa<long, int>(&std::strtol, "stoi", __str.c_str(),
| ^
/nix/gcc/include/c++/14.2.1.20250322/ext/alloc_traits.h:56:53: error: no type named ‘size_type’ in ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::_Base_type’ {aka ‘struct std::allocator_traits<std::allocator<char> >’}
56 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/alloc_traits.h:57:53: error: no type named ‘difference_type’ in ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::_Base_type’ {aka ‘struct std::allocator_traits<std::allocator<char> >’}
57 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/alloc_traits.h:65:23: error: ‘max_size’ has not been declared in ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::_Base_type’
65 | using _Base_type::max_size;
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘int std::__cxx11::stoi(const std::string&, size_t*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4165:40: error: no matching function for call to ‘__stoa<long int, int>(long int (*)(const char*, char**, int) noexcept, const char [5], const char*, size_t*&, int&)’
4165 | { return __gnu_cxx::__stoa<long, int>(&std::strtol, "stoi", __str.c_str(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4166 | __idx, __base); }
| ~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4166:41: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4166 | __idx, __base); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘long int std::__cxx11::stol(const std::string&, size_t*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4170:29: error: no matching function for call to ‘__stoa(long int (*)(const char*, char**, int) noexcept, const char [5], const char*, size_t*&, int&)’
4170 | { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4171 | __idx, __base); }
| ~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4171:30: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4171 | __idx, __base); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘long unsigned int std::__cxx11::stoul(const std::string&, size_t*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4175:29: error: no matching function for call to ‘__stoa(long unsigned int (*)(const char*, char**, int) noexcept, const char [6], const char*, size_t*&, int&)’
4175 | { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4176 | __idx, __base); }
| ~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4176:30: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4176 | __idx, __base); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘long long int std::__cxx11::stoll(const std::string&, size_t*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4181:29: error: no matching function for call to ‘__stoa(long long int (*)(const char*, char**, int) noexcept, const char [6], const char*, size_t*&, int&)’
4181 | { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4182 | __idx, __base); }
| ~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4182:30: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4182 | __idx, __base); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘long long unsigned int std::__cxx11::stoull(const std::string&, size_t*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4186:29: error: no matching function for call to ‘__stoa(long long unsigned int (*)(const char*, char**, int) noexcept, const char [7], const char*, size_t*&, int&)’
4186 | { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4187 | __idx, __base); }
| ~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4187:30: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4187 | __idx, __base); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘double std::__cxx11::stod(const std::string&, size_t*)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4200:29: error: no matching function for call to ‘__stoa(double (*)(const char*, char**) noexcept, const char [5], const char*, size_t*&)’
4200 | { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4200:67: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4200 | { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘float std::__cxx11::stof(const std::string&, size_t*)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4206:29: error: no matching function for call to ‘__stoa(float (*)(const char*, char**) noexcept, const char [5], const char*, size_t*&)’
4206 | { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4206:67: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4206 | { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘long double std::__cxx11::stold(const std::string&, size_t*)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4228:29: error: no matching function for call to ‘__stoa(long double (*)(const char*, char**) noexcept, const char [6], const char*, size_t*&)’
4228 | { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4228:69: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4228 | { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘std::string std::__cxx11::to_string(int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4249:11: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘__resize_and_overwrite’
4249 | __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) {
| ^~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘std::string std::__cxx11::to_string(unsigned int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4266:11: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘__resize_and_overwrite’
4266 | __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) {
| ^~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘std::string std::__cxx11::to_string(long int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4284:11: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘__resize_and_overwrite’
4284 | __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) {
| ^~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘std::string std::__cxx11::to_string(long unsigned int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4301:11: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘__resize_and_overwrite’
4301 | __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) {
| ^~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘std::string std::__cxx11::to_string(long long int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4317:11: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘__resize_and_overwrite’
4317 | __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) {
| ^~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘std::string std::__cxx11::to_string(long long unsigned int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4331:11: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘__resize_and_overwrite’
4331 | __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) {
| ^~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘std::string std::__cxx11::to_string(float)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4405:43: error: no matching function for call to ‘__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) noexcept, const int&, const char [3], float&)’
4405 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
4406 | "%f", __val);
| ~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:101:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)’
101 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:101:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4405:43: note: mismatched types ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
4405 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
4406 | "%f", __val);
| ~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘std::string std::__cxx11::to_string(double)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4415:43: error: no matching function for call to ‘__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) noexcept, const int&, const char [3], double&)’
4415 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
4416 | "%f", __val);
| ~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:101:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)’
101 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:101:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4415:43: note: mismatched types ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
4415 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
4416 | "%f", __val);
| ~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘std::string std::__cxx11::to_string(long double)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4425:43: error: no matching function for call to ‘__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) noexcept, const int&, const char [4], long double&)’
4425 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
4426 | "%Lf", __val);
| ~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:101:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)’
101 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:101:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4425:43: note: mismatched types ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
4425 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
4426 | "%Lf", __val);
| ~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:94:24: required from ‘class std::__cxx11::basic_string<wchar_t>’
94 | rebind<_CharT>::other _Char_alloc_type;
| ^~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4433:68: required from here
4433 | { return __gnu_cxx::__stoa<long, int>(&std::wcstol, "stoi", __str.c_str(),
| ^
/nix/gcc/include/c++/14.2.1.20250322/ext/alloc_traits.h:56:53: error: no type named ‘size_type’ in ‘__gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>::_Base_type’ {aka ‘struct std::allocator_traits<std::allocator<wchar_t> >’}
56 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/alloc_traits.h:57:53: error: no type named ‘difference_type’ in ‘__gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>::_Base_type’ {aka ‘struct std::allocator_traits<std::allocator<wchar_t> >’}
57 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/alloc_traits.h:65:23: error: ‘max_size’ has not been declared in ‘__gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>::_Base_type’
65 | using _Base_type::max_size;
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘int std::__cxx11::stoi(const std::wstring&, size_t*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4433:40: error: no matching function for call to ‘__stoa<long int, int>(long int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [5], const wchar_t*, size_t*&, int&)’
4433 | { return __gnu_cxx::__stoa<long, int>(&std::wcstol, "stoi", __str.c_str(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4434 | __idx, __base); }
| ~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4434:41: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4434 | __idx, __base); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘long int std::__cxx11::stol(const std::wstring&, size_t*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4438:29: error: no matching function for call to ‘__stoa(long int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [5], const wchar_t*, size_t*&, int&)’
4438 | { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4439 | __idx, __base); }
| ~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4439:30: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4439 | __idx, __base); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘long unsigned int std::__cxx11::stoul(const std::wstring&, size_t*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4443:29: error: no matching function for call to ‘__stoa(long unsigned int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [6], const wchar_t*, size_t*&, int&)’
4443 | { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4444 | __idx, __base); }
| ~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4444:30: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4444 | __idx, __base); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘long long int std::__cxx11::stoll(const std::wstring&, size_t*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4448:29: error: no matching function for call to ‘__stoa(long long int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [6], const wchar_t*, size_t*&, int&)’
4448 | { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4449 | __idx, __base); }
| ~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4449:30: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4449 | __idx, __base); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘long long unsigned int std::__cxx11::stoull(const std::wstring&, size_t*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4453:29: error: no matching function for call to ‘__stoa(long long unsigned int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [7], const wchar_t*, size_t*&, int&)’
4453 | { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4454 | __idx, __base); }
| ~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4454:30: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4454 | __idx, __base); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘float std::__cxx11::stof(const std::wstring&, size_t*)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4459:29: error: no matching function for call to ‘__stoa(float (*)(const wchar_t*, wchar_t**) noexcept, const char [5], const wchar_t*, size_t*&)’
4459 | { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4459:67: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4459 | { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘double std::__cxx11::stod(const std::wstring&, size_t*)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4463:29: error: no matching function for call to ‘__stoa(double (*)(const wchar_t*, wchar_t**) noexcept, const char [5], const wchar_t*, size_t*&)’
4463 | { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4463:67: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4463 | { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘long double std::__cxx11::stold(const std::wstring&, size_t*)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4467:29: error: no matching function for call to ‘__stoa(long double (*)(const wchar_t*, wchar_t**) noexcept, const char [6], const wchar_t*, size_t*&)’
4467 | { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: candidate: ‘template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)’
56 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/string_conversions.h:56:5: note: template argument deduction/substitution failed:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4467:69: note: cannot convert ‘__idx’ (type ‘size_t*’ {aka ‘long unsigned int*’}) to type ‘int*’
4467 | { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In function ‘std::wstring std::__cxx11::__to_wstring_numeric(const std::string&)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4531:51: error: ‘const std::string’ {aka ‘const class std::__cxx11::basic_string<char>’} has no member named ‘size’
4531 | return wstring(__s.data(), __s.data() + __s.size());
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4536:14: error: ‘std::wstring’ {aka ‘class std::__cxx11::basic_string<wchar_t>’} has no member named ‘__resize_and_overwrite’
4536 | __ws.__resize_and_overwrite(__s.size(),
| ^~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:4536:41: error: ‘const std::string’ {aka ‘const class std::__cxx11::basic_string<char>’} has no member named ‘size’
4536 | __ws.__resize_and_overwrite(__s.size(),
| ^~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/string:55:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.tcc: In function ‘std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Alloc>&)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.tcc:857:21: error: ‘streamsize’ does not name a type
857 | const streamsize __w = __in.width();
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.tcc:858:39: error: ‘__w’ was not declared in this scope; did you mean ‘__n’?
858 | const __size_type __n = __w > 0 ? static_cast<__size_type>(__w)
| ^~~
| __n
/nix/gcc/include/c++/14.2.1.20250322/bits/ios_base.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/ios_base.h:578:5: error: ‘streamsize’ does not name a type
578 | streamsize _M_precision;
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/ios_base.h:579:5: error: ‘streamsize’ does not name a type
579 | streamsize _M_width;
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/ios_base.h:751:5: error: ‘streamsize’ does not name a type
751 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/ios_base.h:760:5: error: ‘streamsize’ does not name a type
760 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/ios_base.h:774:5: error: ‘streamsize’ does not name a type
774 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/ios_base.h:783:5: error: ‘streamsize’ does not name a type
783 | streamsize
| ^~~~~~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/ios:45:
/nix/gcc/include/c++/14.2.1.20250322/streambuf:54:5: error: ‘streamsize’ does not name a type
54 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:151:14: error: ‘streamsize’ does not name a type
151 | friend streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:171:54: error: ‘streamsize’ has not been declared
171 | friend void __istream_extract(istream&, char*, streamsize);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:246:33: error: ‘streamsize’ has not been declared
246 | pubsetbuf(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:290:7: error: ‘streamsize’ does not name a type
290 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:363:7: error: ‘streamsize’ does not name a type
363 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:456:7: error: ‘streamsize’ does not name a type
456 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:598:26: error: ‘streamsize’ has not been declared
598 | setbuf(char_type*, streamsize)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:655:15: error: ‘streamsize’ does not name a type
655 | virtual streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:671:15: error: ‘streamsize’ does not name a type
671 | virtual streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:748:15: error: ‘streamsize’ does not name a type
748 | virtual streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:802:20: error: ‘streamsize’ has not been declared
802 | __safe_gbump(streamsize __n) { _M_in_cur += __n; }
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:805:20: error: ‘streamsize’ has not been declared
805 | __safe_pbump(streamsize __n) { _M_out_cur += __n; }
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:845:5: error: ‘streamsize’ does not name a type
845 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/streambuf:850:5: error: ‘streamsize’ does not name a type
850 | streamsize
| ^~~~~~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/streambuf:860:
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf.tcc:44:5: error: ‘streamsize’ does not name a type
44 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf.tcc:78:5: error: ‘streamsize’ does not name a type
78 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf.tcc:115:5: error: ‘streamsize’ does not name a type
115 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf.tcc:138:12: error: ‘streamsize’ does not name a type
138 | inline streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf.tcc:152:5: error: ‘streamsize’ is not a template function
152 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf.tcc:152:15: error: expected ‘;’ before ‘__copy_streambufs’
152 | streamsize
| ^
| ;
153 | __copy_streambufs(basic_streambuf<char>*,
| ~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf.tcc:160:5: error: ‘streamsize’ is not a template function
160 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf.tcc:160:15: error: expected ‘;’ before ‘__copy_streambufs’
160 | streamsize
| ^
| ;
161 | __copy_streambufs(basic_streambuf<wchar_t>*,
| ~~~~~~~~~~~~~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.h:48,
from /nix/gcc/include/c++/14.2.1.20250322/bits/basic_ios.h:37,
from /nix/gcc/include/c++/14.2.1.20250322/ios:46:
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h:324:34: error: ‘streamsize’ has not been declared
324 | _M_put(const _CharT* __ws, streamsize __len)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_move_a2(_CharT*, _CharT*, ostreambuf_iterator<_CharT, char_traits<_CharT> >)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h:359:13: error: ‘streamsize’ does not name a type
359 | const streamsize __num = __last - __first;
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h:360:11: error: ‘__num’ was not declared in this scope
360 | if (__num > 0)
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_move_a2(const _CharT*, const _CharT*, ostreambuf_iterator<_CharT, char_traits<_CharT> >)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h:371:13: error: ‘streamsize’ does not name a type
371 | const streamsize __num = __last - __first;
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h:372:11: error: ‘__num’ was not declared in this scope
372 | if (__num > 0)
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, _CharT*>::__type std::__copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h:394:21: error: ‘streamsize’ does not name a type
394 | const streamsize __n = __sb->egptr() - __sb->gptr();
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h:395:19: error: ‘__n’ was not declared in this scope; did you mean ‘__c’?
395 | if (__n > 1)
| ^~~
| __c
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h:452:15: error: ‘streamsize’ was not declared in this scope
452 | streamsize __n = __sb->egptr() - __sb->gptr();
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h:453:19: error: ‘__n’ was not declared in this scope; did you mean ‘__c’?
453 | if (__n > 1)
| ^~~
| __c
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, void>::__type std::advance(istreambuf_iterator<_CharT>&, _Distance)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h:494:11: error: ‘streamsize’ was not declared in this scope
494 | streamsize __size = __sb->egptr() - __sb->gptr();
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h:495:15: error: ‘__size’ was not declared in this scope; did you mean ‘dysize’?
495 | if (__size > __n)
| ^~~~~~
| dysize
/nix/gcc/include/c++/14.2.1.20250322/bits/streambuf_iterator.h:501:30: error: ‘__size’ was not declared in this scope; did you mean ‘dysize’?
501 | __sb->__safe_gbump(__size);
| ^~~~~~
| dysize
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.h:102:36: error: ‘streamsize’ has not been declared
102 | const _CharT* __olds, streamsize __newlen, streamsize __oldlen);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.h:102:57: error: ‘streamsize’ has not been declared
102 | const _CharT* __olds, streamsize __newlen, streamsize __oldlen);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.h:2522:32: error: ‘streamsize’ has not been declared
2522 | _M_pad(char_type __fill, streamsize __w, ios_base& __io,
| ^~~~~~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.h:2699:
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc: In member function ‘void std::__numpunct_cache<_CharT>::_M_cache(const std::locale&)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:88:34: error: ‘const std::string’ {aka ‘const class std::__cxx11::basic_string<char>’} has no member named ‘size’
88 | _M_grouping_size = __g.size();
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:90:15: error: ‘const std::string’ {aka ‘const class std::__cxx11::basic_string<char>’} has no member named ‘copy’
90 | __g.copy(__grouping, _M_grouping_size);
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc: In member function ‘_InIter std::num_get<_CharT, _InIter>::_M_extract_float(_InIter, _InIter, std::ios_base&, std::ios_base::iostate&, std::string&) const’:
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:211:33: error: no matching function for call to ‘std::__cxx11::basic_string<char>::reserve(int)’
211 | __found_grouping.reserve(32);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1215:7: note: candidate: ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
1215 | reserve();
| ^~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1215:7: note: candidate expects 0 arguments, 1 provided
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:296:42: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘size’
296 | if (__found_grouping.size())
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:319:42: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘size’
319 | if (__found_grouping.size() && !__found_dec)
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:355:28: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘size’
355 | if (__found_grouping.size())
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc: In member function ‘_InIter std::num_get<_CharT, _InIter>::_M_extract_int(_InIter, _InIter, std::ios_base&, std::ios_base::iostate&, _ValueT&) const’:
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:469:35: error: no matching function for call to ‘std::__cxx11::basic_string<char>::reserve(int)’
469 | __found_grouping.reserve(32);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1215:7: note: candidate: ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
1215 | reserve();
| ^~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1215:7: note: candidate expects 0 arguments, 1 provided
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:555:30: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘size’
555 | if (__found_grouping.size())
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:568:63: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘size’
568 | if ((!__sep_pos && !__found_zero && !__found_grouping.size())
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc: In member function ‘virtual _InIter std::num_get<_CharT, _InIter>::do_get(iter_type, iter_type, std::ios_base&, std::ios_base::iostate&, float&) const’:
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:695:21: error: no matching function for call to ‘std::__cxx11::basic_string<char>::reserve(int)’
695 | __xtrc.reserve(32);
| ~~~~~~~~~~~~~~^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1215:7: note: candidate: ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
1215 | reserve();
| ^~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1215:7: note: candidate expects 0 arguments, 1 provided
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc: In member function ‘virtual _InIter std::num_get<_CharT, _InIter>::do_get(iter_type, iter_type, std::ios_base&, std::ios_base::iostate&, double&) const’:
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:710:21: error: no matching function for call to ‘std::__cxx11::basic_string<char>::reserve(int)’
710 | __xtrc.reserve(32);
| ~~~~~~~~~~~~~~^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1215:7: note: candidate: ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
1215 | reserve();
| ^~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1215:7: note: candidate expects 0 arguments, 1 provided
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc: In member function ‘virtual _InIter std::num_get<_CharT, _InIter>::do_get(iter_type, iter_type, std::ios_base&, std::ios_base::iostate&, long double&) const’:
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:742:21: error: no matching function for call to ‘std::__cxx11::basic_string<char>::reserve(int)’
742 | __xtrc.reserve(32);
| ~~~~~~~~~~~~~~^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1215:7: note: candidate: ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
1215 | reserve();
| ^~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1215:7: note: candidate expects 0 arguments, 1 provided
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:801:27: error: ‘streamsize’ has not been declared
801 | _M_pad(_CharT __fill, streamsize __w, ios_base& __io,
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc: In member function ‘_OutIter std::num_put<_CharT, _OutIter>::_M_insert_int(_OutIter, std::ios_base&, _CharT, _ValueT) const’:
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:942:15: error: ‘streamsize’ does not name a type
942 | const streamsize __w = __io.width();
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:943:13: error: ‘__w’ was not declared in this scope; did you mean ‘__u’?
943 | if (__w > static_cast<streamsize>(__len))
| ^~~
| __u
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:943:31: error: ‘streamsize’ does not name a type
943 | if (__w > static_cast<streamsize>(__len))
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:950:14: error: ‘class std::ios_base’ has no member named ‘width’
950 | __io.width(0);
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc: In member function ‘_OutIter std::num_put<_CharT, _OutIter>::_M_insert_float(_OutIter, std::ios_base&, _CharT, char, _ValueT) const’:
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1005:15: error: ‘streamsize’ does not name a type
1005 | const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision();
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1027:49: error: ‘__prec’ was not declared in this scope
1027 | __fbuf, __prec, __v);
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1039:53: error: ‘__prec’ was not declared in this scope
1039 | __fbuf, __prec, __v);
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1092:13: error: ‘streamsize’ was not declared in this scope
1092 | streamsize __off = 0;
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1095:17: error: ‘__off’ was not declared in this scope
1095 | __off = 1;
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1101:66: error: ‘__off’ was not declared in this scope
1101 | __lc->_M_thousands_sep, __wp, __ws2 + __off,
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1109:15: error: ‘streamsize’ does not name a type
1109 | const streamsize __w = __io.width();
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1110:13: error: ‘__w’ was not declared in this scope; did you mean ‘__p’?
1110 | if (__w > static_cast<streamsize>(__len))
| ^~~
| __p
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1110:31: error: ‘streamsize’ does not name a type
1110 | if (__w > static_cast<streamsize>(__len))
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1117:14: error: ‘class std::ios_base’ has no member named ‘width’
1117 | __io.width(0);
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc: In member function ‘virtual _OutIter std::num_put<_CharT, _OutIter>::do_put(iter_type, std::ios_base&, char_type, bool) const’:
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1147:17: error: ‘streamsize’ does not name a type
1147 | const streamsize __w = __io.width();
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1148:15: error: ‘__w’ was not declared in this scope; did you mean ‘__s’?
1148 | if (__w > static_cast<streamsize>(__len))
| ^~~
| __s
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1148:33: error: ‘streamsize’ does not name a type
1148 | if (__w > static_cast<streamsize>(__len))
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1150:21: error: ‘streamsize’ does not name a type
1150 | const streamsize __plen = __w - __len;
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1153:59: error: ‘__plen’ was not declared in this scope; did you mean ‘__len’?
1153 | * __plen));
| ^~~~~~
| __len
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1156:20: error: ‘class std::ios_base’ has no member named ‘width’
1156 | __io.width(0);
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1170:16: error: ‘class std::ios_base’ has no member named ‘width’
1170 | __io.width(0);
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1243:36: error: ‘streamsize’ has not been declared
1243 | streamsize __newlen, streamsize __oldlen)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/locale_facets.tcc:1243:57: error: ‘streamsize’ has not been declared
1243 | streamsize __newlen, streamsize __oldlen)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ostream:391:35: error: ‘streamsize’ has not been declared
391 | write(const char_type* __s, streamsize __n);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ostream:476:38: error: ‘streamsize’ has not been declared
476 | _M_write(const char_type* __s, streamsize __n)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ostream: In function ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)’:
/nix/gcc/include/c++/14.2.1.20250322/ostream:660:38: error: ‘streamsize’ does not name a type
660 | static_cast<streamsize>(_Traits::length(__s)));
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ostream: In function ‘std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)’:
/nix/gcc/include/c++/14.2.1.20250322/ostream:677:38: error: ‘streamsize’ does not name a type
677 | static_cast<streamsize>(_Traits::length(__s)));
| ^~~~~~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/ostream:1022:
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream.tcc: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/ostream.tcc:188:30: error: ‘streamsize’ has not been declared
188 | write(const _CharT* __s, streamsize __n)
| ^~~~~~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/iostream:42:
/nix/gcc/include/c++/14.2.1.20250322/istream:84:7: error: ‘streamsize’ does not name a type
84 | streamsize _M_gcount;
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:361:7: error: ‘streamsize’ does not name a type
361 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:436:27: error: ‘streamsize’ has not been declared
436 | get(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:447:27: error: ‘streamsize’ has not been declared
447 | get(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:509:31: error: ‘streamsize’ has not been declared
509 | getline(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:520:31: error: ‘streamsize’ has not been declared
520 | getline(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:544:14: error: ‘streamsize’ has not been declared
544 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:547:14: error: ‘streamsize’ has not been declared
547 | ignore(streamsize __n);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:579:28: error: ‘streamsize’ has not been declared
579 | read(char_type* __s, streamsize __n);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:597:7: error: ‘streamsize’ does not name a type
597 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream: In constructor ‘std::basic_istream<_CharT, _Traits>::basic_istream(__streambuf_type*)’:
/nix/gcc/include/c++/14.2.1.20250322/istream:96:9: error: class ‘std::basic_istream<_CharT, _Traits>’ does not have any field named ‘_M_gcount’
96 | : _M_gcount(streamsize(0))
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:96:19: error: there are no arguments to ‘streamsize’ that depend on a template parameter, so a declaration of ‘streamsize’ must be available [-fpermissive]
96 | : _M_gcount(streamsize(0))
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:96:19: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/nix/gcc/include/c++/14.2.1.20250322/istream: In destructor ‘virtual std::basic_istream<_CharT, _Traits>::~basic_istream()’:
/nix/gcc/include/c++/14.2.1.20250322/istream:106:9: error: ‘_M_gcount’ was not declared in this scope
106 | { _M_gcount = streamsize(0); }
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:106:21: error: there are no arguments to ‘streamsize’ that depend on a template parameter, so a declaration of ‘streamsize’ must be available [-fpermissive]
106 | { _M_gcount = streamsize(0); }
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream: In constructor ‘std::basic_istream<_CharT, _Traits>::basic_istream()’:
/nix/gcc/include/c++/14.2.1.20250322/istream:700:9: error: class ‘std::basic_istream<_CharT, _Traits>’ does not have any field named ‘_M_gcount’
700 | : _M_gcount(streamsize(0))
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:700:19: error: there are no arguments to ‘streamsize’ that depend on a template parameter, so a declaration of ‘streamsize’ must be available [-fpermissive]
700 | : _M_gcount(streamsize(0))
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream: In constructor ‘std::basic_istream<_CharT, _Traits>::basic_istream(std::basic_istream<_CharT, _Traits>&&)’:
/nix/gcc/include/c++/14.2.1.20250322/istream:707:23: error: class ‘std::basic_istream<_CharT, _Traits>’ does not have any field named ‘_M_gcount’
707 | : __ios_type(), _M_gcount(__rhs._M_gcount)
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream: In member function ‘void std::basic_istream<_CharT, _Traits>::swap(std::basic_istream<_CharT, _Traits>&)’:
/nix/gcc/include/c++/14.2.1.20250322/istream:728:19: error: ‘_M_gcount’ was not declared in this scope
728 | std::swap(_M_gcount, __rhs._M_gcount);
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/istream:741:29: error: ‘streamsize’ has not been declared
741 | getline(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:745:5: error: ‘std::basic_istream<char>& std::basic_istream<char>::ignore’ is not a static data member of ‘class std::basic_istream<char>’
745 | basic_istream<char>::
| ^~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:746:12: error: ‘streamsize’ was not declared in this scope
746 | ignore(streamsize __n);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:750:5: error: ‘std::basic_istream<char>& std::basic_istream<char>::ignore’ is not a static data member of ‘class std::basic_istream<char>’
750 | basic_istream<char>::
| ^~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:751:12: error: ‘streamsize’ was not declared in this scope
751 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:751:37: error: expected primary-expression before ‘__delim’
751 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:751:44: error: expression list treated as compound expression in initializer [-fpermissive]
751 | ignore(streamsize __n, int_type __delim);
| ^
/nix/gcc/include/c++/14.2.1.20250322/istream:757:29: error: ‘streamsize’ has not been declared
757 | getline(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:761:5: error: ‘std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore’ is not a static data member of ‘class std::basic_istream<wchar_t>’
761 | basic_istream<wchar_t>::
| ^~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:762:12: error: ‘streamsize’ was not declared in this scope
762 | ignore(streamsize __n);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:766:5: error: ‘std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore’ is not a static data member of ‘class std::basic_istream<wchar_t>’
766 | basic_istream<wchar_t>::
| ^~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:767:12: error: ‘streamsize’ was not declared in this scope
767 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:767:37: error: expected primary-expression before ‘__delim’
767 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:767:44: error: expression list treated as compound expression in initializer [-fpermissive]
767 | ignore(streamsize __n, int_type __delim);
| ^
/nix/gcc/include/c++/14.2.1.20250322/istream:861:65: error: ‘streamsize’ has not been declared
861 | __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:863:43: error: ‘streamsize’ has not been declared
863 | void __istream_extract(istream&, char*, streamsize);
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream: In function ‘std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)’:
/nix/gcc/include/c++/14.2.1.20250322/istream:913:11: error: ‘streamsize’ was not declared in this scope
913 | streamsize __w = __in.width();
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/istream:915:31: error: ‘__w’ was not declared in this scope; did you mean ‘__n’?
915 | if (__in.good() && (__w <= 0 || __n < (size_t)__w))
| ^~~
| __n
/nix/gcc/include/c++/14.2.1.20250322/istream:929:11: error: ‘streamsize’ was not declared in this scope
929 | streamsize __n = __gnu_cxx::__numeric_traits<streamsize>::__max;
| ^~~~~~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/istream:1109:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::get()’:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:265:7: error: ‘_M_gcount’ was not declared in this scope
265 | _M_gcount = 0;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(char_type&)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:299:7: error: ‘_M_gcount’ was not declared in this scope
299 | _M_gcount = 0;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:334:25: error: ‘streamsize’ has not been declared
334 | get(char_type* __s, streamsize __n, char_type __delim)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(char_type*, int, char_type)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:336:7: error: ‘_M_gcount’ was not declared in this scope
336 | _M_gcount = 0;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(__streambuf_type&, char_type)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:383:7: error: ‘_M_gcount’ was not declared in this scope
383 | _M_gcount = 0;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:412:59: error: ‘streamsize’ was not declared in this scope
412 | if (__gcount <= __gnu_cxx::__numeric_traits<streamsize>::__max)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:412:69: error: template argument 1 is invalid
412 | if (__gcount <= __gnu_cxx::__numeric_traits<streamsize>::__max)
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:435:29: error: ‘streamsize’ has not been declared
435 | getline(char_type* __s, streamsize __n, char_type __delim)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(char_type*, int, char_type)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:437:7: error: ‘_M_gcount’ was not declared in this scope
437 | _M_gcount = 0;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore()’:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:497:7: error: ‘_M_gcount’ was not declared in this scope
497 | _M_gcount = 0;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:527:5: error: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’ is not a static data member of ‘class std::basic_istream<_CharT, _Traits>’
527 | basic_istream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:528:12: error: template definition of non-template ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’
528 | ignore(streamsize __n)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:528:12: error: ‘streamsize’ was not declared in this scope
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:597:5: error: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’ is not a static data member of ‘class std::basic_istream<_CharT, _Traits>’
597 | basic_istream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:598:12: error: template definition of non-template ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’
598 | ignore(streamsize __n, int_type __delim)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:598:12: error: ‘streamsize’ was not declared in this scope
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:598:37: error: expected primary-expression before ‘__delim’
598 | ignore(streamsize __n, int_type __delim)
| ^~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::peek()’:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:678:7: error: ‘_M_gcount’ was not declared in this scope
678 | _M_gcount = 0;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:705:26: error: ‘streamsize’ has not been declared
705 | read(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::read(char_type*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:707:7: error: ‘_M_gcount’ was not declared in this scope
707 | _M_gcount = 0;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:732:5: error: ‘streamsize’ does not name a type
732 | streamsize
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::putback(char_type)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:770:7: error: ‘_M_gcount’ was not declared in this scope
770 | _M_gcount = 0;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::unget()’:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:805:7: error: ‘_M_gcount’ was not declared in this scope
805 | _M_gcount = 0;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:1011:23: error: ‘streamsize’ has not been declared
1011 | streamsize __num)
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: In function ‘void std::__istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, int)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:1019:7: error: ‘streamsize’ was not declared in this scope
1019 | streamsize __extracted = 0;
| ^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:1027:25: error: expected ‘;’ before ‘__width’
1027 | streamsize __width = __in.width();
| ^~~~~~~~
| ;
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:1028:23: error: ‘__width’ was not declared in this scope; did you mean ‘wcwidth’?
1028 | if (0 < __width && __width < __num)
| ^~~~~~~
| wcwidth
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:1037:22: error: ‘__extracted’ was not declared in this scope
1037 | while (__extracted < __num - 1
| ^~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:1047:19: error: ‘__extracted’ was not declared in this scope
1047 | if (__extracted < __num - 1
| ^~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:1064:12: error: ‘__extracted’ was not declared in this scope
1064 | if (!__extracted)
| ^~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/istream.tcc:1155:63: error: ‘streamsize’ has not been declared
1155 | extern template void __istream_extract(wistream&, wchar_t*, streamsize);
| ^~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:14:5: error: reference to ‘min’ is ambiguous
14 | min=p*m;
| ^~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/string:51:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:281:5: note: candidates are: ‘template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)’
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:233:5: note: ‘template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)’
233 | min(const _Tp& __a, const _Tp& __b)
| ^~~
foo.cc:5:8: note: ‘long int min’
5 | long n,min,a,p,m;
| ^~~
foo.cc:22:12: error: reference to ‘min’ is ambiguous
22 | if(min>m*p)
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:281:5: note: candidates are: ‘template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)’
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:233:5: note: ‘template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)’
233 | min(const _Tp& __a, const _Tp& __b)
| ^~~
foo.cc:5:8: note: ‘long int min’
5 | long n,min,a,p,m;
| ^~~
foo.cc:23:13: error: reference to ‘min’ is ambiguous
23 | min=m*p;
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:281:5: note: candidates are: ‘template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)’
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:233:5: note: ‘template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)’
233 | min(const _Tp& __a, const _Tp& __b)
| ^~~
foo.cc:5:8: note: ‘long int min’
5 | long n,min,a,p,m;
| ^~~
foo.cc:25:11: error: reference to ‘min’ is ambiguous
25 | cout<<min<<endl;
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:281:5: note: candidates are: ‘template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)’
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:233:5: note: ‘template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)’
233 | min(const _Tp& __a, const _Tp& __b)
| ^~~
foo.cc:5:8: note: ‘long int min’
5 | long n,min,a,p,m;
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, __cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]’:
/nix/gcc/include/c++/14.2.1.20250322/system_error:566:51: required from here
566 | : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { }
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:3721:36: error: no matching function for call to ‘std::__cxx11::basic_string<char>::insert(int, const char*&)’
3721 | { return std::move(__rhs.insert(0, __lhs)); }
| ~~~~~~~~~~~~^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1876:9: note: candidate: ‘template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(const_iterator, _InputIterator, _InputIterator) [with <template-parameter-2-2> = _InputIterator; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
1876 | insert(const_iterator __p, _InputIterator __beg, _InputIterator __end)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1876:9: note: candidate expects 3 arguments, 2 provided
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1911:7: note: candidate: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(const_iterator, std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; iterator = std::__cxx11::basic_string<char>::iterator; const_iterator = std::__cxx11::basic_string<char>::const_iterator]’
1911 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1911:29: note: no known conversion for argument 1 from ‘int’ to ‘std::__cxx11::basic_string<char>::const_iterator’
1911 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ~~~~~~~~~~~~~~~^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:2051:7: note: candidate: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(__const_iterator, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; iterator = std::__cxx11::basic_string<char>::iterator; __const_iterator = std::__cxx11::basic_string<char>::const_iterator]’
2051 | insert(__const_iterator __p, _CharT __c)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:2051:31: note: no known conversion for argument 1 from ‘int’ to ‘std::__cxx11::basic_string<char>::__const_iterator’ {aka ‘std::__cxx11::basic_string<char>::const_iterator’}
2051 | insert(__const_iterator __p, _CharT __c)
| ~~~~~~~~~~~~~~~~~^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Alloc>&, __cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]’:
/nix/gcc/include/c++/14.2.1.20250322/system_error:566:52: required from here
566 | : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { }
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:3691:36: error: no matching function for call to ‘std::__cxx11::basic_string<char>::insert(int, const std::__cxx11::basic_string<char>&)’
3691 | { return std::move(__rhs.insert(0, __lhs)); }
| ~~~~~~~~~~~~^~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1876:9: note: candidate: ‘template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(const_iterator, _InputIterator, _InputIterator) [with <template-parameter-2-2> = _InputIterator; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
1876 | insert(const_iterator __p, _InputIterator __beg, _InputIterator __end)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1876:9: note: candidate expects 3 arguments, 2 provided
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1911:7: note: candidate: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(const_iterator, std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; iterator = std::__cxx11::basic_string<char>::iterator; const_iterator = std::__cxx11::basic_string<char>::const_iterator]’
1911 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:1911:29: note: no known conversion for argument 1 from ‘int’ to ‘std::__cxx11::basic_string<char>::const_iterator’
1911 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ~~~~~~~~~~~~~~~^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:2051:7: note: candidate: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(__const_iterator, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; iterator = std::__cxx11::basic_string<char>::iterator; __const_iterator = std::__cxx11::basic_string<char>::const_iterator]’
2051 | insert(__const_iterator __p, _CharT __c)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/basic_string.h:2051:31: note: no known conversion for argument 1 from ‘int’ to ‘std::__cxx11::basic_string<char>::__const_iterator’ {aka ‘std::__cxx11::basic_string<char>::const_iterator’}
2051 | insert(__const_iterator __p, _CharT __c)
| ~~~~~~~~~~~~~~~~~^~~