/ Vijos /

记录详情

Compile Error

foo.cc:1:5: error: stray ‘##’ in program
    1 |     ###C++ CODE
      |     ^~
foo.cc:1:7: error: stray ‘#’ in program
    1 |     ###C++ CODE
      |       ^
foo.cc:1:8: error: ‘C’ does not name a type
    1 |     ###C++ CODE
      |        ^
In file included from /nix/gcc/include/c++/13.3.0/cmath:47,
                 from /nix/gcc/include/c++/13.3.0/math.h:36,
                 from foo.cc:3:
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:349:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  349 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:354:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  354 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:360:1: error: ‘__intmax_t’ does not name a type; did you mean ‘__int128_t’?
  360 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/mathcalls.h:366:1: error: ‘__uintmax_t’ does not name a type; did you mean ‘__uint128_t’?
  366 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
In file included from /nix/gcc/include/c++/13.3.0/bits/std_abs.h:38,
                 from /nix/gcc/include/c++/13.3.0/cmath:49:
/nix/glibc-2.39-52-dev/include/stdlib.h:98:8: error: ‘size_t’ does not name a type
   98 | extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:42:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
   41 | # include <bits/waitstatus.h>
  +++ |+#include <cstddef>
   42 | 
/nix/glibc-2.39-52-dev/include/stdlib.h:278:36: error: ‘size_t’ has not been declared
  278 | extern int strfromd (char *__dest, size_t __size, const char *__format,
      |                                    ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:282:36: error: ‘size_t’ has not been declared
  282 | extern int strfromf (char *__dest, size_t __size, const char *__format,
      |                                    ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:286:36: error: ‘size_t’ has not been declared
  286 | extern int strfroml (char *__dest, size_t __size, const char *__format,
      |                                    ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:298:38: error: ‘size_t’ has not been declared
  298 | extern int strfromf32 (char *__dest, size_t __size, const char * __format,
      |                                      ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:304:38: error: ‘size_t’ has not been declared
  304 | extern int strfromf64 (char *__dest, size_t __size, const char * __format,
      |                                      ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:310:39: error: ‘size_t’ has not been declared
  310 | extern int strfromf128 (char *__dest, size_t __size, const char * __format,
      |                                       ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:316:39: error: ‘size_t’ has not been declared
  316 | extern int strfromf32x (char *__dest, size_t __size, const char * __format,
      |                                       ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:322:39: error: ‘size_t’ has not been declared
  322 | extern int strfromf64x (char *__dest, size_t __size, const char * __format,
      |                                       ^~~~~~
In file included from /nix/glibc-2.39-52-dev/include/stdlib.h:514:
/nix/glibc-2.39-52-dev/include/sys/types.h:33:9: error: ‘__u_char’ does not name a type
   33 | typedef __u_char u_char;
      |         ^~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:34:9: error: ‘__u_short’ does not name a type
   34 | typedef __u_short u_short;
      |         ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:35:9: error: ‘__u_int’ does not name a type
   35 | typedef __u_int u_int;
      |         ^~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:36:9: error: ‘__u_long’ does not name a type
   36 | typedef __u_long u_long;
      |         ^~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:37:9: error: ‘__quad_t’ does not name a type
   37 | typedef __quad_t quad_t;
      |         ^~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:38:9: error: ‘__u_quad_t’ does not name a type
   38 | typedef __u_quad_t u_quad_t;
      |         ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:39:9: error: ‘__fsid_t’ does not name a type
   39 | typedef __fsid_t fsid_t;
      |         ^~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:42:9: error: ‘__loff_t’ does not name a type
   42 | typedef __loff_t loff_t;
      |         ^~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:47:9: error: ‘__ino_t’ does not name a type
   47 | typedef __ino_t ino_t;
      |         ^~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:54:9: error: ‘__ino64_t’ does not name a type
   54 | typedef __ino64_t ino64_t;
      |         ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:59:9: error: ‘__dev_t’ does not name a type
   59 | typedef __dev_t dev_t;
      |         ^~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:64:9: error: ‘__gid_t’ does not name a type
   64 | typedef __gid_t gid_t;
      |         ^~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:69:9: error: ‘__mode_t’ does not name a type; did you mean ‘__locale_t’?
   69 | typedef __mode_t mode_t;
      |         ^~~~~~~~
      |         __locale_t
/nix/glibc-2.39-52-dev/include/sys/types.h:74:9: error: ‘__nlink_t’ does not name a type
   74 | typedef __nlink_t nlink_t;
      |         ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:79:9: error: ‘__uid_t’ does not name a type
   79 | typedef __uid_t uid_t;
      |         ^~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:97:9: error: ‘__pid_t’ does not name a type
   97 | typedef __pid_t pid_t;
      |         ^~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:103:9: error: ‘__id_t’ does not name a type
  103 | typedef __id_t id_t;
      |         ^~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:114:9: error: ‘__daddr_t’ does not name a type
  114 | typedef __daddr_t daddr_t;
      |         ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:115:9: error: ‘__caddr_t’ does not name a type
  115 | typedef __caddr_t caddr_t;
      |         ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:121:9: error: ‘__key_t’ does not name a type
  121 | typedef __key_t key_t;
      |         ^~~~~~~
In file included from /nix/glibc-2.39-52-dev/include/sys/types.h:126:
/nix/glibc-2.39-52-dev/include/bits/types/clock_t.h:7:9: error: ‘__clock_t’ does not name a type
    7 | typedef __clock_t clock_t;
      |         ^~~~~~~~~
In file included from /nix/glibc-2.39-52-dev/include/sys/types.h:128:
/nix/glibc-2.39-52-dev/include/bits/types/clockid_t.h:7:9: error: ‘__clockid_t’ does not name a type
    7 | typedef __clockid_t clockid_t;
      |         ^~~~~~~~~~~
In file included from /nix/glibc-2.39-52-dev/include/sys/types.h:129:
/nix/glibc-2.39-52-dev/include/bits/types/time_t.h:10:9: error: ‘__time_t’ does not name a type
   10 | typedef __time_t time_t;
      |         ^~~~~~~~
In file included from /nix/glibc-2.39-52-dev/include/sys/types.h:130:
/nix/glibc-2.39-52-dev/include/bits/types/timer_t.h:7:9: error: ‘__timer_t’ does not name a type
    7 | typedef __timer_t timer_t;
      |         ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:134:9: error: ‘__useconds_t’ does not name a type
  134 | typedef __useconds_t useconds_t;
      |         ^~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:138:9: error: ‘__suseconds_t’ does not name a type
  138 | typedef __suseconds_t suseconds_t;
      |         ^~~~~~~~~~~~~
In file included from /nix/glibc-2.39-52-dev/include/sys/types.h:155:
/nix/glibc-2.39-52-dev/include/bits/stdint-intn.h:24:9: error: ‘__int8_t’ does not name a type; did you mean ‘__int128_t’?
   24 | typedef __int8_t int8_t;
      |         ^~~~~~~~
      |         __int128_t
/nix/glibc-2.39-52-dev/include/bits/stdint-intn.h:25:9: error: ‘__int16_t’ does not name a type; did you mean ‘__int128_t’?
   25 | typedef __int16_t int16_t;
      |         ^~~~~~~~~
      |         __int128_t
/nix/glibc-2.39-52-dev/include/bits/stdint-intn.h:26:9: error: ‘__int32_t’ does not name a type; did you mean ‘__int128_t’?
   26 | typedef __int32_t int32_t;
      |         ^~~~~~~~~
      |         __int128_t
/nix/glibc-2.39-52-dev/include/bits/stdint-intn.h:27:9: error: ‘__int64_t’ does not name a type; did you mean ‘__int128_t’?
   27 | typedef __int64_t int64_t;
      |         ^~~~~~~~~
      |         __int128_t
/nix/glibc-2.39-52-dev/include/sys/types.h:158:9: error: ‘__uint8_t’ does not name a type; did you mean ‘__uint128_t’?
  158 | typedef __uint8_t u_int8_t;
      |         ^~~~~~~~~
      |         __uint128_t
/nix/glibc-2.39-52-dev/include/sys/types.h:159:9: error: ‘__uint16_t’ does not name a type; did you mean ‘__uint128_t’?
  159 | typedef __uint16_t u_int16_t;
      |         ^~~~~~~~~~
      |         __uint128_t
/nix/glibc-2.39-52-dev/include/sys/types.h:160:9: error: ‘__uint32_t’ does not name a type; did you mean ‘__uint128_t’?
  160 | typedef __uint32_t u_int32_t;
      |         ^~~~~~~~~~
      |         __uint128_t
/nix/glibc-2.39-52-dev/include/sys/types.h:161:9: error: ‘__uint64_t’ does not name a type; did you mean ‘__uint128_t’?
  161 | typedef __uint64_t u_int64_t;
      |         ^~~~~~~~~~
      |         __uint128_t
In file included from /nix/glibc-2.39-52-dev/include/endian.h:35,
                 from /nix/glibc-2.39-52-dev/include/sys/types.h:176:
/nix/glibc-2.39-52-dev/include/bits/byteswap.h:33:17: error: ‘__uint16_t’ does not name a type; did you mean ‘__uint128_t’?
   33 | static __inline __uint16_t
      |                 ^~~~~~~~~~
      |                 __uint128_t
/nix/glibc-2.39-52-dev/include/bits/byteswap.h:48:17: error: ‘__uint32_t’ does not name a type; did you mean ‘__uint128_t’?
   48 | static __inline __uint32_t
      |                 ^~~~~~~~~~
      |                 __uint128_t
/nix/glibc-2.39-52-dev/include/bits/byteswap.h:69:31: error: ‘__uint64_t’ does not name a type; did you mean ‘__uint128_t’?
   69 | __extension__ static __inline __uint64_t
      |                               ^~~~~~~~~~
      |                               __uint128_t
In file included from /nix/glibc-2.39-52-dev/include/endian.h:36:
/nix/glibc-2.39-52-dev/include/bits/uintn-identity.h:32:17: error: ‘__uint16_t’ does not name a type; did you mean ‘__uint128_t’?
   32 | static __inline __uint16_t
      |                 ^~~~~~~~~~
      |                 __uint128_t
/nix/glibc-2.39-52-dev/include/bits/uintn-identity.h:38:17: error: ‘__uint32_t’ does not name a type; did you mean ‘__uint128_t’?
   38 | static __inline __uint32_t
      |                 ^~~~~~~~~~
      |                 __uint128_t
/nix/glibc-2.39-52-dev/include/bits/uintn-identity.h:44:17: error: ‘__uint64_t’ does not name a type; did you mean ‘__uint128_t’?
   44 | static __inline __uint64_t
      |                 ^~~~~~~~~~
      |                 __uint128_t
In file included from /nix/glibc-2.39-52-dev/include/sys/select.h:37,
                 from /nix/glibc-2.39-52-dev/include/sys/types.h:179:
/nix/glibc-2.39-52-dev/include/bits/types/struct_timeval.h:14:3: error: ‘__time_t’ does not name a type; did you mean ‘__sigset_t’?
   14 |   __time_t tv_sec;              /* Seconds.  */
      |   ^~~~~~~~
      |   __sigset_t
/nix/glibc-2.39-52-dev/include/bits/types/struct_timeval.h:15:3: error: ‘__suseconds_t’ does not name a type
   15 |   __suseconds_t tv_usec;        /* Microseconds.  */
      |   ^~~~~~~~~~~~~
In file included from /nix/glibc-2.39-52-dev/include/sys/select.h:39:
/nix/glibc-2.39-52-dev/include/bits/types/struct_timespec.h:16:3: error: ‘__time_t’ does not name a type; did you mean ‘__sigset_t’?
   16 |   __time_t tv_sec;              /* Seconds.  */
      |   ^~~~~~~~
      |   __sigset_t
/nix/glibc-2.39-52-dev/include/bits/types/struct_timespec.h:21:3: error: ‘__syscall_slong_t’ does not name a type
   21 |   __syscall_slong_t tv_nsec;    /* Nanoseconds.  */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:185:9: error: ‘__blksize_t’ does not name a type
  185 | typedef __blksize_t blksize_t;
      |         ^~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:192:9: error: ‘__blkcnt_t’ does not name a type
  192 | typedef __blkcnt_t blkcnt_t;     /* Type to count number of disk blocks.  */
      |         ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:196:9: error: ‘__fsblkcnt_t’ does not name a type
  196 | typedef __fsblkcnt_t fsblkcnt_t; /* Type to count file system blocks.  */
      |         ^~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:200:9: error: ‘__fsfilcnt_t’ does not name a type
  200 | typedef __fsfilcnt_t fsfilcnt_t; /* Type to count file system inodes.  */
      |         ^~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:219:9: error: ‘__blkcnt64_t’ does not name a type
  219 | typedef __blkcnt64_t blkcnt64_t;     /* Type to count number of disk blocks. */
      |         ^~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:220:9: error: ‘__fsblkcnt64_t’ does not name a type
  220 | typedef __fsblkcnt64_t fsblkcnt64_t; /* Type to count file system blocks.  */
      |         ^~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/sys/types.h:221:9: error: ‘__fsfilcnt64_t’ does not name a type
  221 | typedef __fsfilcnt64_t fsfilcnt64_t; /* Type to count file system inodes.  */
      |         ^~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:531:25: error: ‘size_t’ has not been declared
  531 |                         size_t __statelen) __THROW __nonnull ((2));
      |                         ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:545:5: error: ‘int32_t’ does not name a type
  545 |     int32_t *fptr;              /* Front pointer.  */
      |     ^~~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:515:1: note: ‘int32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
  514 | # include <sys/types.h> /* we need int32_t... */
  +++ |+#include <cstdint>
  515 | 
/nix/glibc-2.39-52-dev/include/stdlib.h:546:5: error: ‘int32_t’ does not name a type
  546 |     int32_t *rptr;              /* Rear pointer.  */
      |     ^~~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:546:5: note: ‘int32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/nix/glibc-2.39-52-dev/include/stdlib.h:547:5: error: ‘int32_t’ does not name a type
  547 |     int32_t *state;             /* Array of state values.  */
      |     ^~~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:547:5: note: ‘int32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/nix/glibc-2.39-52-dev/include/stdlib.h:551:5: error: ‘int32_t’ does not name a type
  551 |     int32_t *end_ptr;           /* Pointer behind state table.  */
      |     ^~~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:551:5: note: ‘int32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/nix/glibc-2.39-52-dev/include/stdlib.h:555:22: error: ‘int32_t’ has not been declared
  555 |                      int32_t *__restrict __result) __THROW __nonnull ((1, 2));
      |                      ^~~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:561:25: error: ‘size_t’ has not been declared
  561 |                         size_t __statelen,
      |                         ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:657:8: error: ‘__uint32_t’ does not name a type; did you mean ‘__uint128_t’?
  657 | extern __uint32_t arc4random (void)
      |        ^~~~~~~~~~
      |        __uint128_t
/nix/glibc-2.39-52-dev/include/stdlib.h:661:42: error: ‘size_t’ has not been declared
  661 | extern void arc4random_buf (void *__buf, size_t __size)
      |                                          ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:666:8: error: ‘__uint32_t’ does not name a type; did you mean ‘__uint128_t’?
  666 | extern __uint32_t arc4random_uniform (__uint32_t __upper_bound)
      |        ^~~~~~~~~~
      |        __uint128_t
/nix/glibc-2.39-52-dev/include/stdlib.h:672:22: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
  672 | extern void *malloc (size_t __size) __THROW __attribute_malloc__
      |                      ^~~~~~
      |                      std::size_t
In file included from /nix/gcc/include/c++/13.3.0/bits/requires_hosted.h:31,
                 from /nix/gcc/include/c++/13.3.0/cmath:41:
/nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:675:22: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
  675 | extern void *calloc (size_t __nmemb, size_t __size)
      |                      ^~~~~~
      |                      std::size_t
/nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:675:38: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
  675 | extern void *calloc (size_t __nmemb, size_t __size)
      |                                      ^~~~~~
      |                                      std::size_t
/nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:675:51: error: expression list treated as compound expression in initializer [-fpermissive]
  675 | extern void *calloc (size_t __nmemb, size_t __size)
      |                                                   ^
/nix/glibc-2.39-52-dev/include/stdlib.h:683:36: error: ‘size_t’ has not been declared
  683 | extern void *realloc (void *__ptr, size_t __size)
      |                                    ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:695:41: error: ‘size_t’ has not been declared
  695 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
      |                                         ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:695:57: error: ‘size_t’ has not been declared
  695 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
      |                                                         ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:701:41: error: ‘size_t’ has not been declared
  701 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
      |                                         ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:701:57: error: ‘size_t’ has not been declared
  701 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
      |                                                         ^~~~~~
In file included from /nix/glibc-2.39-52-dev/include/stdlib.h:706:
/nix/glibc-2.39-52-dev/include/alloca.h:32:22: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
   32 | extern void *alloca (size_t __size) __THROW;
      |                      ^~~~~~
      |                      std::size_t
/nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:712:22: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
  712 | extern void *valloc (size_t __size) __THROW __attribute_malloc__
      |                      ^~~~~~
      |                      std::size_t
/nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:718:45: error: ‘size_t’ has not been declared
  718 | extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
      |                                             ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:718:65: error: ‘size_t’ has not been declared
  718 | extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
      |                                                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:724:29: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
  724 | extern void *aligned_alloc (size_t __alignment, size_t __size)
      |                             ^~~~~~
      |                             std::size_t
/nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:724:49: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
  724 | extern void *aligned_alloc (size_t __alignment, size_t __size)
      |                                                 ^~~~~~
      |                                                 std::size_t
/nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:724:62: error: expression list treated as compound expression in initializer [-fpermissive]
  724 | extern void *aligned_alloc (size_t __alignment, size_t __size)
      |                                                              ^
/nix/glibc-2.39-52-dev/include/stdlib.h:961:23: error: ‘size_t’ has not been declared
  961 |                       size_t __nmemb, size_t __size, __compar_fn_t __compar)
      |                       ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:961:39: error: ‘size_t’ has not been declared
  961 |                       size_t __nmemb, size_t __size, __compar_fn_t __compar)
      |                                       ^~~~~~
In file included from /nix/glibc-2.39-52-dev/include/stdlib.h:965:
/nix/glibc-2.39-52-dev/include/bits/stdlib-bsearch.h:20:49: error: ‘size_t’ has not been declared
   20 | bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size,
      |                                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/bits/stdlib-bsearch.h:20:65: error: ‘size_t’ has not been declared
   20 | bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size,
      |                                                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/bits/stdlib-bsearch.h: In function ‘void* bsearch(const void*, const void*, int, int, __compar_fn_t)’:
/nix/glibc-2.39-52-dev/include/bits/stdlib-bsearch.h:23:3: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
   23 |   size_t __l, __u, __idx;
      |   ^~~~~~
      |   std::size_t
/nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/bits/stdlib-bsearch.h:27:3: error: ‘__l’ was not declared in this scope; did you mean ‘__p’?
   27 |   __l = 0;
      |   ^~~
      |   __p
/nix/glibc-2.39-52-dev/include/bits/stdlib-bsearch.h:28:3: error: ‘__u’ was not declared in this scope; did you mean ‘__p’?
   28 |   __u = __nmemb;
      |   ^~~
      |   __p
/nix/glibc-2.39-52-dev/include/bits/stdlib-bsearch.h:31:7: error: ‘__idx’ was not declared in this scope
   31 |       __idx = (__l + __u) / 2;
      |       ^~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h: At global scope:
/nix/glibc-2.39-52-dev/include/stdlib.h:970:34: error: ‘size_t’ has not been declared
  970 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
      |                                  ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:970:50: error: ‘size_t’ has not been declared
  970 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
      |                                                  ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:973:36: error: ‘size_t’ has not been declared
  973 | extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
      |                                    ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:973:52: error: ‘size_t’ has not been declared
  973 | extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
      |                                                    ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:1044:20: error: ‘size_t’ has not been declared
 1044 |                    size_t __len) __THROW __nonnull ((3, 4, 5));
      |                    ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:1047:20: error: ‘size_t’ has not been declared
 1047 |                    size_t __len) __THROW __nonnull ((3, 4, 5));
      |                    ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:1051:45: error: ‘size_t’ has not been declared
 1051 |                     char *__restrict __buf, size_t __len)
      |                                             ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:1055:45: error: ‘size_t’ has not been declared
 1055 |                     char *__restrict __buf, size_t __len)
      |                                             ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:1062:36: error: ‘size_t’ has not been declared
 1062 | extern int mblen (const char *__s, size_t __n) __THROW;
      |                                    ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:1066:48: error: ‘size_t’ has not been declared
 1066 |                    const char *__restrict __s, size_t __n) __THROW;
      |                                                ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:1073:8: error: ‘size_t’ does not name a type
 1073 | extern size_t mbstowcs (wchar_t *__restrict  __pwcs,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:1073:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/stdlib.h:1077:8: error: ‘size_t’ does not name a type
 1077 | extern size_t wcstombs (char *__restrict __s,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/stdlib.h:1077:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/stdlib.h:1134:46: error: ‘size_t’ has not been declared
 1134 | extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
      |                                              ^~~~~~
In file included from /nix/gcc/include/c++/13.3.0/stdlib.h:36,
                 from foo.cc:4:
/nix/gcc/include/c++/13.3.0/cstdlib:158:11: error: ‘mbstowcs’ has not been declared in ‘::’
  158 |   using ::mbstowcs;
      |           ^~~~~~~~
/nix/gcc/include/c++/13.3.0/cstdlib:175:11: error: ‘wcstombs’ has not been declared in ‘::’
  175 |   using ::wcstombs;
      |           ^~~~~~~~
/nix/gcc/include/c++/13.3.0/stdlib.h:71:12: error: ‘mbstowcs’ has not been declared in ‘std’
   71 | using std::mbstowcs;
      |            ^~~~~~~~
/nix/gcc/include/c++/13.3.0/stdlib.h:83:12: error: ‘wcstombs’ has not been declared in ‘std’
   83 | using std::wcstombs;
      |            ^~~~~~~~
In file included from foo.cc:5:
/nix/glibc-2.39-52-dev/include/string.h:44:22: error: ‘size_t’ has not been declared
   44 |                      size_t __n) __THROW __nonnull ((1, 2));
      |                      ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:47:56: error: ‘size_t’ has not been declared
   47 | extern void *memmove (void *__dest, const void *__src, size_t __n)
      |                                                        ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:55:32: error: ‘size_t’ has not been declared
   55 |                       int __c, size_t __n)
      |                                ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:61:42: error: ‘size_t’ has not been declared
   61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
      |                                          ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:64:56: error: ‘size_t’ has not been declared
   64 | extern int memcmp (const void *__s1, const void *__s2, size_t __n)
      |                                                        ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:80:60: error: ‘size_t’ has not been declared
   80 | extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n)
      |                                                            ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:87:42: error: ‘size_t’ has not been declared
   87 | extern void *memchr (void *__s, int __c, size_t __n)
      |                                          ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:89:54: error: ‘size_t’ has not been declared
   89 | extern const void *memchr (const void *__s, int __c, size_t __n)
      |                                                      ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:94:29: error: ‘size_t’ has not been declared
   94 | memchr (void *__s, int __c, size_t __n) __THROW
      |                             ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:100:35: error: ‘size_t’ has not been declared
  100 | memchr (const void *__s, int __c, size_t __n) __THROW
      |                                   ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:126:49: error: ‘size_t’ has not been declared
  126 | extern "C++" void *memrchr (void *__s, int __c, size_t __n)
      |                                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:129:61: error: ‘size_t’ has not been declared
  129 | extern "C++" const void *memrchr (const void *__s, int __c, size_t __n)
      |                                                             ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:145:53: error: ‘size_t’ has not been declared
  145 |                       const char *__restrict __src, size_t __n)
      |                                                     ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:153:23: error: ‘size_t’ has not been declared
  153 |                       size_t __n) __THROW __nonnull ((1, 2));
      |                       ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:159:57: error: ‘size_t’ has not been declared
  159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n)
      |                                                         ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:166:8: error: ‘size_t’ does not name a type
  166 | extern size_t strxfrm (char *__restrict __dest,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:34:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
   33 | #include <stddef.h>
  +++ |+#include <cstddef>
   34 | 
/nix/glibc-2.39-52-dev/include/string.h:179:8: error: ‘size_t’ does not name a type
  179 | extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:179:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/string.h:195:45: error: ‘size_t’ has not been declared
  195 | extern char *strndup (const char *__string, size_t __n)
      |                                             ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:293:8: error: ‘size_t’ does not name a type
  293 | extern size_t strcspn (const char *__s, const char *__reject)
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:293:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/string.h:297:8: error: ‘size_t’ does not name a type
  297 | extern size_t strspn (const char *__s, const char *__accept)
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:297:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/string.h:389:46: error: ‘size_t’ has not been declared
  389 | extern void *memmem (const void *__haystack, size_t __haystacklen,
      |                                              ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:390:44: error: ‘size_t’ has not been declared
  390 |                      const void *__needle, size_t __needlelen)
      |                                            ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:398:55: error: ‘size_t’ has not been declared
  398 |                         const void *__restrict __src, size_t __n)
      |                                                       ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:401:53: error: ‘size_t’ has not been declared
  401 |                       const void *__restrict __src, size_t __n)
      |                                                     ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:407:8: error: ‘size_t’ does not name a type
  407 | extern size_t strlen (const char *__s)
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:407:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/string.h:413:8: error: ‘size_t’ does not name a type
  413 | extern size_t strnlen (const char *__string, size_t __maxlen)
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:413:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/string.h:444:53: error: ‘size_t’ has not been declared
  444 | extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
      |                                                     ^~~~~~
In file included from /nix/glibc-2.39-52-dev/include/string.h:462:
/nix/glibc-2.39-52-dev/include/strings.h:34:54: error: ‘size_t’ has not been declared
   34 | extern int bcmp (const void *__s1, const void *__s2, size_t __n)
      |                                                      ^~~~~~
/nix/glibc-2.39-52-dev/include/strings.h:38:53: error: ‘size_t’ has not been declared
   38 | extern void bcopy (const void *__src, void *__dest, size_t __n)
      |                                                     ^~~~~~
/nix/glibc-2.39-52-dev/include/strings.h:42:31: error: ‘size_t’ has not been declared
   42 | extern void bzero (void *__s, size_t __n) __THROW __nonnull ((1));
      |                               ^~~~~~
/nix/glibc-2.39-52-dev/include/strings.h:120:61: error: ‘size_t’ has not been declared
  120 | extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
      |                                                             ^~~~~~
/nix/glibc-2.39-52-dev/include/strings.h:134:27: error: ‘size_t’ has not been declared
  134 |                           size_t __n, locale_t __loc)
      |                           ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:466:40: error: ‘size_t’ has not been declared
  466 | extern void explicit_bzero (void *__s, size_t __n) __THROW __nonnull ((1))
      |                                        ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:497:55: error: ‘size_t’ has not been declared
  497 |                         const char *__restrict __src, size_t __n)
      |                                                       ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:500:53: error: ‘size_t’ has not been declared
  500 |                       const char *__restrict __src, size_t __n)
      |                                                     ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:506:8: error: ‘size_t’ does not name a type
  506 | extern size_t strlcpy (char *__restrict __dest,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:506:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/string.h:512:8: error: ‘size_t’ does not name a type
  512 | extern size_t strlcat (char *__restrict __dest,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/string.h:512:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/string.h:526:34: error: ‘size_t’ has not been declared
  526 | extern void *memfrob (void *__s, size_t __n) __THROW __nonnull ((1))
      |                                  ^~~~~~
In file included from /nix/glibc-2.39-52-dev/include/wchar.h:53,
                 from /nix/gcc/include/c++/13.3.0/cwchar:44,
                 from /nix/gcc/include/c++/13.3.0/bits/postypes.h:40,
                 from /nix/gcc/include/c++/13.3.0/bits/char_traits.h:42,
                 from /nix/gcc/include/c++/13.3.0/string:42,
                 from foo.cc:6:
/nix/glibc-2.39-52-dev/include/bits/types/mbstate_t.h:6:9: error: ‘__mbstate_t’ does not name a type
    6 | typedef __mbstate_t mbstate_t;
      |         ^~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:104:59: error: ‘size_t’ has not been declared
  104 |                          const wchar_t *__restrict __src, size_t __n)
      |                                                           ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:109:8: error: ‘size_t’ does not name a type
  109 | extern size_t wcslcpy (wchar_t *__restrict __dest,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:54:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
   53 | #include <bits/types/mbstate_t.h>
  +++ |+#include <cstddef>
   54 | #include <bits/types/__FILE.h>
/nix/glibc-2.39-52-dev/include/wchar.h:115:8: error: ‘size_t’ does not name a type
  115 | extern size_t wcslcat (wchar_t *__restrict __dest,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:115:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:126:59: error: ‘size_t’ has not been declared
  126 |                          const wchar_t *__restrict __src, size_t __n)
      |                                                           ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:133:63: error: ‘size_t’ has not been declared
  133 | extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
      |                                                               ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:142:25: error: ‘size_t’ has not been declared
  142 |                         size_t __n) __THROW;
      |                         ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:150:27: error: ‘size_t’ has not been declared
  150 |                           size_t __n, locale_t __loc) __THROW;
      |                           ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:159:8: error: ‘size_t’ does not name a type
  159 | extern size_t wcsxfrm (wchar_t *__restrict __s1,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:159:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:174:8: error: ‘size_t’ does not name a type
  174 | extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:174:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:212:8: error: ‘size_t’ does not name a type
  212 | extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject)
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:212:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:216:8: error: ‘size_t’ does not name a type
  216 | extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept)
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:216:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:247:8: error: ‘size_t’ does not name a type
  247 | extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__;
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:247:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:265:8: error: ‘size_t’ does not name a type
  265 | extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen)
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:265:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:272:59: error: ‘size_t’ has not been declared
  272 | extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n)
      |                                                           ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:275:38: error: ‘size_t’ has not been declared
  275 |                                      size_t __n)
      |                                      ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:283:63: error: ‘size_t’ has not been declared
  283 | extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
      |                                                               ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:288:58: error: ‘size_t’ has not been declared
  288 |                          const wchar_t *__restrict __s2, size_t __n) __THROW;
      |                                                          ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:292:63: error: ‘size_t’ has not been declared
  292 | extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n)
      |                                                               ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:296:53: error: ‘size_t’ has not been declared
  296 | extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __THROW;
      |                                                     ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:302:59: error: ‘size_t’ has not been declared
  302 |                           const wchar_t *__restrict __s2, size_t __n)
      |                                                           ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:317:27: error: ‘mbstate_t’ does not name a type
  317 | extern int mbsinit (const mbstate_t *__ps) __THROW __attribute_pure__;
      |                           ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:321:8: error: ‘size_t’ does not name a type
  321 | extern size_t mbrtowc (wchar_t *__restrict __pwc,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:321:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:326:8: error: ‘size_t’ does not name a type
  326 | extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:326:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:330:8: error: ‘size_t’ does not name a type
  330 | extern size_t __mbrlen (const char *__restrict __s, size_t __n,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:330:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:332:8: error: ‘size_t’ does not name a type
  332 | extern size_t mbrlen (const char *__restrict __s, size_t __n,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:332:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:353:17: error: ‘size_t’ does not name a type
  353 | __extern_inline size_t
      |                 ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:353:17: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:362:8: error: ‘size_t’ does not name a type
  362 | extern size_t mbsrtowcs (wchar_t *__restrict __dst,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:362:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:368:8: error: ‘size_t’ does not name a type
  368 | extern size_t wcsrtombs (char *__restrict __dst,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:368:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:376:8: error: ‘size_t’ does not name a type
  376 | extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:376:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:382:8: error: ‘size_t’ does not name a type
  382 | extern size_t wcsnrtombs (char *__restrict __dst,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:382:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:396:42: error: ‘size_t’ has not been declared
  396 | extern int wcswidth (const wchar_t *__s, size_t __n) __THROW;
      |                                          ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:695:59: error: ‘size_t’ has not been declared
  695 |                          const wchar_t *__restrict __src, size_t __n)
      |                                                           ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:718:8: error: ‘__FILE’ does not name a type; did you mean ‘ENFILE’?
  718 | extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) __THROW
      |        ^~~~~~
      |        ENFILE
/nix/glibc-2.39-52-dev/include/wchar.h:725:19: error: ‘__FILE’ was not declared in this scope; did you mean ‘ENFILE’?
  725 | extern int fwide (__FILE *__fp, int __mode) __THROW;
      |                   ^~~~~~
      |                   ENFILE
/nix/glibc-2.39-52-dev/include/wchar.h:725:27: error: ‘__fp’ was not declared in this scope
  725 | extern int fwide (__FILE *__fp, int __mode) __THROW;
      |                           ^~~~
/nix/glibc-2.39-52-dev/include/wchar.h:725:33: error: expected primary-expression before ‘int’
  725 | extern int fwide (__FILE *__fp, int __mode) __THROW;
      |                                 ^~~
/nix/glibc-2.39-52-dev/include/wchar.h:725:43: error: expression list treated as compound expression in initializer [-fpermissive]
  725 | extern int fwide (__FILE *__fp, int __mode) __THROW;
      |                                           ^
/nix/glibc-2.39-52-dev/include/wchar.h:732:22: error: ‘__FILE’ was not declared in this scope; did you mean ‘ENFILE’?
  732 | extern int fwprintf (__FILE *__restrict __stream,
      |                      ^~~~~~
      |                      ENFILE
/nix/glibc-2.39-52-dev/include/wchar.h:732:30: error: expected primary-expression before ‘__restrict’
  732 | extern int fwprintf (__FILE *__restrict __stream,
      |                              ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:733:22: error: expected primary-expression before ‘const’
  733 |                      const wchar_t *__restrict __format, ...)
      |                      ^~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:733:58: error: expected primary-expression before ‘...’ token
  733 |                      const wchar_t *__restrict __format, ...)
      |                                                          ^~~
/nix/glibc-2.39-52-dev/include/wchar.h:733:61: error: expression list treated as compound expression in initializer [-fpermissive]
  733 |                      const wchar_t *__restrict __format, ...)
      |                                                             ^
/nix/glibc-2.39-52-dev/include/wchar.h:742:47: error: ‘size_t’ has not been declared
  742 | extern int swprintf (wchar_t *__restrict __s, size_t __n,
      |                                               ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:750:23: error: ‘__FILE’ was not declared in this scope; did you mean ‘ENFILE’?
  750 | extern int vfwprintf (__FILE *__restrict __s,
      |                       ^~~~~~
      |                       ENFILE
/nix/glibc-2.39-52-dev/include/wchar.h:750:31: error: expected primary-expression before ‘__restrict’
  750 | extern int vfwprintf (__FILE *__restrict __s,
      |                               ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:751:23: error: expected primary-expression before ‘const’
  751 |                       const wchar_t *__restrict __format,
      |                       ^~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:752:23: error: ‘__gnuc_va_list’ was not declared in this scope
  752 |                       __gnuc_va_list __arg)
      |                       ^~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:752:43: error: expression list treated as compound expression in initializer [-fpermissive]
  752 |                       __gnuc_va_list __arg)
      |                                           ^
/nix/glibc-2.39-52-dev/include/wchar.h:759:22: error: ‘__gnuc_va_list’ has not been declared
  759 |                      __gnuc_va_list __arg)
      |                      ^~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:763:48: error: ‘size_t’ has not been declared
  763 | extern int vswprintf (wchar_t *__restrict __s, size_t __n,
      |                                                ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:765:23: error: ‘__gnuc_va_list’ has not been declared
  765 |                       __gnuc_va_list __arg)
      |                       ^~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:773:21: error: ‘__FILE’ was not declared in this scope; did you mean ‘ENFILE’?
  773 | extern int fwscanf (__FILE *__restrict __stream,
      |                     ^~~~~~
      |                     ENFILE
/nix/glibc-2.39-52-dev/include/wchar.h:773:29: error: expected primary-expression before ‘__restrict’
  773 | extern int fwscanf (__FILE *__restrict __stream,
      |                             ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:774:21: error: expected primary-expression before ‘const’
  774 |                     const wchar_t *__restrict __format, ...)
      |                     ^~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:774:57: error: expected primary-expression before ‘...’ token
  774 |                     const wchar_t *__restrict __format, ...)
      |                                                         ^~~
/nix/glibc-2.39-52-dev/include/wchar.h:774:60: error: expression list treated as compound expression in initializer [-fpermissive]
  774 |                     const wchar_t *__restrict __format, ...)
      |                                                            ^
In file included from /nix/glibc-2.39-52-dev/include/features.h:503,
                 from /nix/glibc-2.39-52-dev/include/bits/libc-header-start.h:33,
                 from /nix/glibc-2.39-52-dev/include/stdio.h:28,
                 from foo.cc:2:
/nix/glibc-2.39-52-dev/include/wchar.h:795:12: error: redefinition of ‘int fwscanf’
  795 | extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream,
      |            ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:773:12: note: ‘int fwscanf’ previously defined here
  773 | extern int fwscanf (__FILE *__restrict __stream,
      |            ^~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:795:12: error: ‘__FILE’ was not declared in this scope; did you mean ‘ENFILE’?
  795 | extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream,
      |            ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:795:12: error: expected primary-expression before ‘__restrict’
  795 | extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream,
      |            ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:795:12: error: expected primary-expression before ‘const’
  795 | extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream,
      |            ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:795:12: error: expected primary-expression before ‘...’ token
  795 | extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream,
      |            ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:851:22: error: ‘__FILE’ was not declared in this scope; did you mean ‘ENFILE’?
  851 | extern int vfwscanf (__FILE *__restrict __s,
      |                      ^~~~~~
      |                      ENFILE
/nix/glibc-2.39-52-dev/include/wchar.h:851:30: error: expected primary-expression before ‘__restrict’
  851 | extern int vfwscanf (__FILE *__restrict __s,
      |                              ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:852:22: error: expected primary-expression before ‘const’
  852 |                      const wchar_t *__restrict __format,
      |                      ^~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:853:22: error: ‘__gnuc_va_list’ was not declared in this scope
  853 |                      __gnuc_va_list __arg)
      |                      ^~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:853:42: error: expression list treated as compound expression in initializer [-fpermissive]
  853 |                      __gnuc_va_list __arg)
      |                                          ^
/nix/glibc-2.39-52-dev/include/wchar.h:860:21: error: ‘__gnuc_va_list’ has not been declared
  860 |                     __gnuc_va_list __arg)
      |                     ^~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:865:22: error: ‘__gnuc_va_list’ has not been declared
  865 |                      __gnuc_va_list __arg)
      |                      ^~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:875:12: error: redefinition of ‘int vfwscanf’
  875 | extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s,
      |            ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:851:12: note: ‘int vfwscanf’ previously defined here
  851 | extern int vfwscanf (__FILE *__restrict __s,
      |            ^~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:875:12: error: ‘__FILE’ was not declared in this scope; did you mean ‘ENFILE’?
  875 | extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s,
      |            ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:875:12: error: expected primary-expression before ‘__restrict’
  875 | extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s,
      |            ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:875:12: error: expected primary-expression before ‘const’
  875 | extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s,
      |            ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:875:12: error: ‘__gnuc_va_list’ was not declared in this scope
  875 | extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s,
      |            ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:879:12: error: ‘__gnuc_va_list’ has not been declared
  879 | extern int __REDIRECT (vwscanf, (const wchar_t *__restrict __format,
      |            ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:882:12: error: ‘__gnuc_va_list’ has not been declared
  882 | extern int __REDIRECT_NTH (vswscanf, (const wchar_t *__restrict __s,
      |            ^~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:935:23: error: ‘__FILE’ was not declared in this scope; did you mean ‘ENFILE’?
  935 | extern wint_t fgetwc (__FILE *__stream);
      |                       ^~~~~~
      |                       ENFILE
/nix/glibc-2.39-52-dev/include/wchar.h:935:31: error: ‘__stream’ was not declared in this scope; did you mean ‘__drem’?
  935 | extern wint_t fgetwc (__FILE *__stream);
      |                               ^~~~~~~~
      |                               __drem
/nix/glibc-2.39-52-dev/include/wchar.h:936:22: error: ‘__FILE’ was not declared in this scope; did you mean ‘ENFILE’?
  936 | extern wint_t getwc (__FILE *__stream);
      |                      ^~~~~~
      |                      ENFILE
/nix/glibc-2.39-52-dev/include/wchar.h:936:30: error: ‘__stream’ was not declared in this scope; did you mean ‘__drem’?
  936 | extern wint_t getwc (__FILE *__stream);
      |                              ^~~~~~~~
      |                              __drem
/nix/glibc-2.39-52-dev/include/wchar.h:949:37: error: ‘__FILE’ has not been declared
  949 | extern wint_t fputwc (wchar_t __wc, __FILE *__stream);
      |                                     ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:950:36: error: ‘__FILE’ has not been declared
  950 | extern wint_t putwc (wchar_t __wc, __FILE *__stream);
      |                                    ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:965:25: error: ‘__FILE’ has not been declared
  965 |                         __FILE *__restrict __stream);
      |                         ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:972:20: error: ‘__FILE’ has not been declared
  972 |                    __FILE *__restrict __stream);
      |                    ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:979:37: error: ‘__FILE’ has not been declared
  979 | extern wint_t ungetwc (wint_t __wc, __FILE *__stream);
      |                                     ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:990:31: error: ‘__FILE’ was not declared in this scope; did you mean ‘ENFILE’?
  990 | extern wint_t getwc_unlocked (__FILE *__stream);
      |                               ^~~~~~
      |                               ENFILE
/nix/glibc-2.39-52-dev/include/wchar.h:990:39: error: ‘__stream’ was not declared in this scope; did you mean ‘__drem’?
  990 | extern wint_t getwc_unlocked (__FILE *__stream);
      |                                       ^~~~~~~~
      |                                       __drem
/nix/glibc-2.39-52-dev/include/wchar.h:999:32: error: ‘__FILE’ was not declared in this scope; did you mean ‘ENFILE’?
  999 | extern wint_t fgetwc_unlocked (__FILE *__stream);
      |                                ^~~~~~
      |                                ENFILE
/nix/glibc-2.39-52-dev/include/wchar.h:999:40: error: ‘__stream’ was not declared in this scope; did you mean ‘__drem’?
  999 | extern wint_t fgetwc_unlocked (__FILE *__stream);
      |                                        ^~~~~~~~
      |                                        __drem
/nix/glibc-2.39-52-dev/include/wchar.h:1007:46: error: ‘__FILE’ has not been declared
 1007 | extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream);
      |                                              ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:1016:45: error: ‘__FILE’ has not been declared
 1016 | extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream);
      |                                             ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:1027:34: error: ‘__FILE’ has not been declared
 1027 |                                  __FILE *__restrict __stream);
      |                                  ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:1036:29: error: ‘__FILE’ has not been declared
 1036 |                             __FILE *__restrict __stream);
      |                             ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:1043:8: error: ‘size_t’ does not name a type
 1043 | extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:1043:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/wchar.h:1050:8: error: ‘size_t’ does not name a type
 1050 | extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/wchar.h:1050:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/gcc/include/c++/13.3.0/cwchar:64:11: error: ‘mbstate_t’ has not been declared in ‘::’
   64 |   using ::mbstate_t;
      |           ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/cwchar:153:11: error: ‘mbrlen’ has not been declared in ‘::’
  153 |   using ::mbrlen;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cwchar:154:11: error: ‘mbrtowc’ has not been declared in ‘::’
  154 |   using ::mbrtowc;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cwchar:156:11: error: ‘mbsrtowcs’ has not been declared in ‘::’
  156 |   using ::mbsrtowcs;
      |           ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/cwchar:178:11: error: ‘wcrtomb’ has not been declared in ‘::’
  178 |   using ::wcrtomb;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cwchar:183:11: error: ‘wcscspn’ has not been declared in ‘::’
  183 |   using ::wcscspn;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cwchar:184:11: error: ‘wcsftime’ has not been declared in ‘::’
  184 |   using ::wcsftime;
      |           ^~~~~~~~
/nix/gcc/include/c++/13.3.0/cwchar:185:11: error: ‘wcslen’ has not been declared in ‘::’
  185 |   using ::wcslen;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cwchar:189:11: error: ‘wcsrtombs’ has not been declared in ‘::’
  189 |   using ::wcsrtombs;
      |           ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/cwchar:190:11: error: ‘wcsspn’ has not been declared in ‘::’
  190 |   using ::wcsspn;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cwchar:198:11: error: ‘wcsxfrm’ has not been declared in ‘::’
  198 |   using ::wcsxfrm;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/bits/postypes.h:204:16: error: ‘mbstate_t’ was not declared in this scope
  204 |   typedef fpos<mbstate_t> streampos;
      |                ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/postypes.h:204:25: error: template argument 1 is invalid
  204 |   typedef fpos<mbstate_t> streampos;
      |                         ^
/nix/gcc/include/c++/13.3.0/bits/postypes.h:206:16: error: ‘mbstate_t’ was not declared in this scope
  206 |   typedef fpos<mbstate_t> wstreampos;
      |                ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/postypes.h:206:25: error: template argument 1 is invalid
  206 |   typedef fpos<mbstate_t> wstreampos;
      |                         ^
/nix/gcc/include/c++/13.3.0/bits/postypes.h:215:16: error: ‘mbstate_t’ was not declared in this scope
  215 |   typedef fpos<mbstate_t> u16streampos;
      |                ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/postypes.h:215:25: error: template argument 1 is invalid
  215 |   typedef fpos<mbstate_t> u16streampos;
      |                         ^
/nix/gcc/include/c++/13.3.0/bits/postypes.h:217:16: error: ‘mbstate_t’ was not declared in this scope
  217 |   typedef fpos<mbstate_t> u32streampos;
      |                ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/postypes.h:217:25: error: template argument 1 is invalid
  217 |   typedef fpos<mbstate_t> u32streampos;
      |                         ^
/nix/gcc/include/c++/13.3.0/bits/char_traits.h:90:20: error: ‘mbstate_t’ in namespace ‘std’ does not name a type
   90 |       typedef std::mbstate_t  state_type;
      |                    ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/char_traits.h:344:15: error: ‘mbstate_t’ does not name a type
  344 |       typedef mbstate_t         state_type;
      |               ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/char_traits.h:486:15: error: ‘mbstate_t’ does not name a type
  486 |       typedef mbstate_t         state_type;
      |               ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/char_traits.h: In static member function ‘static std::size_t std::char_traits<wchar_t>::length(const char_type*)’:
/nix/gcc/include/c++/13.3.0/bits/char_traits.h:530:16: error: ‘wcslen’ was not declared in this scope
  530 |         return wcslen(__s);
      |                ^~~~~~
/nix/gcc/include/c++/13.3.0/bits/char_traits.h: At global scope:
/nix/gcc/include/c++/13.3.0/bits/char_traits.h:763:15: error: ‘mbstate_t’ does not name a type
  763 |       typedef mbstate_t         state_type;
      |               ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/char_traits.h:892:15: error: ‘mbstate_t’ does not name a type
  892 |       typedef mbstate_t         state_type;
      |               ^~~~~~~~~
In file included from /nix/gcc/include/c++/13.3.0/cctype:42,
                 from /nix/gcc/include/c++/13.3.0/bits/localefwd.h:42,
                 from /nix/gcc/include/c++/13.3.0/string:45:
/nix/glibc-2.39-52-dev/include/ctype.h:81:14: error: ‘__int32_t’ does not name a type; did you mean ‘__int128_t’?
   81 | extern const __int32_t **__ctype_tolower_loc (void)
      |              ^~~~~~~~~
      |              __int128_t
/nix/glibc-2.39-52-dev/include/ctype.h:83:14: error: ‘__int32_t’ does not name a type; did you mean ‘__int128_t’?
   83 | extern const __int32_t **__ctype_toupper_loc (void)
      |              ^~~~~~~~~
      |              __int128_t
/nix/gcc/include/c++/13.3.0/bits/localefwd.h:139:40: error: ‘mbstate_t’ was not declared in this scope
  139 |   template<> class codecvt<char, char, mbstate_t>;
      |                                        ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/localefwd.h:139:49: error: template argument 3 is invalid
  139 |   template<> class codecvt<char, char, mbstate_t>;
      |                                                 ^
/nix/gcc/include/c++/13.3.0/bits/localefwd.h:141:43: error: ‘mbstate_t’ was not declared in this scope
  141 |   template<> class codecvt<wchar_t, char, mbstate_t>;
      |                                           ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/localefwd.h:141:52: error: template argument 3 is invalid
  141 |   template<> class codecvt<wchar_t, char, mbstate_t>;
      |                                                    ^
/nix/gcc/include/c++/13.3.0/bits/localefwd.h:144:44: error: ‘mbstate_t’ was not declared in this scope
  144 |   template<> class codecvt<char16_t, char, mbstate_t>;
      |                                            ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/localefwd.h:144:53: error: template argument 3 is invalid
  144 |   template<> class codecvt<char16_t, char, mbstate_t>;
      |                                                     ^
/nix/gcc/include/c++/13.3.0/bits/localefwd.h:145:44: error: ‘mbstate_t’ was not declared in this scope
  145 |   template<> class codecvt<char32_t, char, mbstate_t>;
      |                                            ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/localefwd.h:145:53: error: template argument 3 is invalid
  145 |   template<> class codecvt<char32_t, char, mbstate_t>;
      |                                                     ^
In file included from /nix/gcc/include/c++/13.3.0/ext/string_conversions.h:45,
                 from /nix/gcc/include/c++/13.3.0/bits/basic_string.h:4109,
                 from /nix/gcc/include/c++/13.3.0/string:54:
/nix/gcc/include/c++/13.3.0/cstdio:98:11: error: ‘FILE’ has not been declared in ‘::’
   98 |   using ::FILE;
      |           ^~~~
/nix/gcc/include/c++/13.3.0/cstdio:99:11: error: ‘fpos_t’ has not been declared in ‘::’
   99 |   using ::fpos_t;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:101:11: error: ‘clearerr’ has not been declared in ‘::’
  101 |   using ::clearerr;
      |           ^~~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:102:11: error: ‘fclose’ has not been declared in ‘::’
  102 |   using ::fclose;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:103:11: error: ‘feof’ has not been declared in ‘::’
  103 |   using ::feof;
      |           ^~~~
/nix/gcc/include/c++/13.3.0/cstdio:104:11: error: ‘ferror’ has not been declared in ‘::’
  104 |   using ::ferror;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:105:11: error: ‘fflush’ has not been declared in ‘::’
  105 |   using ::fflush;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:106:11: error: ‘fgetc’ has not been declared in ‘::’
  106 |   using ::fgetc;
      |           ^~~~~
/nix/gcc/include/c++/13.3.0/cstdio:107:11: error: ‘fgetpos’ has not been declared in ‘::’
  107 |   using ::fgetpos;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:108:11: error: ‘fgets’ has not been declared in ‘::’
  108 |   using ::fgets;
      |           ^~~~~
/nix/gcc/include/c++/13.3.0/cstdio:109:11: error: ‘fopen’ has not been declared in ‘::’
  109 |   using ::fopen;
      |           ^~~~~
/nix/gcc/include/c++/13.3.0/cstdio:110:11: error: ‘fprintf’ has not been declared in ‘::’
  110 |   using ::fprintf;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:111:11: error: ‘fputc’ has not been declared in ‘::’
  111 |   using ::fputc;
      |           ^~~~~
/nix/gcc/include/c++/13.3.0/cstdio:112:11: error: ‘fputs’ has not been declared in ‘::’
  112 |   using ::fputs;
      |           ^~~~~
/nix/gcc/include/c++/13.3.0/cstdio:113:11: error: ‘fread’ has not been declared in ‘::’
  113 |   using ::fread;
      |           ^~~~~
/nix/gcc/include/c++/13.3.0/cstdio:114:11: error: ‘freopen’ has not been declared in ‘::’
  114 |   using ::freopen;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:115:11: error: ‘fscanf’ has not been declared in ‘::’
  115 |   using ::fscanf;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:116:11: error: ‘fseek’ has not been declared in ‘::’
  116 |   using ::fseek;
      |           ^~~~~
/nix/gcc/include/c++/13.3.0/cstdio:117:11: error: ‘fsetpos’ has not been declared in ‘::’
  117 |   using ::fsetpos;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:118:11: error: ‘ftell’ has not been declared in ‘::’
  118 |   using ::ftell;
      |           ^~~~~
/nix/gcc/include/c++/13.3.0/cstdio:119:11: error: ‘fwrite’ has not been declared in ‘::’
  119 |   using ::fwrite;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:120:11: error: ‘getc’ has not been declared in ‘::’
  120 |   using ::getc;
      |           ^~~~
/nix/gcc/include/c++/13.3.0/cstdio:121:11: error: ‘getchar’ has not been declared in ‘::’
  121 |   using ::getchar;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:124:11: error: ‘gets’ has not been declared in ‘::’
  124 |   using ::gets;
      |           ^~~~
/nix/gcc/include/c++/13.3.0/cstdio:126:11: error: ‘perror’ has not been declared in ‘::’
  126 |   using ::perror;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:127:11: error: ‘printf’ has not been declared in ‘::’
  127 |   using ::printf;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:128:11: error: ‘putc’ has not been declared in ‘::’
  128 |   using ::putc;
      |           ^~~~
/nix/gcc/include/c++/13.3.0/cstdio:129:11: error: ‘putchar’ has not been declared in ‘::’
  129 |   using ::putchar;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:130:11: error: ‘puts’ has not been declared in ‘::’
  130 |   using ::puts;
      |           ^~~~
/nix/gcc/include/c++/13.3.0/cstdio:131:11: error: ‘remove’ has not been declared in ‘::’
  131 |   using ::remove;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:132:11: error: ‘rename’ has not been declared in ‘::’
  132 |   using ::rename;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:133:11: error: ‘rewind’ has not been declared in ‘::’
  133 |   using ::rewind;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:134:11: error: ‘scanf’ has not been declared in ‘::’
  134 |   using ::scanf;
      |           ^~~~~
/nix/gcc/include/c++/13.3.0/cstdio:135:11: error: ‘setbuf’ has not been declared in ‘::’
  135 |   using ::setbuf;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:136:11: error: ‘setvbuf’ has not been declared in ‘::’
  136 |   using ::setvbuf;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:137:11: error: ‘sprintf’ has not been declared in ‘::’
  137 |   using ::sprintf;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:138:11: error: ‘sscanf’ has not been declared in ‘::’
  138 |   using ::sscanf;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:139:11: error: ‘tmpfile’ has not been declared in ‘::’
  139 |   using ::tmpfile;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:141:11: error: ‘tmpnam’ has not been declared in ‘::’
  141 |   using ::tmpnam;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:143:11: error: ‘ungetc’ has not been declared in ‘::’
  143 |   using ::ungetc;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:144:11: error: ‘vfprintf’ has not been declared in ‘::’
  144 |   using ::vfprintf;
      |           ^~~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:145:11: error: ‘vprintf’ has not been declared in ‘::’
  145 |   using ::vprintf;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:146:11: error: ‘vsprintf’ has not been declared in ‘::’
  146 |   using ::vsprintf;
      |           ^~~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:175:11: error: ‘snprintf’ has not been declared in ‘::’
  175 |   using ::snprintf;
      |           ^~~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:176:11: error: ‘vfscanf’ has not been declared in ‘::’
  176 |   using ::vfscanf;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:177:11: error: ‘vscanf’ has not been declared in ‘::’
  177 |   using ::vscanf;
      |           ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:178:11: error: ‘vsnprintf’ has not been declared in ‘::’
  178 |   using ::vsnprintf;
      |           ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:179:11: error: ‘vsscanf’ has not been declared in ‘::’
  179 |   using ::vsscanf;
      |           ^~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:185:22: error: ‘snprintf’ has not been declared in ‘__gnu_cxx’
  185 |   using ::__gnu_cxx::snprintf;
      |                      ^~~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:186:22: error: ‘vfscanf’ has not been declared in ‘__gnu_cxx’
  186 |   using ::__gnu_cxx::vfscanf;
      |                      ^~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:187:22: error: ‘vscanf’ has not been declared in ‘__gnu_cxx’
  187 |   using ::__gnu_cxx::vscanf;
      |                      ^~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:188:22: error: ‘vsnprintf’ has not been declared in ‘__gnu_cxx’
  188 |   using ::__gnu_cxx::vsnprintf;
      |                      ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/cstdio:189:22: error: ‘vsscanf’ has not been declared in ‘__gnu_cxx’
  189 |   using ::__gnu_cxx::vsscanf;
      |                      ^~~~~~~
/nix/gcc/include/c++/13.3.0/bits/basic_string.h: In function ‘std::string std::__cxx11::to_string(float)’:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4245:50: error: ‘vsnprintf’ is not a member of ‘std’; did you mean ‘vswprintf’?
 4245 |     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
      |                                                  ^~~~~~~~~
      |                                                  vswprintf
/nix/gcc/include/c++/13.3.0/bits/basic_string.h: In function ‘std::string std::__cxx11::to_string(double)’:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4255:50: error: ‘vsnprintf’ is not a member of ‘std’; did you mean ‘vswprintf’?
 4255 |     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
      |                                                  ^~~~~~~~~
      |                                                  vswprintf
/nix/gcc/include/c++/13.3.0/bits/basic_string.h: In function ‘std::string std::__cxx11::to_string(long double)’:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4265:50: error: ‘vsnprintf’ is not a member of ‘std’; did you mean ‘vswprintf’?
 4265 |     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
      |                                                  ^~~~~~~~~
      |                                                  vswprintf
/nix/gcc/include/c++/13.3.0/bits/basic_string.h: In function ‘std::wstring std::__cxx11::to_wstring(int)’:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4314:44: error: no matching function for call to ‘__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) noexcept, long unsigned int, const wchar_t [3], int&)’
 4314 |   { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(int),
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4315 |                                             L"%d", __val); }
      |                                             ~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list_tag*), std::size_t, const _CharT*, ...)’
  101 |     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
      |     ^~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note:   template argument deduction/substitution failed:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4314:44: note:   mismatched types ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’
 4314 |   { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(int),
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4315 |                                             L"%d", __val); }
      |                                             ~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/basic_string.h: In function ‘std::wstring std::__cxx11::to_wstring(unsigned int)’:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4320:44: error: no matching function for call to ‘__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) noexcept, long unsigned int, const wchar_t [3], unsigned int&)’
 4320 |   { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 4321 |                                             4 * sizeof(unsigned),
      |                                             ~~~~~~~~~~~~~~~~~~~~~
 4322 |                                             L"%u", __val); }
      |                                             ~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list_tag*), std::size_t, const _CharT*, ...)’
  101 |     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
      |     ^~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note:   template argument deduction/substitution failed:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4320:44: note:   mismatched types ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’
 4320 |   { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 4321 |                                             4 * sizeof(unsigned),
      |                                             ~~~~~~~~~~~~~~~~~~~~~
 4322 |                                             L"%u", __val); }
      |                                             ~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/basic_string.h: In function ‘std::wstring std::__cxx11::to_wstring(long int)’:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4327:44: error: no matching function for call to ‘__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) noexcept, long unsigned int, const wchar_t [4], long int&)’
 4327 |   { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(long),
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4328 |                                             L"%ld", __val); }
      |                                             ~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list_tag*), std::size_t, const _CharT*, ...)’
  101 |     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
      |     ^~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note:   template argument deduction/substitution failed:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4327:44: note:   mismatched types ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’
 4327 |   { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(long),
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4328 |                                             L"%ld", __val); }
      |                                             ~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/basic_string.h: In function ‘std::wstring std::__cxx11::to_wstring(long unsigned int)’:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4333:44: error: no matching function for call to ‘__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) noexcept, long unsigned int, const wchar_t [4], long unsigned int&)’
 4333 |   { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 4334 |                                             4 * sizeof(unsigned long),
      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
 4335 |                                             L"%lu", __val); }
      |                                             ~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list_tag*), std::size_t, const _CharT*, ...)’
  101 |     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
      |     ^~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note:   template argument deduction/substitution failed:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4333:44: note:   mismatched types ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’
 4333 |   { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 4334 |                                             4 * sizeof(unsigned long),
      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
 4335 |                                             L"%lu", __val); }
      |                                             ~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/basic_string.h: In function ‘std::wstring std::__cxx11::to_wstring(long long int)’:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4340:44: error: no matching function for call to ‘__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) noexcept, long unsigned int, const wchar_t [5], long long int&)’
 4340 |   { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 4341 |                                             4 * sizeof(long long),
      |                                             ~~~~~~~~~~~~~~~~~~~~~~
 4342 |                                             L"%lld", __val); }
      |                                             ~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list_tag*), std::size_t, const _CharT*, ...)’
  101 |     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
      |     ^~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note:   template argument deduction/substitution failed:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4340:44: note:   mismatched types ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’
 4340 |   { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 4341 |                                             4 * sizeof(long long),
      |                                             ~~~~~~~~~~~~~~~~~~~~~~
 4342 |                                             L"%lld", __val); }
      |                                             ~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/basic_string.h: In function ‘std::wstring std::__cxx11::to_wstring(long long unsigned int)’:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4347:44: error: no matching function for call to ‘__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) noexcept, long unsigned int, const wchar_t [5], long long unsigned int&)’
 4347 |   { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 4348 |                                             4 * sizeof(unsigned long long),
      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4349 |                                             L"%llu", __val); }
      |                                             ~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list_tag*), std::size_t, const _CharT*, ...)’
  101 |     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
      |     ^~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note:   template argument deduction/substitution failed:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4347:44: note:   mismatched types ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’
 4347 |   { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 4348 |                                             4 * sizeof(unsigned long long),
      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4349 |                                             L"%llu", __val); }
      |                                             ~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/basic_string.h: In function ‘std::wstring std::__cxx11::to_wstring(float)’:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4357:44: error: no matching function for call to ‘__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) noexcept, const int&, const wchar_t [3], float&)’
 4357 |     return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
 4358 |                                             L"%f", __val);
      |                                             ~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list_tag*), std::size_t, const _CharT*, ...)’
  101 |     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
      |     ^~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note:   template argument deduction/substitution failed:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4357:44: note:   mismatched types ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’
 4357 |     return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
 4358 |                                             L"%f", __val);
      |                                             ~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/basic_string.h: In function ‘std::wstring std::__cxx11::to_wstring(double)’:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4367:44: error: no matching function for call to ‘__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) noexcept, const int&, const wchar_t [3], double&)’
 4367 |     return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
 4368 |                                             L"%f", __val);
      |                                             ~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list_tag*), std::size_t, const _CharT*, ...)’
  101 |     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
      |     ^~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note:   template argument deduction/substitution failed:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4367:44: note:   mismatched types ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’
 4367 |     return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
 4368 |                                             L"%f", __val);
      |                                             ~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/basic_string.h: In function ‘std::wstring std::__cxx11::to_wstring(long double)’:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4377:44: error: no matching function for call to ‘__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) noexcept, const int&, const wchar_t [4], long double&)’
 4377 |     return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
 4378 |                                             L"%Lf", __val);
      |                                             ~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list_tag*), std::size_t, const _CharT*, ...)’
  101 |     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
      |     ^~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/ext/string_conversions.h:101:5: note:   template argument deduction/substitution failed:
/nix/gcc/include/c++/13.3.0/bits/basic_string.h:4377:44: note:   mismatched types ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’
 4377 |     return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
 4378 |                                             L"%Lf", __val);
      |                                             ~~~~~~~~~~~~~~
In file included from /nix/gcc/include/c++/13.3.0/bits/exception_ptr.h:36,
                 from /nix/gcc/include/c++/13.3.0/exception:164,
                 from /nix/gcc/include/c++/13.3.0/ios:41,
                 from /nix/gcc/include/c++/13.3.0/ostream:40,
                 from /nix/gcc/include/c++/13.3.0/iostream:41,
                 from foo.cc:8:
/nix/gcc/include/c++/13.3.0/bits/cxxabi_init_exception.h: At global scope:
/nix/gcc/include/c++/13.3.0/bits/cxxabi_init_exception.h:63:32: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
   63 |       __cxa_allocate_exception(size_t) _GLIBCXX_NOTHROW;
      |                                ^~~~~~
      |                                std::size_t
/nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/nix/gcc/include/c++/13.3.0/bits/exception_ptr.h: In function ‘std::__exception_ptr::exception_ptr std::make_exception_ptr(_Ex)’:
/nix/gcc/include/c++/13.3.0/bits/exception_ptr.h:253:55: error: ‘__cxxabiv1::__cxa_allocate_exception’ cannot be used as a function
  253 |       void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex));
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /nix/glibc-2.39-52-dev/include/sched.h:44,
                 from /nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:31,
                 from /nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/gthr-default.h:35,
                 from /nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/gthr.h:148,
                 from /nix/gcc/include/c++/13.3.0/ext/atomicity.h:35,
                 from /nix/gcc/include/c++/13.3.0/bits/ios_base.h:39,
                 from /nix/gcc/include/c++/13.3.0/ios:44:
/nix/glibc-2.39-52-dev/include/bits/cpu-set.h: At global scope:
/nix/glibc-2.39-52-dev/include/bits/cpu-set.h:117:30: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
  117 | extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
      |                              ^~~~~~
      |                              std::size_t
/nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/bits/cpu-set.h:117:48: error: expected primary-expression before ‘const’
  117 | extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
      |                                                ^~~~~
/nix/glibc-2.39-52-dev/include/bits/cpu-set.h:117:71: error: expression list treated as compound expression in initializer [-fpermissive]
  117 | extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
      |                                                                       ^
/nix/glibc-2.39-52-dev/include/bits/cpu-set.h:119:37: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
  119 | extern cpu_set_t *__sched_cpualloc (size_t __count) __THROW __wur;
      |                                     ^~~~~~
      |                                     std::size_t
/nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/sched.h:54:28: error: ‘__pid_t’ was not declared in this scope
   54 | extern int sched_setparam (__pid_t __pid, const struct sched_param *__param)
      |                            ^~~~~~~
/nix/glibc-2.39-52-dev/include/sched.h:54:43: error: expected primary-expression before ‘const’
   54 | extern int sched_setparam (__pid_t __pid, const struct sched_param *__param)
      |                                           ^~~~~
/nix/glibc-2.39-52-dev/include/sched.h:54:76: error: expression list treated as compound expression in initializer [-fpermissive]
   54 | extern int sched_setparam (__pid_t __pid, const struct sched_param *__param)
      |                                                                            ^
/nix/glibc-2.39-52-dev/include/sched.h:58:28: error: ‘__pid_t’ was not declared in this scope
   58 | extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW;
      |                            ^~~~~~~
/nix/glibc-2.39-52-dev/include/sched.h:58:43: error: expected primary-expression before ‘struct’
   58 | extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW;
      |                                           ^~~~~~
/nix/glibc-2.39-52-dev/include/sched.h:58:70: error: expression list treated as compound expression in initializer [-fpermissive]
   58 | extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW;
      |                                                                      ^
/nix/glibc-2.39-52-dev/include/sched.h:61:32: error: ‘__pid_t’ was not declared in this scope
   61 | extern int sched_setscheduler (__pid_t __pid, int __policy,
      |                                ^~~~~~~
/nix/glibc-2.39-52-dev/include/sched.h:61:47: error: expected primary-expression before ‘int’
   61 | extern int sched_setscheduler (__pid_t __pid, int __policy,
      |                                               ^~~
/nix/glibc-2.39-52-dev/include/sched.h:62:32: error: expected primary-expression before ‘const’
   62 |                                const struct sched_param *__param) __THROW;
      |                                ^~~~~
/nix/glibc-2.39-52-dev/include/sched.h:62:65: error: expression list treated as compound expression in initializer [-fpermissive]
   62 |                                const struct sched_param *__param) __THROW;
      |                                                                 ^
/nix/glibc-2.39-52-dev/include/sched.h:65:32: error: ‘__pid_t’ was not declared in this scope
   65 | extern int sched_getscheduler (__pid_t __pid) __THROW;
      |                                ^~~~~~~
/nix/glibc-2.39-52-dev/include/sched.h:78:35: error: ‘__pid_t’ was not declared in this scope
   78 | extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
      |                                   ^~~~~~~
/nix/glibc-2.39-52-dev/include/sched.h:78:50: error: expected primary-expression before ‘struct’
   78 | extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
      |                                                  ^~~~~~
/nix/glibc-2.39-52-dev/include/sched.h:78:70: error: expression list treated as compound expression in initializer [-fpermissive]
   78 | extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
      |                                                                      ^
/nix/glibc-2.39-52-dev/include/sched.h:130:31: error: ‘__pid_t’ was not declared in this scope
  130 | extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
      |                               ^~~~~~~
/nix/glibc-2.39-52-dev/include/sched.h:130:46: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
  130 | extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
      |                                              ^~~~~~
      |                                              std::size_t
/nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/sched.h:131:31: error: expected primary-expression before ‘const’
  131 |                               const cpu_set_t *__cpuset) __THROW;
      |                               ^~~~~
/nix/glibc-2.39-52-dev/include/sched.h:131:56: error: expression list treated as compound expression in initializer [-fpermissive]
  131 |                               const cpu_set_t *__cpuset) __THROW;
      |                                                        ^
/nix/glibc-2.39-52-dev/include/sched.h:134:31: error: ‘__pid_t’ was not declared in this scope
  134 | extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
      |                               ^~~~~~~
/nix/glibc-2.39-52-dev/include/sched.h:134:46: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
  134 | extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
      |                                              ^~~~~~
      |                                              std::size_t
/nix/gcc/include/c++/13.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/sched.h:135:41: error: expected primary-expression before ‘*’ token
  135 |                               cpu_set_t *__cpuset) __THROW;
      |                                         ^
/nix/glibc-2.39-52-dev/include/sched.h:135:42: error: ‘__cpuset’ was not declared in this scope
  135 |                               cpu_set_t *__cpuset) __THROW;
      |                                          ^~~~~~~~
/nix/glibc-2.39-52-dev/include/sched.h:135:50: error: expression list treated as compound expression in initializer [-fpermissive]
  135 |                               cpu_set_t *__cpuset) __THROW;
      |                                                  ^
In file included from /nix/glibc-2.39-52-dev/include/bits/time.h:73,
                 from /nix/glibc-2.39-52-dev/include/time.h:33,
                 from /nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:32:
/nix/glibc-2.39-52-dev/include/bits/timex.h:59:3: error: ‘__syscall_slong_t’ does not name a type
   59 |   __syscall_slong_t offset;     /* time offset (usec) */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:60:3: error: ‘__syscall_slong_t’ does not name a type
   60 |   __syscall_slong_t freq;       /* frequency offset (scaled ppm) */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:61:3: error: ‘__syscall_slong_t’ does not name a type
   61 |   __syscall_slong_t maxerror;   /* maximum error (usec) */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:62:3: error: ‘__syscall_slong_t’ does not name a type
   62 |   __syscall_slong_t esterror;   /* estimated error (usec) */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:64:3: error: ‘__syscall_slong_t’ does not name a type
   64 |   __syscall_slong_t constant;   /* pll time constant */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:65:3: error: ‘__syscall_slong_t’ does not name a type
   65 |   __syscall_slong_t precision;  /* clock precision (usec) (ro) */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:66:3: error: ‘__syscall_slong_t’ does not name a type
   66 |   __syscall_slong_t tolerance;  /* clock frequency tolerance (ppm) (ro) */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:68:3: error: ‘__syscall_slong_t’ does not name a type
   68 |   __syscall_slong_t tick;       /* (modified) usecs between clock ticks */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:69:3: error: ‘__syscall_slong_t’ does not name a type
   69 |   __syscall_slong_t ppsfreq;    /* pps frequency (scaled ppm) (ro) */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:70:3: error: ‘__syscall_slong_t’ does not name a type
   70 |   __syscall_slong_t jitter;     /* pps jitter (us) (ro) */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:72:3: error: ‘__syscall_slong_t’ does not name a type
   72 |   __syscall_slong_t stabil;     /* pps stability (scaled ppm) (ro) */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:73:3: error: ‘__syscall_slong_t’ does not name a type
   73 |   __syscall_slong_t jitcnt;     /* jitter limit exceeded (ro) */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:74:3: error: ‘__syscall_slong_t’ does not name a type
   74 |   __syscall_slong_t calcnt;     /* calibration intervals (ro) */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:75:3: error: ‘__syscall_slong_t’ does not name a type
   75 |   __syscall_slong_t errcnt;     /* calibration errors (ro) */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/timex.h:76:3: error: ‘__syscall_slong_t’ does not name a type
   76 |   __syscall_slong_t stbcnt;     /* stability limit exceeded (ro) */
      |   ^~~~~~~~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/time.h:78:27: error: ‘__clockid_t’ was not declared in this scope
   78 | extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) __THROW __nonnull((2));
      |                           ^~~~~~~~~~~
/nix/glibc-2.39-52-dev/include/bits/time.h:78:51: error: expected primary-expression before ‘struct’
   78 | extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) __THROW __nonnull((2));
      |                                                   ^~~~~~
/nix/glibc-2.39-52-dev/include/bits/time.h:78:70: error: expression list treated as compound expression in initializer [-fpermissive]
   78 | extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) __THROW __nonnull((2));
      |                                                                      ^
/nix/glibc-2.39-52-dev/include/time.h:72:8: error: ‘clock_t’ does not name a type
   72 | extern clock_t clock (void) __THROW;
      |        ^~~~~~~
/nix/glibc-2.39-52-dev/include/time.h:49:1: note: ‘clock_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
   48 | # include <bits/types/struct_itimerspec.h>
  +++ |+#include <ctime>
   49 | struct sigevent;
/nix/glibc-2.39-52-dev/include/time.h:76:8: error: ‘time_t’ does not name a type
   76 | extern time_t time (time_t *__timer) __THROW;
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:76:8: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
/nix/glibc-2.39-52-dev/include/time.h:79:25: error: ‘time_t’ was not declared in this scope
   79 | extern double difftime (time_t __time1, time_t __time0)
      |                         ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:79:25: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
/nix/glibc-2.39-52-dev/include/time.h:79:41: error: ‘time_t’ was not declared in this scope
   79 | extern double difftime (time_t __time1, time_t __time0)
      |                                         ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:79:41: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
/nix/glibc-2.39-52-dev/include/time.h:79:55: error: expression list treated as compound expression in initializer [-fpermissive]
   79 | extern double difftime (time_t __time1, time_t __time0)
      |                                                       ^
/nix/glibc-2.39-52-dev/include/time.h:83:8: error: ‘time_t’ does not name a type
   83 | extern time_t mktime (struct tm *__tp) __THROW;
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:83:8: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
/nix/glibc-2.39-52-dev/include/time.h:100:8: error: ‘size_t’ does not name a type
  100 | extern size_t strftime (char *__restrict __s, size_t __maxsize,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:49:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
   48 | # include <bits/types/struct_itimerspec.h>
  +++ |+#include <cstddef>
   49 | struct sigevent;
/nix/glibc-2.39-52-dev/include/time.h:117:8: error: ‘size_t’ does not name a type
  117 | extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:117:8: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/nix/glibc-2.39-52-dev/include/time.h:133:33: error: ‘time_t’ does not name a type
  133 | extern struct tm *gmtime (const time_t *__timer) __THROW;
      |                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:133:33: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
/nix/glibc-2.39-52-dev/include/time.h:137:36: error: ‘time_t’ does not name a type
  137 | extern struct tm *localtime (const time_t *__timer) __THROW;
      |                                    ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:137:36: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
/nix/glibc-2.39-52-dev/include/time.h:155:35: error: ‘time_t’ does not name a type
  155 | extern struct tm *gmtime_r (const time_t *__restrict __timer,
      |                                   ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:155:35: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
/nix/glibc-2.39-52-dev/include/time.h:160:38: error: ‘time_t’ does not name a type
  160 | extern struct tm *localtime_r (const time_t *__restrict __timer,
      |                                      ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:160:38: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
/nix/glibc-2.39-52-dev/include/time.h:184:27: error: ‘time_t’ does not name a type
  184 | extern char *ctime (const time_t *__timer) __THROW;
      |                           ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:184:27: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
/nix/glibc-2.39-52-dev/include/time.h:203:29: error: ‘time_t’ does not name a type
  203 | extern char *ctime_r (const time_t *__restrict __timer,
      |                             ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:203:29: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
/nix/glibc-2.39-52-dev/include/time.h:247:8: error: ‘time_t’ does not name a type
  247 | extern time_t timegm (struct tm *__tp) __THROW;
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:247:8: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
/nix/glibc-2.39-52-dev/include/time.h:264:8: error: ‘time_t’ does not name a type
  264 | extern time_t timelocal (struct tm *__tp) __THROW;
      |        ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:264:8: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
/nix/glibc-2.39-52-dev/include/time.h:286:26: error: ‘clockid_t’ was not declared in this scope
  286 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW;
      |                          ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/time.h:286:48: error: expected primary-expression before ‘struct’
  286 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW;
      |                                                ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:286:70: error: expression list treated as compound expression in initializer [-fpermissive]
  286 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW;
      |                                                                      ^
/nix/glibc-2.39-52-dev/include/time.h:289:27: error: ‘clockid_t’ was not declared in this scope
  289 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp)
      |                           ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/time.h:289:49: error: expected primary-expression before ‘struct’
  289 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp)
      |                                                 ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:289:70: error: expression list treated as compound expression in initializer [-fpermissive]
  289 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp)
      |                                                                      ^
/nix/glibc-2.39-52-dev/include/time.h:293:27: error: ‘clockid_t’ was not declared in this scope
  293 | extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)
      |                           ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/time.h:293:49: error: expected primary-expression before ‘const’
  293 | extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)
      |                                                 ^~~~~
/nix/glibc-2.39-52-dev/include/time.h:293:76: error: expression list treated as compound expression in initializer [-fpermissive]
  293 | extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)
      |                                                                            ^
/nix/glibc-2.39-52-dev/include/time.h:324:29: error: ‘clockid_t’ was not declared in this scope
  324 | extern int clock_nanosleep (clockid_t __clock_id, int __flags,
      |                             ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/time.h:324:51: error: expected primary-expression before ‘int’
  324 | extern int clock_nanosleep (clockid_t __clock_id, int __flags,
      |                                                   ^~~
/nix/glibc-2.39-52-dev/include/time.h:325:29: error: expected primary-expression before ‘const’
  325 |                             const struct timespec *__req,
      |                             ^~~~~
/nix/glibc-2.39-52-dev/include/time.h:326:29: error: expected primary-expression before ‘struct’
  326 |                             struct timespec *__rem);
      |                             ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:326:51: error: expression list treated as compound expression in initializer [-fpermissive]
  326 |                             struct timespec *__rem);
      |                                                   ^
/nix/glibc-2.39-52-dev/include/time.h:339:33: error: ‘pid_t’ was not declared in this scope
  339 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
      |                                 ^~~~~
/nix/glibc-2.39-52-dev/include/time.h:339:46: error: ‘clockid_t’ was not declared in this scope
  339 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
      |                                              ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/time.h:339:57: error: ‘__clock_id’ was not declared in this scope
  339 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
      |                                                         ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/time.h:339:67: error: expression list treated as compound expression in initializer [-fpermissive]
  339 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
      |                                                                   ^
/nix/glibc-2.39-52-dev/include/time.h:344:26: error: ‘clockid_t’ was not declared in this scope
  344 | extern int timer_create (clockid_t __clock_id,
      |                          ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/time.h:345:26: error: expected primary-expression before ‘struct’
  345 |                          struct sigevent *__restrict __evp,
      |                          ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:346:26: error: ‘timer_t’ was not declared in this scope; did you mean ‘timex’?
  346 |                          timer_t *__restrict __timerid) __THROW;
      |                          ^~~~~~~
      |                          timex
/nix/glibc-2.39-52-dev/include/time.h:346:35: error: expected primary-expression before ‘__restrict’
  346 |                          timer_t *__restrict __timerid) __THROW;
      |                                   ^~~~~~~~~~
/nix/glibc-2.39-52-dev/include/time.h:346:55: error: expression list treated as compound expression in initializer [-fpermissive]
  346 |                          timer_t *__restrict __timerid) __THROW;
      |                                                       ^
/nix/glibc-2.39-52-dev/include/time.h:349:26: error: ‘timer_t’ was not declared in this scope; did you mean ‘timex’?
  349 | extern int timer_delete (timer_t __timerid) __THROW;
      |                          ^~~~~~~
      |                          timex
/nix/glibc-2.39-52-dev/include/time.h:353:27: error: ‘timer_t’ was not declared in this scope; did you mean ‘timex’?
  353 | extern int timer_settime (timer_t __timerid, int __flags,
      |                           ^~~~~~~
      |                           timex
/nix/glibc-2.39-52-dev/include/time.h:353:46: error: expected primary-expression before ‘int’
  353 | extern int timer_settime (timer_t __timerid, int __flags,
      |                                              ^~~
/nix/glibc-2.39-52-dev/include/time.h:354:27: error: expected primary-expression before ‘const’
  354 |                           const struct itimerspec *__restrict __value,
      |                           ^~~~~
/nix/glibc-2.39-52-dev/include/time.h:355:27: error: expected primary-expression before ‘struct’
  355 |                           struct itimerspec *__restrict __ovalue) __THROW;
      |                           ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:355:65: error: expression list treated as compound expression in initializer [-fpermissive]
  355 |                           struct itimerspec *__restrict __ovalue) __THROW;
      |                                                                 ^
/nix/glibc-2.39-52-dev/include/time.h:358:27: error: ‘timer_t’ was not declared in this scope; did you mean ‘timex’?
  358 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
      |                           ^~~~~~~
      |                           timex
/nix/glibc-2.39-52-dev/include/time.h:358:46: error: expected primary-expression before ‘struct’
  358 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
      |                                              ^~~~~~
/nix/glibc-2.39-52-dev/include/time.h:358:72: error: expression list treated as compound expression in initializer [-fpermissive]
  358 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
      |                                                                        ^
/nix/glibc-2.39-52-dev/include/time.h:377:30: error: ‘timer_t’ was not declared in this scope; did you mean ‘timex’?
  377 | extern int timer_getoverrun (timer_t __timerid) __THROW;
      |                              ^~~~~~~
      |                              timex
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:253:34: error: ‘clockid_t’ has not been declared
  253 |                                  clockid_t __clockid,
      |                                  ^~~~~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:313:39: error: ‘size_t’ has not been declared
  313 |                                       size_t *__guardsize)
      |                                       ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:318:39: error: ‘size_t’ has not been declared
  318 |                                       size_t __guardsize)
      |                                       ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:376:47: error: ‘size_t’ has not been declared
  376 |                                       __attr, size_t *__restrict __stacksize)
      |                                               ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:383:39: error: ‘size_t’ has not been declared
  383 |                                       size_t __stacksize)
      |                                       ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:390:35: error: ‘size_t’ has not been declared
  390 |                                   size_t *__restrict __stacksize)
      |                                   ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:397:35: error: ‘size_t’ has not been declared
  397 |                                   size_t __stacksize) __THROW __nonnull ((1));
      |                                   ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:404:41: error: ‘size_t’ has not been declared
  404 |                                         size_t __cpusetsize,
      |                                         ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:411:41: error: ‘size_t’ has not been declared
  411 |                                         size_t __cpusetsize,
      |                                         ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:468:32: error: ‘size_t’ has not been declared
  468 |                                size_t __buflen)
      |                                ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:498:52: error: ‘size_t’ has not been declared
  498 | extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize,
      |                                                    ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:503:52: error: ‘size_t’ has not been declared
  503 | extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize,
      |                                                    ^~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:827:37: error: ‘clockid_t’ has not been declared
  827 |                                     clockid_t __clockid,
      |                                     ^~~~~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:1014:40: error: ‘clockid_t’ has not been declared
 1014 |                                        clockid_t __clockid,
      |                                        ^~~~~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:1061:40: error: ‘clockid_t’ has not been declared
 1061 |                                        clockid_t __clockid,
      |                                        ^~~~~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:1182:36: error: ‘__clockid_t’ has not been declared
 1182 |                                    __clockid_t __clock_id,
      |                                    ^~~~~~~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:1224:39: error: ‘__clockid_t’ has not been declared
 1224 |                                       __clockid_t *__restrict __clock_id)
      |                                       ^~~~~~~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:1229:39: error: ‘__clockid_t’ has not been declared
 1229 |                                       __clockid_t __clock_id)
      |                                       ^~~~~~~~~~~
/nix/gcc/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed/pthread.h:1325:35: error: ‘__clockid_t’ has not been declared
 1325 |                                   __clockid_t *__clock_id)
      |                                   ^~~~~~~~~~~
In file included from /nix/gcc/include/c++/13.3.0/bits/locale_classes.h:869,
                 from /nix/gcc/include/c++/13.3.0/bits/ios_base.h:41:
/nix/gcc/include/c++/13.3.0/bits/locale_classes.tcc: In function ‘const _Facet* std::__try_use_facet(const locale&)’:
/nix/gcc/include/c++/13.3.0/bits/locale_classes.tcc:106:7: error: ‘mbstate_t’ was not declared in this scope
  106 |       _GLIBCXX_STD_FACET(codecvt<char, char, mbstate_t>);
      |       ^~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/locale_classes.tcc:106:7: error: template argument 3 is invalid
  106 |       _GLIBCXX_STD_FACET(codecvt<char, char, mbstate_t>);
      |       ^~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/locale_classes.tcc:106:7: error: expected primary-expression before ‘)’ token
  106 |       _GLIBCXX_STD_FACET(codecvt<char, char, mbstate_t>);
      |       ^~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/locale_classes.tcc:121:7: error: ‘mbstate_t’ was not declared in this scope
  121 |       _GLIBCXX_STD_FACET(codecvt<wchar_t, char, mbstate_t>);
      |       ^~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/locale_classes.tcc:121:7: error: template argument 3 is invalid
  121 |       _GLIBCXX_STD_FACET(codecvt<wchar_t, char, mbstate_t>);
      |       ^~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/locale_classes.tcc:121:7: error: expected primary-expression before ‘)’ token
  121 |       _GLIBCXX_STD_FACET(codecvt<wchar_t, char, mbstate_t>);
      |       ^~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/locale_classes.tcc:133:7: error: ‘mbstate_t’ was not declared in this scope
  133 |       _GLIBCXX_STD_FACET(codecvt<char16_t, char, mbstate_t>);
      |       ^~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/locale_classes.tcc:133:7: error: template argument 3 is invalid
  133 |       _GLIBCXX_STD_FACET(codecvt<char16_t, char, mbstate_t>);
      |       ^~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/locale_classes.tcc:133:7: error: expected primary-expression before ‘)’ token
  133 |       _GLIBCXX_STD_FACET(codecvt<char16_t, char, mbstate_t>);
      |       ^~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/locale_classes.tcc:134:7: error: ‘mbstate_t’ was not declared in this scope
  134 |       _GLIBCXX_STD_FACET(codecvt<char32_t, char, mbstate_t>);
      |       ^~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/locale_classes.tcc:134:7: error: template argument 3 is invalid
  134 |       _GLIBCXX_STD_FACET(codecvt<char32_t, char, mbstate_t>);
      |       ^~~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/13.3.0/bits/locale_classes.tcc:134:7: error: expected primary-expression before ‘)’ token
  134 |       _GLIBCXX_STD_FACET(codecvt<char32_t, char, mbstate_t>);
      |       ^~~~~~~~~~~~~~~~~~
In file included from /nix/gcc/include/c++/13.3.0/cwctype:50,
                 from /nix/gcc/include/c++/13.3.0/bits/locale_facets.h:39,
                 from /nix/gcc/include/c++/13.3.0/bits/basic_ios.h:37,
                 from /nix/gcc/include/c++/13.3.0/ios:46:
/nix/glibc-2.39-52-dev/include/wctype.h: At global scope:
/nix/glibc-2.39-52-dev/include/wctype.h:48:15: error: ‘__int32_t’ does not name a type; did you mean ‘__int128_t’?
   48 | typedef const __int32_t *wctrans_t;
      |               ^~~~~~~~~
      |               __int128_t
/nix/glibc-2.39-52-dev/include/wctype.h:52:8: error: ‘wctrans_t’ does not name a type
   52 | extern wctrans_t wctrans (const char *__property) __THROW;
      |        ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/wctype.h:55:39: error: ‘wctrans_t’ has not been declared
   55 | extern wint_t towctrans (wint_t __wc, wctrans_t __desc) __THROW;
      |                                       ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/wctype.h:137:8: error: ‘wctrans_t’ does not name a type
  137 | extern wctrans_t wctrans_l (const char *__property, locale_t __locale)
      |        ^~~~~~~~~
/nix/glibc-2.39-52-dev/include/wctype.h:141:41: error: ‘wctrans_t’ has not been declared
  141 | extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc,
      |                                         ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/cwctype:82:11: error: ‘wctrans_t’ has not been declared in ‘::’
   82 |   using ::wctrans_t;
      |           ^~~~~~~~~
/nix/gcc/include/c++/13.3.0/cwctype:104:11: error: ‘wctrans’ has not been declared in ‘::’
  104 |   using ::wctrans;
      |           ^~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:29:13: error: ‘scanf’ was not declared in this scope; did you mean ‘wscanf’?
   29 |             scanf("%I64d%I64d",&n,&k); ans = 0;
      |             ^~~~~
      |             wscanf
foo.cc:41:13: error: ‘printf’ was not declared in this scope
   41 |             printf("%I64d\n",ans % 1234567);
      |             ^~~~~~
foo.cc:13:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
   12 |     #include <vector>
  +++ |+#include <cstdio>
   13 |     using namespace std;

信息

递交者
类型
递交
题目
P1090 连续数之和
语言
C++
递交时间
2024-09-22 09:16:06
评测时间
2024-09-22 09:16:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes