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 /usr/include/c++/9/cmath:45,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:344:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
344 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:349:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
349 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:355:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
355 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:361:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
361 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
| ^~~~~~~~~~
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/stdlib.h:97:8: error: 'size_t' does not name a type
97 | extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
| ^~~~~~
/usr/include/stdlib.h:41:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
40 | # include <bits/waitstatus.h>
+++ |+#include <cstddef>
41 |
/usr/include/stdlib.h:212:36: error: 'size_t' has not been declared
212 | extern int strfromd (char *__dest, size_t __size, const char *__format,
| ^~~~~~
/usr/include/stdlib.h:216:36: error: 'size_t' has not been declared
216 | extern int strfromf (char *__dest, size_t __size, const char *__format,
| ^~~~~~
/usr/include/stdlib.h:220:36: error: 'size_t' has not been declared
220 | extern int strfroml (char *__dest, size_t __size, const char *__format,
| ^~~~~~
/usr/include/stdlib.h:232:38: error: 'size_t' has not been declared
232 | extern int strfromf32 (char *__dest, size_t __size, const char * __format,
| ^~~~~~
/usr/include/stdlib.h:238:38: error: 'size_t' has not been declared
238 | extern int strfromf64 (char *__dest, size_t __size, const char * __format,
| ^~~~~~
/usr/include/stdlib.h:244:39: error: 'size_t' has not been declared
244 | extern int strfromf128 (char *__dest, size_t __size, const char * __format,
| ^~~~~~
/usr/include/stdlib.h:250:39: error: 'size_t' has not been declared
250 | extern int strfromf32x (char *__dest, size_t __size, const char * __format,
| ^~~~~~
/usr/include/stdlib.h:256:39: error: 'size_t' has not been declared
256 | extern int strfromf64x (char *__dest, size_t __size, const char * __format,
| ^~~~~~
In file included from /usr/include/stdlib.h:394,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/sys/types.h:33:9: error: '__u_char' does not name a type
33 | typedef __u_char u_char;
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:34:9: error: '__u_short' does not name a type
34 | typedef __u_short u_short;
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:35:9: error: '__u_int' does not name a type; did you mean '__lrint'?
35 | typedef __u_int u_int;
| ^~~~~~~
| __lrint
/usr/include/x86_64-linux-gnu/sys/types.h:36:9: error: '__u_long' does not name a type; did you mean '__log'?
36 | typedef __u_long u_long;
| ^~~~~~~~
| __log
/usr/include/x86_64-linux-gnu/sys/types.h:37:9: error: '__quad_t' does not name a type
37 | typedef __quad_t quad_t;
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:38:9: error: '__u_quad_t' does not name a type
38 | typedef __u_quad_t u_quad_t;
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:39:9: error: '__fsid_t' does not name a type
39 | typedef __fsid_t fsid_t;
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:42:9: error: '__loff_t' does not name a type
42 | typedef __loff_t loff_t;
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:47:9: error: '__ino_t' does not name a type
47 | typedef __ino_t ino_t;
| ^~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:54:9: error: '__ino64_t' does not name a type
54 | typedef __ino64_t ino64_t;
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:59:9: error: '__dev_t' does not name a type
59 | typedef __dev_t dev_t;
| ^~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:64:9: error: '__gid_t' does not name a type
64 | typedef __gid_t gid_t;
| ^~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:69:9: error: '__mode_t' does not name a type
69 | typedef __mode_t mode_t;
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:74:9: error: '__nlink_t' does not name a type
74 | typedef __nlink_t nlink_t;
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:79:9: error: '__uid_t' does not name a type
79 | typedef __uid_t uid_t;
| ^~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:97:9: error: '__pid_t' does not name a type
97 | typedef __pid_t pid_t;
| ^~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:103:9: error: '__id_t' does not name a type
103 | typedef __id_t id_t;
| ^~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:114:9: error: '__daddr_t' does not name a type
114 | typedef __daddr_t daddr_t;
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:115:9: error: '__caddr_t' does not name a type
115 | typedef __caddr_t caddr_t;
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:121:9: error: '__key_t' does not name a type
121 | typedef __key_t key_t;
| ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:126,
from /usr/include/stdlib.h:394,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/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 /usr/include/x86_64-linux-gnu/sys/types.h:128,
from /usr/include/stdlib.h:394,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/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 /usr/include/x86_64-linux-gnu/sys/types.h:129,
from /usr/include/stdlib.h:394,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/types/time_t.h:7:9: error: '__time_t' does not name a type
7 | typedef __time_t time_t;
| ^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:130,
from /usr/include/stdlib.h:394,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/types/timer_t.h:7:9: error: '__timer_t' does not name a type
7 | typedef __timer_t timer_t;
| ^~~~~~~~~
In file included from /usr/include/stdlib.h:394,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/sys/types.h:134:9: error: '__useconds_t' does not name a type
134 | typedef __useconds_t useconds_t;
| ^~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/sys/types.h:138:9: error: '__suseconds_t' does not name a type
138 | typedef __suseconds_t suseconds_t;
| ^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:155,
from /usr/include/stdlib.h:394,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/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
/usr/include/x86_64-linux-gnu/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
/usr/include/x86_64-linux-gnu/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
/usr/include/x86_64-linux-gnu/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
In file included from /usr/include/stdlib.h:394,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/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
/usr/include/x86_64-linux-gnu/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
/usr/include/x86_64-linux-gnu/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
/usr/include/x86_64-linux-gnu/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 /usr/include/endian.h:35,
from /usr/include/x86_64-linux-gnu/sys/types.h:176,
from /usr/include/stdlib.h:394,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/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
/usr/include/x86_64-linux-gnu/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
/usr/include/x86_64-linux-gnu/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 /usr/include/endian.h:36,
from /usr/include/x86_64-linux-gnu/sys/types.h:176,
from /usr/include/stdlib.h:394,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/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
/usr/include/x86_64-linux-gnu/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
/usr/include/x86_64-linux-gnu/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 /usr/include/x86_64-linux-gnu/sys/select.h:37,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /usr/include/stdlib.h:394,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h:10:3: error: '__time_t' does not name a type; did you mean '__sigset_t'?
10 | __time_t tv_sec; /* Seconds. */
| ^~~~~~~~
| __sigset_t
/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h:11:3: error: '__suseconds_t' does not name a type
11 | __suseconds_t tv_usec; /* Microseconds. */
| ^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:39,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /usr/include/stdlib.h:394,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h:12:3: error: '__time_t' does not name a type; did you mean '__sigset_t'?
12 | __time_t tv_sec; /* Seconds. */
| ^~~~~~~~
| __sigset_t
/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h:16:3: error: '__syscall_slong_t' does not name a type
16 | __syscall_slong_t tv_nsec; /* Nanoseconds. */
| ^~~~~~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:394,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/sys/types.h:185:9: error: '__blksize_t' does not name a type
185 | typedef __blksize_t blksize_t;
| ^~~~~~~~~~~
/usr/include/x86_64-linux-gnu/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. */
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/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. */
| ^~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/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. */
| ^~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/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. */
| ^~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/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. */
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/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. */
| ^~~~~~~~~~~~~~
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/stdlib.h:411:4: error: 'size_t' has not been declared
411 | size_t __statelen) __THROW __nonnull ((2));
| ^~~~~~
/usr/include/stdlib.h:425:5: error: 'int32_t' does not name a type
425 | int32_t *fptr; /* Front pointer. */
| ^~~~~~~
/usr/include/stdlib.h:426:5: error: 'int32_t' does not name a type
426 | int32_t *rptr; /* Rear pointer. */
| ^~~~~~~
/usr/include/stdlib.h:427:5: error: 'int32_t' does not name a type
427 | int32_t *state; /* Array of state values. */
| ^~~~~~~
/usr/include/stdlib.h:431:5: error: 'int32_t' does not name a type
431 | int32_t *end_ptr; /* Pointer behind state table. */
| ^~~~~~~
/usr/include/stdlib.h:435:8: error: 'int32_t' has not been declared
435 | int32_t *__restrict __result) __THROW __nonnull ((1, 2));
| ^~~~~~~
/usr/include/stdlib.h:441:4: error: 'size_t' has not been declared
441 | size_t __statelen,
| ^~~~~~
/usr/include/stdlib.h:539:22: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
539 | extern void *malloc (size_t __size) __THROW __attribute_malloc__
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/stdlib.h:542:22: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
542 | extern void *calloc (size_t __nmemb, size_t __size)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/stdlib.h:542:38: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
542 | extern void *calloc (size_t __nmemb, size_t __size)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/stdlib.h:542:51: error: expression list treated as compound expression in initializer [-fpermissive]
542 | extern void *calloc (size_t __nmemb, size_t __size)
| ^
/usr/include/stdlib.h:550:36: error: 'size_t' has not been declared
550 | extern void *realloc (void *__ptr, size_t __size)
| ^~~~~~
/usr/include/stdlib.h:559:41: error: 'size_t' has not been declared
559 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
| ^~~~~~
/usr/include/stdlib.h:559:57: error: 'size_t' has not been declared
559 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
| ^~~~~~
In file included from /usr/include/stdlib.h:568,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/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
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/stdlib.h:574:22: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
574 | extern void *valloc (size_t __size) __THROW __attribute_malloc__
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/stdlib.h:580:45: error: 'size_t' has not been declared
580 | extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
| ^~~~~~
/usr/include/stdlib.h:580:65: error: 'size_t' has not been declared
580 | extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
| ^~~~~~
/usr/include/stdlib.h:586:29: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
586 | extern void *aligned_alloc (size_t __alignment, size_t __size)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/stdlib.h:586:49: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
586 | extern void *aligned_alloc (size_t __alignment, size_t __size)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/stdlib.h:586:62: error: expression list treated as compound expression in initializer [-fpermissive]
586 | extern void *aligned_alloc (size_t __alignment, size_t __size)
| ^
/usr/include/stdlib.h:821:9: error: 'size_t' has not been declared
821 | size_t __nmemb, size_t __size, __compar_fn_t __compar)
| ^~~~~~
/usr/include/stdlib.h:821:25: error: 'size_t' has not been declared
821 | size_t __nmemb, size_t __size, __compar_fn_t __compar)
| ^~~~~~
In file included from /usr/include/stdlib.h:825,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/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,
| ^~~~~~
/usr/include/x86_64-linux-gnu/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,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: In function 'void* bsearch(const void*, const void*, int, int, __compar_fn_t)':
/usr/include/x86_64-linux-gnu/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
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/stdlib.h:825,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:27:3: error: '__l' was not declared in this scope; did you mean '__p'?
27 | __l = 0;
| ^~~
| __p
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:28:3: error: '__u' was not declared in this scope; did you mean '__p'?
28 | __u = __nmemb;
| ^~~
| __p
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:31:7: error: '__idx' was not declared in this scope
31 | __idx = (__l + __u) / 2;
| ^~~~~
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/stdlib.h: At global scope:
/usr/include/stdlib.h:830:34: error: 'size_t' has not been declared
830 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
| ^~~~~~
/usr/include/stdlib.h:830:50: error: 'size_t' has not been declared
830 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
| ^~~~~~
/usr/include/stdlib.h:833:36: error: 'size_t' has not been declared
833 | extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
| ^~~~~~
/usr/include/stdlib.h:833:52: error: 'size_t' has not been declared
833 | extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
| ^~~~~~
/usr/include/stdlib.h:904:6: error: 'size_t' has not been declared
904 | size_t __len) __THROW __nonnull ((3, 4, 5));
| ^~~~~~
/usr/include/stdlib.h:907:6: error: 'size_t' has not been declared
907 | size_t __len) __THROW __nonnull ((3, 4, 5));
| ^~~~~~
/usr/include/stdlib.h:911:31: error: 'size_t' has not been declared
911 | char *__restrict __buf, size_t __len)
| ^~~~~~
/usr/include/stdlib.h:915:31: error: 'size_t' has not been declared
915 | char *__restrict __buf, size_t __len)
| ^~~~~~
/usr/include/stdlib.h:922:36: error: 'size_t' has not been declared
922 | extern int mblen (const char *__s, size_t __n) __THROW;
| ^~~~~~
/usr/include/stdlib.h:926:34: error: 'size_t' has not been declared
926 | const char *__restrict __s, size_t __n) __THROW;
| ^~~~~~
/usr/include/stdlib.h:933:8: error: 'size_t' does not name a type
933 | extern size_t mbstowcs (wchar_t *__restrict __pwcs,
| ^~~~~~
/usr/include/stdlib.h:933:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/stdlib.h:936:8: error: 'size_t' does not name a type
936 | extern size_t wcstombs (char *__restrict __s,
| ^~~~~~
/usr/include/stdlib.h:936:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/stdlib.h:992:46: error: 'size_t' has not been declared
992 | extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
| ^~~~~~
In file included from /usr/include/stdlib.h:1017,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/stdlib.h:25:9: error: 'size_t' has not been declared
25 | size_t __resolvedlen) __THROW __wur;
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/stdlib.h:29:14: error: 'size_t' has not been declared
29 | extern char *__REDIRECT_NTH (__realpath_chk_warn,
| ^~~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:1017,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/stdlib.h: In function 'char* realpath(const char*, char*)':
/usr/include/x86_64-linux-gnu/bits/stdlib.h:39:30: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
39 | if (__bos (__resolved) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/stdlib.h:1017,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/stdlib.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/stdlib.h:52:52: error: 'size_t' has not been declared
52 | extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:53:8: error: 'size_t' has not been declared
53 | size_t __nreal) __THROW __nonnull ((2));
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/stdlib.h:54:12: error: 'size_t' has not been declared
54 | extern int __REDIRECT_NTH (__ptsname_r_alias, (int __fd, char *__buf,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:57:12: error: 'size_t' has not been declared
57 | extern int __REDIRECT_NTH (__ptsname_r_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:57:12: error: 'size_t' has not been declared
57 | extern int __REDIRECT_NTH (__ptsname_r_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:64:1: error: 'size_t' has not been declared
64 | __NTH (ptsname_r (int __fd, char *__buf, size_t __buflen))
| ^~~~~
In file included from /usr/include/stdlib.h:1017,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/stdlib.h: In function 'int ptsname_r(int, char*, int)':
/usr/include/x86_64-linux-gnu/bits/stdlib.h:66:25: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
66 | if (__bos (__buf) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/stdlib.h:1017,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/stdlib.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/stdlib.h:77:54: error: 'size_t' has not been declared
77 | extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen)
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h: In function 'int wctomb(char*, wchar_t)':
/usr/include/x86_64-linux-gnu/bits/stdlib.h:92:23: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
92 | if (__bos (__s) != (size_t) -1 && __STDLIB_MB_LEN_MAX > __bos (__s))
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/stdlib.h:1017,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/stdlib.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/stdlib.h:98:8: error: 'size_t' does not name a type
98 | extern size_t __mbstowcs_chk (wchar_t *__restrict __dst,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:1:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | /* Checking macros for stdlib functions.
/usr/include/x86_64-linux-gnu/bits/stdlib.h:101:8: error: 'size_t' does not name a type
101 | extern size_t __REDIRECT_NTH (__mbstowcs_alias,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:101:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/stdlib.h:105:8: error: 'size_t' does not name a type
105 | extern size_t __REDIRECT_NTH (__mbstowcs_chk_warn,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:105:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/stdlib.h:112:20: error: 'size_t' does not name a type
112 | __fortify_function size_t
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:112:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/stdlib.h:130:8: error: 'size_t' does not name a type
130 | extern size_t __wcstombs_chk (char *__restrict __dst,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:130:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/stdlib.h:133:8: error: 'size_t' does not name a type
133 | extern size_t __REDIRECT_NTH (__wcstombs_alias,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:133:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/stdlib.h:137:8: error: 'size_t' does not name a type
137 | extern size_t __REDIRECT_NTH (__wcstombs_chk_warn,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:137:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/stdlib.h:143:20: error: 'size_t' does not name a type
143 | __fortify_function size_t
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:143:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/9/stdlib.h:36,
from foo.cc:4:
/usr/include/c++/9/cstdlib:154:11: error: '::mbstowcs' has not been declared
154 | using ::mbstowcs;
| ^~~~~~~~
/usr/include/c++/9/cstdlib:171:11: error: '::wcstombs' has not been declared
171 | using ::wcstombs;
| ^~~~~~~~
In file included from foo.cc:4:
/usr/include/c++/9/stdlib.h:68:12: error: 'std::mbstowcs' has not been declared
68 | using std::mbstowcs;
| ^~~~~~~~
/usr/include/c++/9/stdlib.h:80:12: error: 'std::wcstombs' has not been declared
80 | using std::wcstombs;
| ^~~~~~~~
In file included from foo.cc:5:
/usr/include/string.h:44:8: error: 'size_t' has not been declared
44 | size_t __n) __THROW __nonnull ((1, 2));
| ^~~~~~
/usr/include/string.h:47:56: error: 'size_t' has not been declared
47 | extern void *memmove (void *__dest, const void *__src, size_t __n)
| ^~~~~~
/usr/include/string.h:55:18: error: 'size_t' has not been declared
55 | int __c, size_t __n)
| ^~~~~~
/usr/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));
| ^~~~~~
/usr/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)
| ^~~~~~
/usr/include/string.h:71:42: error: 'size_t' has not been declared
71 | extern void *memchr (void *__s, int __c, size_t __n)
| ^~~~~~
/usr/include/string.h:73:54: error: 'size_t' has not been declared
73 | extern const void *memchr (const void *__s, int __c, size_t __n)
| ^~~~~~
/usr/include/string.h:78:29: error: 'size_t' has not been declared
78 | memchr (void *__s, int __c, size_t __n) __THROW
| ^~~~~~
/usr/include/string.h:84:35: error: 'size_t' has not been declared
84 | memchr (const void *__s, int __c, size_t __n) __THROW
| ^~~~~~
/usr/include/string.h:110:49: error: 'size_t' has not been declared
110 | extern "C++" void *memrchr (void *__s, int __c, size_t __n)
| ^~~~~~
/usr/include/string.h:112:61: error: 'size_t' has not been declared
112 | extern "C++" const void *memrchr (const void *__s, int __c, size_t __n)
| ^~~~~~
/usr/include/string.h:126:39: error: 'size_t' has not been declared
126 | const char *__restrict __src, size_t __n)
| ^~~~~~
/usr/include/string.h:134:9: error: 'size_t' has not been declared
134 | size_t __n) __THROW __nonnull ((1, 2));
| ^~~~~~
/usr/include/string.h:140:57: error: 'size_t' has not been declared
140 | extern int strncmp (const char *__s1, const char *__s2, size_t __n)
| ^~~~~~
/usr/include/string.h:147:8: error: 'size_t' does not name a type
147 | extern size_t strxfrm (char *__restrict __dest,
| ^~~~~~
/usr/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 |
/usr/include/string.h:160:8: error: 'size_t' does not name a type
160 | extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,
| ^~~~~~
/usr/include/string.h:160:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/string.h:175:45: error: 'size_t' has not been declared
175 | extern char *strndup (const char *__string, size_t __n)
| ^~~~~~
/usr/include/string.h:273:8: error: 'size_t' does not name a type
273 | extern size_t strcspn (const char *__s, const char *__reject)
| ^~~~~~
/usr/include/string.h:273:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/string.h:277:8: error: 'size_t' does not name a type
277 | extern size_t strspn (const char *__s, const char *__accept)
| ^~~~~~
/usr/include/string.h:277:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/string.h:369:46: error: 'size_t' has not been declared
369 | extern void *memmem (const void *__haystack, size_t __haystacklen,
| ^~~~~~
/usr/include/string.h:370:30: error: 'size_t' has not been declared
370 | const void *__needle, size_t __needlelen)
| ^~~~~~
/usr/include/string.h:376:34: error: 'size_t' has not been declared
376 | const void *__restrict __src, size_t __n)
| ^~~~~~
/usr/include/string.h:379:39: error: 'size_t' has not been declared
379 | const void *__restrict __src, size_t __n)
| ^~~~~~
/usr/include/string.h:385:8: error: 'size_t' does not name a type
385 | extern size_t strlen (const char *__s)
| ^~~~~~
/usr/include/string.h:385:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/string.h:391:8: error: 'size_t' does not name a type
391 | extern size_t strnlen (const char *__string, size_t __maxlen)
| ^~~~~~
/usr/include/string.h:391:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/string.h:421:53: error: 'size_t' has not been declared
421 | extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
| ^~~~~~
In file included from /usr/include/string.h:432,
from foo.cc:5:
/usr/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)
| ^~~~~~
/usr/include/strings.h:38:53: error: 'size_t' has not been declared
38 | extern void bcopy (const void *__src, void *__dest, size_t __n)
| ^~~~~~
/usr/include/strings.h:42:31: error: 'size_t' has not been declared
42 | extern void bzero (void *__s, size_t __n) __THROW __nonnull ((1));
| ^~~~~~
/usr/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)
| ^~~~~~
/usr/include/strings.h:134:6: error: 'size_t' has not been declared
134 | size_t __n, locale_t __loc)
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/strings_fortified.h:23:1: error: 'size_t' has not been declared
23 | __NTH (bcopy (const void *__src, void *__dest, size_t __len))
| ^~~~~
/usr/include/x86_64-linux-gnu/bits/strings_fortified.h:29:1: error: 'size_t' has not been declared
29 | __NTH (bzero (void *__dest, size_t __len))
| ^~~~~
In file included from foo.cc:5:
/usr/include/string.h:436:40: error: 'size_t' has not been declared
436 | extern void explicit_bzero (void *__s, size_t __n) __THROW __nonnull ((1));
| ^~~~~~
/usr/include/string.h:458:34: error: 'size_t' has not been declared
458 | const char *__restrict __src, size_t __n)
| ^~~~~~
/usr/include/string.h:461:39: error: 'size_t' has not been declared
461 | const char *__restrict __src, size_t __n)
| ^~~~~~
/usr/include/string.h:474:34: error: 'size_t' has not been declared
474 | extern void *memfrob (void *__s, size_t __n) __THROW __nonnull ((1));
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:31:1: error: 'size_t' has not been declared
31 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
| ^~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:38:1: error: 'size_t' has not been declared
38 | __NTH (memmove (void *__dest, const void *__src, size_t __len))
| ^~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:45:1: error: 'size_t' has not been declared
45 | __NTH (mempcpy (void *__restrict __dest, const void *__restrict __src,
| ^~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:1: error: 'size_t' has not been declared
59 | __NTH (memset (void *__dest, int __ch, size_t __len))
| ^~~~~
In file included from /usr/include/string.h:495,
from foo.cc:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:77:42: error: 'size_t' has not been declared
77 | void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen)
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:77:56: error: 'size_t' has not been declared
77 | void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen)
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:81:1: error: 'size_t' has not been declared
81 | __NTH (explicit_bzero (void *__dest, size_t __len))
| ^~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:103:1: error: 'size_t' has not been declared
103 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
| ^~~~~
In file included from /usr/include/string.h:495,
from foo.cc:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:110:62: error: 'size_t' has not been declared
110 | extern char *__stpncpy_chk (char *__dest, const char *__src, size_t __n,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:111:8: error: 'size_t' has not been declared
111 | size_t __destlen) __THROW;
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:112:14: error: 'size_t' has not been declared
112 | extern char *__REDIRECT_NTH (__stpncpy_alias, (char *__dest, const char *__src,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:116:1: error: 'size_t' has not been declared
116 | __NTH (stpncpy (char *__dest, const char *__src, size_t __n))
| ^~~~~
In file included from /usr/include/string.h:495,
from foo.cc:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h: In function 'char* stpncpy(char*, const char*, int)':
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:118:26: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
118 | if (__bos (__dest) != (size_t) -1
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:133:1: error: 'size_t' has not been declared
133 | __NTH (strncat (char *__restrict __dest, const char *__restrict __src,
| ^~~~~
In file included from /usr/include/wchar.h:42,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h:6:9: error: '__mbstate_t' does not name a type
6 | typedef __mbstate_t mbstate_t;
| ^~~~~~~~~~~
In file included from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/wchar.h:93:38: error: 'size_t' has not been declared
93 | const wchar_t *__restrict __src, size_t __n)
| ^~~~~~
/usr/include/wchar.h:102:38: error: 'size_t' has not been declared
102 | const wchar_t *__restrict __src, size_t __n)
| ^~~~~~
/usr/include/wchar.h:109:63: error: 'size_t' has not been declared
109 | extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
| ^~~~~~
/usr/include/wchar.h:118:4: error: 'size_t' has not been declared
118 | size_t __n) __THROW;
| ^~~~~~
/usr/include/wchar.h:126:6: error: 'size_t' has not been declared
126 | size_t __n, locale_t __loc) __THROW;
| ^~~~~~
/usr/include/wchar.h:135:8: error: 'size_t' does not name a type
135 | extern size_t wcsxfrm (wchar_t *__restrict __s1,
| ^~~~~~
/usr/include/wchar.h:43:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
42 | #include <bits/types/mbstate_t.h>
+++ |+#include <cstddef>
43 | #include <bits/types/__FILE.h>
/usr/include/wchar.h:150:8: error: 'size_t' does not name a type
150 | extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2,
| ^~~~~~
/usr/include/wchar.h:150:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:187:8: error: 'size_t' does not name a type
187 | extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject)
| ^~~~~~
/usr/include/wchar.h:187:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:191:8: error: 'size_t' does not name a type
191 | extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept)
| ^~~~~~
/usr/include/wchar.h:191:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:222:8: error: 'size_t' does not name a type
222 | extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__;
| ^~~~~~
/usr/include/wchar.h:222:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:240:8: error: 'size_t' does not name a type
240 | extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen)
| ^~~~~~
/usr/include/wchar.h:240:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:247:59: error: 'size_t' has not been declared
247 | extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n)
| ^~~~~~
/usr/include/wchar.h:250:10: error: 'size_t' has not been declared
250 | size_t __n)
| ^~~~~~
/usr/include/wchar.h:258:63: error: 'size_t' has not been declared
258 | extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
| ^~~~~~
/usr/include/wchar.h:263:37: error: 'size_t' has not been declared
263 | const wchar_t *__restrict __s2, size_t __n) __THROW;
| ^~~~~~
/usr/include/wchar.h:267:63: error: 'size_t' has not been declared
267 | extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n)
| ^~~~~~
/usr/include/wchar.h:271:53: error: 'size_t' has not been declared
271 | extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __THROW;
| ^~~~~~
/usr/include/wchar.h:277:38: error: 'size_t' has not been declared
277 | const wchar_t *__restrict __s2, size_t __n)
| ^~~~~~
/usr/include/wchar.h:292:27: error: 'mbstate_t' does not name a type
292 | extern int mbsinit (const mbstate_t *__ps) __THROW __attribute_pure__;
| ^~~~~~~~~
/usr/include/wchar.h:296:8: error: 'size_t' does not name a type
296 | extern size_t mbrtowc (wchar_t *__restrict __pwc,
| ^~~~~~
/usr/include/wchar.h:296:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:301:8: error: 'size_t' does not name a type
301 | extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
| ^~~~~~
/usr/include/wchar.h:301:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:305:8: error: 'size_t' does not name a type
305 | extern size_t __mbrlen (const char *__restrict __s, size_t __n,
| ^~~~~~
/usr/include/wchar.h:305:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:307:8: error: 'size_t' does not name a type
307 | extern size_t mbrlen (const char *__restrict __s, size_t __n,
| ^~~~~~
/usr/include/wchar.h:307:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:328:17: error: 'size_t' does not name a type
328 | __extern_inline size_t
| ^~~~~~
/usr/include/wchar.h:328:17: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:337:8: error: 'size_t' does not name a type
337 | extern size_t mbsrtowcs (wchar_t *__restrict __dst,
| ^~~~~~
/usr/include/wchar.h:337:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:343:8: error: 'size_t' does not name a type
343 | extern size_t wcsrtombs (char *__restrict __dst,
| ^~~~~~
/usr/include/wchar.h:343:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:351:8: error: 'size_t' does not name a type
351 | extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
| ^~~~~~
/usr/include/wchar.h:351:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:357:8: error: 'size_t' does not name a type
357 | extern size_t wcsnrtombs (char *__restrict __dst,
| ^~~~~~
/usr/include/wchar.h:357:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:371:42: error: 'size_t' has not been declared
371 | extern int wcswidth (const wchar_t *__s, size_t __n) __THROW;
| ^~~~~~
/usr/include/wchar.h:557:38: error: 'size_t' has not been declared
557 | const wchar_t *__restrict __src, size_t __n)
| ^~~~~~
/usr/include/wchar.h:567:8: error: '__FILE' does not name a type; did you mean 'EMFILE'?
567 | extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) __THROW;
| ^~~~~~
| EMFILE
/usr/include/wchar.h:573:19: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
573 | extern int fwide (__FILE *__fp, int __mode) __THROW;
| ^~~~~~
| EMFILE
/usr/include/wchar.h:573:27: error: '__fp' was not declared in this scope
573 | extern int fwide (__FILE *__fp, int __mode) __THROW;
| ^~~~
/usr/include/wchar.h:573:33: error: expected primary-expression before 'int'
573 | extern int fwide (__FILE *__fp, int __mode) __THROW;
| ^~~
/usr/include/wchar.h:573:43: error: expression list treated as compound expression in initializer [-fpermissive]
573 | extern int fwide (__FILE *__fp, int __mode) __THROW;
| ^
/usr/include/wchar.h:580:22: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
580 | extern int fwprintf (__FILE *__restrict __stream,
| ^~~~~~
| EMFILE
/usr/include/wchar.h:580:30: error: expected primary-expression before '__restrict'
580 | extern int fwprintf (__FILE *__restrict __stream,
| ^~~~~~~~~~
/usr/include/wchar.h:581:8: error: expected primary-expression before 'const'
581 | const wchar_t *__restrict __format, ...)
| ^~~~~
/usr/include/wchar.h:581:44: error: expected primary-expression before '...' token
581 | const wchar_t *__restrict __format, ...)
| ^~~
/usr/include/wchar.h:581:47: error: expression list treated as compound expression in initializer [-fpermissive]
581 | const wchar_t *__restrict __format, ...)
| ^
/usr/include/wchar.h:590:47: error: 'size_t' has not been declared
590 | extern int swprintf (wchar_t *__restrict __s, size_t __n,
| ^~~~~~
/usr/include/wchar.h:598:23: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
598 | extern int vfwprintf (__FILE *__restrict __s,
| ^~~~~~
| EMFILE
/usr/include/wchar.h:598:31: error: expected primary-expression before '__restrict'
598 | extern int vfwprintf (__FILE *__restrict __s,
| ^~~~~~~~~~
/usr/include/wchar.h:599:9: error: expected primary-expression before 'const'
599 | const wchar_t *__restrict __format,
| ^~~~~
/usr/include/wchar.h:600:9: error: '__gnuc_va_list' was not declared in this scope
600 | __gnuc_va_list __arg)
| ^~~~~~~~~~~~~~
/usr/include/wchar.h:600:29: error: expression list treated as compound expression in initializer [-fpermissive]
600 | __gnuc_va_list __arg)
| ^
/usr/include/wchar.h:607:8: error: '__gnuc_va_list' has not been declared
607 | __gnuc_va_list __arg)
| ^~~~~~~~~~~~~~
/usr/include/wchar.h:611:48: error: 'size_t' has not been declared
611 | extern int vswprintf (wchar_t *__restrict __s, size_t __n,
| ^~~~~~
/usr/include/wchar.h:613:9: error: '__gnuc_va_list' has not been declared
613 | __gnuc_va_list __arg)
| ^~~~~~~~~~~~~~
/usr/include/wchar.h:621:21: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
621 | extern int fwscanf (__FILE *__restrict __stream,
| ^~~~~~
| EMFILE
/usr/include/wchar.h:621:29: error: expected primary-expression before '__restrict'
621 | extern int fwscanf (__FILE *__restrict __stream,
| ^~~~~~~~~~
/usr/include/wchar.h:622:7: error: expected primary-expression before 'const'
622 | const wchar_t *__restrict __format, ...)
| ^~~~~
/usr/include/wchar.h:622:43: error: expected primary-expression before '...' token
622 | const wchar_t *__restrict __format, ...)
| ^~~
/usr/include/wchar.h:622:46: error: expression list treated as compound expression in initializer [-fpermissive]
622 | const wchar_t *__restrict __format, ...)
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/wchar.h:640:12: error: redefinition of 'int fwscanf'
640 | extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream,
| ^~~~~~~~~~
In file included from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/wchar.h:621:12: note: 'int fwscanf' previously defined here
621 | extern int fwscanf (__FILE *__restrict __stream,
| ^~~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/wchar.h:640:12: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
640 | extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream,
| ^~~~~~~~~~
/usr/include/wchar.h:640:12: error: expected primary-expression before '__restrict'
640 | extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream,
| ^~~~~~~~~~
/usr/include/wchar.h:640:12: error: expected primary-expression before 'const'
640 | extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream,
| ^~~~~~~~~~
/usr/include/wchar.h:640:12: error: expected primary-expression before '...' token
640 | extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream,
| ^~~~~~~~~~
In file included from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/wchar.h:671:22: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
671 | extern int vfwscanf (__FILE *__restrict __s,
| ^~~~~~
| EMFILE
/usr/include/wchar.h:671:30: error: expected primary-expression before '__restrict'
671 | extern int vfwscanf (__FILE *__restrict __s,
| ^~~~~~~~~~
/usr/include/wchar.h:672:8: error: expected primary-expression before 'const'
672 | const wchar_t *__restrict __format,
| ^~~~~
/usr/include/wchar.h:673:8: error: '__gnuc_va_list' was not declared in this scope
673 | __gnuc_va_list __arg)
| ^~~~~~~~~~~~~~
/usr/include/wchar.h:673:28: error: expression list treated as compound expression in initializer [-fpermissive]
673 | __gnuc_va_list __arg)
| ^
/usr/include/wchar.h:680:7: error: '__gnuc_va_list' has not been declared
680 | __gnuc_va_list __arg)
| ^~~~~~~~~~~~~~
/usr/include/wchar.h:685:8: error: '__gnuc_va_list' has not been declared
685 | __gnuc_va_list __arg)
| ^~~~~~~~~~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/wchar.h:693:12: error: redefinition of 'int vfwscanf'
693 | extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s,
| ^~~~~~~~~~
In file included from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/wchar.h:671:12: note: 'int vfwscanf' previously defined here
671 | extern int vfwscanf (__FILE *__restrict __s,
| ^~~~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/wchar.h:693:12: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
693 | extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s,
| ^~~~~~~~~~
/usr/include/wchar.h:693:12: error: expected primary-expression before '__restrict'
693 | extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s,
| ^~~~~~~~~~
/usr/include/wchar.h:693:12: error: expected primary-expression before 'const'
693 | extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s,
| ^~~~~~~~~~
/usr/include/wchar.h:693:12: error: '__gnuc_va_list' was not declared in this scope
693 | extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s,
| ^~~~~~~~~~
/usr/include/wchar.h:697:12: error: '__gnuc_va_list' has not been declared
697 | extern int __REDIRECT (vwscanf, (const wchar_t *__restrict __format,
| ^~~~~~~~~~
/usr/include/wchar.h:700:12: error: '__gnuc_va_list' has not been declared
700 | extern int __REDIRECT_NTH (vswscanf, (const wchar_t *__restrict __s,
| ^~~~~~~~~~~~~~
In file included from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/wchar.h:726:23: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
726 | extern wint_t fgetwc (__FILE *__stream);
| ^~~~~~
| EMFILE
/usr/include/wchar.h:726:31: error: '__stream' was not declared in this scope; did you mean '__drem'?
726 | extern wint_t fgetwc (__FILE *__stream);
| ^~~~~~~~
| __drem
/usr/include/wchar.h:727:22: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
727 | extern wint_t getwc (__FILE *__stream);
| ^~~~~~
| EMFILE
/usr/include/wchar.h:727:30: error: '__stream' was not declared in this scope; did you mean '__drem'?
727 | extern wint_t getwc (__FILE *__stream);
| ^~~~~~~~
| __drem
/usr/include/wchar.h:740:37: error: '__FILE' has not been declared
740 | extern wint_t fputwc (wchar_t __wc, __FILE *__stream);
| ^~~~~~
/usr/include/wchar.h:741:36: error: '__FILE' has not been declared
741 | extern wint_t putwc (wchar_t __wc, __FILE *__stream);
| ^~~~~~
/usr/include/wchar.h:756:4: error: '__FILE' has not been declared
756 | __FILE *__restrict __stream);
| ^~~~~~
/usr/include/wchar.h:763:6: error: '__FILE' has not been declared
763 | __FILE *__restrict __stream);
| ^~~~~~
/usr/include/wchar.h:770:37: error: '__FILE' has not been declared
770 | extern wint_t ungetwc (wint_t __wc, __FILE *__stream);
| ^~~~~~
/usr/include/wchar.h:781:31: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
781 | extern wint_t getwc_unlocked (__FILE *__stream);
| ^~~~~~
| EMFILE
/usr/include/wchar.h:781:39: error: '__stream' was not declared in this scope; did you mean '__drem'?
781 | extern wint_t getwc_unlocked (__FILE *__stream);
| ^~~~~~~~
| __drem
/usr/include/wchar.h:790:32: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
790 | extern wint_t fgetwc_unlocked (__FILE *__stream);
| ^~~~~~
| EMFILE
/usr/include/wchar.h:790:40: error: '__stream' was not declared in this scope; did you mean '__drem'?
790 | extern wint_t fgetwc_unlocked (__FILE *__stream);
| ^~~~~~~~
| __drem
/usr/include/wchar.h:798:46: error: '__FILE' has not been declared
798 | extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream);
| ^~~~~~
/usr/include/wchar.h:807:45: error: '__FILE' has not been declared
807 | extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream);
| ^~~~~~
/usr/include/wchar.h:818:6: error: '__FILE' has not been declared
818 | __FILE *__restrict __stream);
| ^~~~~~
/usr/include/wchar.h:827:8: error: '__FILE' has not been declared
827 | __FILE *__restrict __stream);
| ^~~~~~
/usr/include/wchar.h:834:8: error: 'size_t' does not name a type
834 | extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
| ^~~~~~
/usr/include/wchar.h:834:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/wchar.h:841:8: error: 'size_t' does not name a type
841 | extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize,
| ^~~~~~
/usr/include/wchar.h:841:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:25:43: error: 'size_t' has not been declared
25 | const wchar_t *__restrict __s2, size_t __n,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:26:11: error: 'size_t' has not been declared
26 | size_t __ns1) __THROW;
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:27:17: error: 'size_t' has not been declared
27 | extern wchar_t *__REDIRECT_NTH (__wmemcpy_alias,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:31:17: error: 'size_t' has not been declared
31 | extern wchar_t *__REDIRECT_NTH (__wmemcpy_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:31:17: error: 'size_t' has not been declared
31 | extern wchar_t *__REDIRECT_NTH (__wmemcpy_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:39:1: error: 'size_t' has not been declared
39 | __NTH (wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2,
| ^~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'wchar_t* wmemcpy(wchar_t*, const wchar_t*, int)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:42:25: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
42 | if (__bos0 (__s1) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:57:5: error: 'size_t' has not been declared
57 | size_t __n, size_t __ns1) __THROW;
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:57:17: error: 'size_t' has not been declared
57 | size_t __n, size_t __ns1) __THROW;
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:58:17: error: 'size_t' has not been declared
58 | extern wchar_t *__REDIRECT_NTH (__wmemmove_alias, (wchar_t *__s1,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:61:17: error: 'size_t' has not been declared
61 | extern wchar_t *__REDIRECT_NTH (__wmemmove_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:61:17: error: 'size_t' has not been declared
61 | extern wchar_t *__REDIRECT_NTH (__wmemmove_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:68:1: error: 'size_t' has not been declared
68 | __NTH (wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n))
| ^~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'wchar_t* wmemmove(wchar_t*, const wchar_t*, int)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:70:25: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
70 | if (__bos0 (__s1) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:86:37: error: 'size_t' has not been declared
86 | const wchar_t *__restrict __s2, size_t __n,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:87:5: error: 'size_t' has not been declared
87 | size_t __ns1) __THROW;
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:88:17: error: 'size_t' has not been declared
88 | extern wchar_t *__REDIRECT_NTH (__wmempcpy_alias,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:92:17: error: 'size_t' has not been declared
92 | extern wchar_t *__REDIRECT_NTH (__wmempcpy_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:92:17: error: 'size_t' has not been declared
92 | extern wchar_t *__REDIRECT_NTH (__wmempcpy_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:100:1: error: 'size_t' has not been declared
100 | __NTH (wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2,
| ^~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'wchar_t* wmempcpy(wchar_t*, const wchar_t*, int)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:103:25: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
103 | if (__bos0 (__s1) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:118:59: error: 'size_t' has not been declared
118 | extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:119:11: error: 'size_t' has not been declared
119 | size_t __ns) __THROW;
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:120:17: error: 'size_t' has not been declared
120 | extern wchar_t *__REDIRECT_NTH (__wmemset_alias, (wchar_t *__s, wchar_t __c,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:122:17: error: 'size_t' has not been declared
122 | extern wchar_t *__REDIRECT_NTH (__wmemset_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:122:17: error: 'size_t' has not been declared
122 | extern wchar_t *__REDIRECT_NTH (__wmemset_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:129:1: error: 'size_t' has not been declared
129 | __NTH (wmemset (wchar_t *__s, wchar_t __c, size_t __n))
| ^~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'wchar_t* wmemset(wchar_t*, wchar_t, int)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:131:24: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
131 | if (__bos0 (__s) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:146:10: error: 'size_t' has not been declared
146 | size_t __n) __THROW;
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'wchar_t* wcscpy(wchar_t*, const wchar_t*)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:154:26: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
154 | if (__bos (__dest) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:162:10: error: 'size_t' has not been declared
162 | size_t __destlen) __THROW;
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'wchar_t* wcpcpy(wchar_t*, const wchar_t*)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:170:26: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
170 | if (__bos (__dest) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:177:44: error: 'size_t' has not been declared
177 | const wchar_t *__restrict __src, size_t __n,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:178:11: error: 'size_t' has not been declared
178 | size_t __destlen) __THROW;
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:179:17: error: 'size_t' has not been declared
179 | extern wchar_t *__REDIRECT_NTH (__wcsncpy_alias,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:183:17: error: 'size_t' has not been declared
183 | extern wchar_t *__REDIRECT_NTH (__wcsncpy_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:183:17: error: 'size_t' has not been declared
183 | extern wchar_t *__REDIRECT_NTH (__wcsncpy_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:191:1: error: 'size_t' has not been declared
191 | __NTH (wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src,
| ^~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'wchar_t* wcsncpy(wchar_t*, const wchar_t*, int)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:194:26: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
194 | if (__bos (__dest) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:208:44: error: 'size_t' has not been declared
208 | const wchar_t *__restrict __src, size_t __n,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:209:11: error: 'size_t' has not been declared
209 | size_t __destlen) __THROW;
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:210:17: error: 'size_t' has not been declared
210 | extern wchar_t *__REDIRECT_NTH (__wcpncpy_alias,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:214:17: error: 'size_t' has not been declared
214 | extern wchar_t *__REDIRECT_NTH (__wcpncpy_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:214:17: error: 'size_t' has not been declared
214 | extern wchar_t *__REDIRECT_NTH (__wcpncpy_chk_warn,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:222:1: error: 'size_t' has not been declared
222 | __NTH (wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src,
| ^~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'wchar_t* wcpncpy(wchar_t*, const wchar_t*, int)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:225:26: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
225 | if (__bos (__dest) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:240:10: error: 'size_t' has not been declared
240 | size_t __destlen) __THROW;
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'wchar_t* wcscat(wchar_t*, const wchar_t*)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:248:26: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
248 | if (__bos (__dest) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:256:11: error: 'size_t' has not been declared
256 | size_t __n, size_t __destlen) __THROW;
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:256:23: error: 'size_t' has not been declared
256 | size_t __n, size_t __destlen) __THROW;
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:257:17: error: 'size_t' has not been declared
257 | extern wchar_t *__REDIRECT_NTH (__wcsncat_alias,
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:263:1: error: 'size_t' has not been declared
263 | __NTH (wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src,
| ^~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'wchar_t* wcsncat(wchar_t*, const wchar_t*, int)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:266:26: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
266 | if (__bos (__dest) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:273:53: error: 'size_t' has not been declared
273 | extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:274:19: error: 'size_t' has not been declared
274 | int __flag, size_t __s_len,
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:278:12: error: 'size_t' has not been declared
278 | extern int __REDIRECT_NTH_LDBL (__swprintf_alias,
| ^~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:285:1: error: 'size_t' has not been declared
285 | __NTH (swprintf (wchar_t *__restrict __s, size_t __n,
| ^~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'int swprintf(wchar_t*, int, const wchar_t*, ...)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:288:23: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
288 | if (__bos (__s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:303:54: error: 'size_t' has not been declared
303 | extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:304:20: error: 'size_t' has not been declared
304 | int __flag, size_t __s_len,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:306:8: error: '__gnuc_va_list' has not been declared
306 | __gnuc_va_list __arg)
| ^~~~~~~~~~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:309:12: error: 'size_t' has not been declared
309 | extern int __REDIRECT_NTH_LDBL (__vswprintf_alias,
| ^~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:309:12: error: '__gnuc_va_list' has not been declared
309 | extern int __REDIRECT_NTH_LDBL (__vswprintf_alias,
| ^~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:315:1: error: 'size_t' has not been declared
315 | __NTH (vswprintf (wchar_t *__restrict __s, size_t __n,
| ^~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:315:1: error: '__gnuc_va_list' has not been declared
315 | __NTH (vswprintf (wchar_t *__restrict __s, size_t __n,
| ^~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'int vswprintf(wchar_t*, int, const wchar_t*, int)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:318:23: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
318 | if (__bos (__s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:327:28: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
327 | extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag,
| ^~~~~~
| EMFILE
/usr/include/x86_64-linux-gnu/bits/wchar2.h:327:36: error: expected primary-expression before '__restrict'
327 | extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:327:57: error: expected primary-expression before 'int'
327 | extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag,
| ^~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:328:7: error: expected primary-expression before 'const'
328 | const wchar_t *__restrict __format, ...);
| ^~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:328:43: error: expected primary-expression before '...' token
328 | const wchar_t *__restrict __format, ...);
| ^~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:328:46: error: expression list treated as compound expression in initializer [-fpermissive]
328 | const wchar_t *__restrict __format, ...);
| ^
/usr/include/x86_64-linux-gnu/bits/wchar2.h:331:29: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
331 | extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag,
| ^~~~~~
| EMFILE
/usr/include/x86_64-linux-gnu/bits/wchar2.h:331:37: error: expected primary-expression before '__restrict'
331 | extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:331:58: error: expected primary-expression before 'int'
331 | extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag,
| ^~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:332:8: error: expected primary-expression before 'const'
332 | const wchar_t *__restrict __format,
| ^~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:333:8: error: '__gnuc_va_list' was not declared in this scope
333 | __gnuc_va_list __ap);
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:333:27: error: expression list treated as compound expression in initializer [-fpermissive]
333 | __gnuc_va_list __ap);
| ^
/usr/include/x86_64-linux-gnu/bits/wchar2.h:335:7: error: '__gnuc_va_list' has not been declared
335 | __gnuc_va_list __ap);
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:345:1: error: redefinition of 'int fwprintf'
345 | fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...)
| ^~~~~~~~
In file included from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/wchar.h:580:12: note: 'int fwprintf' previously defined here
580 | extern int fwprintf (__FILE *__restrict __stream,
| ^~~~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:345:11: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
345 | fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...)
| ^~~~~~
| EMFILE
/usr/include/x86_64-linux-gnu/bits/wchar2.h:345:19: error: expected primary-expression before '__restrict'
345 | fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...)
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:345:40: error: expected primary-expression before 'const'
345 | fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...)
| ^~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:345:73: error: expected primary-expression before '...' token
345 | fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...)
| ^~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:358:44: error: '__gnuc_va_list' has not been declared
358 | vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap)
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:364:1: error: redefinition of 'int vfwprintf'
364 | vfwprintf (__FILE *__restrict __stream,
| ^~~~~~~~~
In file included from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/wchar.h:598:12: note: 'int vfwprintf' previously defined here
598 | extern int vfwprintf (__FILE *__restrict __s,
| ^~~~~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:364:12: error: '__FILE' was not declared in this scope; did you mean 'EMFILE'?
364 | vfwprintf (__FILE *__restrict __stream,
| ^~~~~~
| EMFILE
/usr/include/x86_64-linux-gnu/bits/wchar2.h:364:20: error: expected primary-expression before '__restrict'
364 | vfwprintf (__FILE *__restrict __stream,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:365:5: error: expected primary-expression before 'const'
365 | const wchar_t *__restrict __fmt, __gnuc_va_list __ap)
| ^~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:365:38: error: '__gnuc_va_list' was not declared in this scope
365 | const wchar_t *__restrict __fmt, __gnuc_va_list __ap)
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:372:56: error: 'size_t' has not been declared
372 | extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:373:10: error: '__FILE' has not been declared
373 | __FILE *__restrict __stream) __wur;
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:374:17: error: '__FILE' has not been declared
374 | extern wchar_t *__REDIRECT (__fgetws_alias,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:377:17: error: 'size_t' has not been declared
377 | extern wchar_t *__REDIRECT (__fgetws_chk_warn,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:377:17: error: '__FILE' has not been declared
377 | extern wchar_t *__REDIRECT (__fgetws_chk_warn,
| ^~~~~~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:384:43: error: '__FILE' has not been declared
384 | fgetws (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream)
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'wchar_t* fgetws(wchar_t*, int, int*)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:386:23: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
386 | if (__bos (__s) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:392:19: error: expected ')' before '__n'
392 | if ((size_t) __n > __bos (__s) / sizeof (wchar_t))
| ~ ^~~~
| )
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:400:65: error: 'size_t' has not been declared
400 | extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:401:21: error: '__FILE' has not been declared
401 | int __n, __FILE *__restrict __stream)
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:403:17: error: '__FILE' has not been declared
403 | extern wchar_t *__REDIRECT (__fgetws_unlocked_alias,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:407:17: error: 'size_t' has not been declared
407 | extern wchar_t *__REDIRECT (__fgetws_unlocked_chk_warn,
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:407:17: error: '__FILE' has not been declared
407 | extern wchar_t *__REDIRECT (__fgetws_unlocked_chk_warn,
| ^~~~~~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:415:52: error: '__FILE' has not been declared
415 | fgetws_unlocked (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream)
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function 'wchar_t* fgetws_unlocked(wchar_t*, int, int*)':
/usr/include/x86_64-linux-gnu/bits/wchar2.h:417:23: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
417 | if (__bos (__s) != (size_t) -1)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/wchar.h:849,
from /usr/include/c++/9/cwchar:44,
from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:423:19: error: expected ')' before '__n'
423 | if ((size_t) __n > __bos (__s) / sizeof (wchar_t))
| ~ ^~~~
| )
/usr/include/x86_64-linux-gnu/bits/wchar2.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:432:8: error: 'size_t' does not name a type
432 | extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:1:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | /* Checking macros for wchar functions.
/usr/include/x86_64-linux-gnu/bits/wchar2.h:435:8: error: 'size_t' does not name a type
435 | extern size_t __REDIRECT_NTH (__wcrtomb_alias,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:435:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:439:26: error: 'size_t' does not name a type
439 | __fortify_function __wur size_t
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:439:26: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:456:8: error: 'size_t' does not name a type
456 | extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:456:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:460:8: error: 'size_t' does not name a type
460 | extern size_t __REDIRECT_NTH (__mbsrtowcs_alias,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:460:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:465:8: error: 'size_t' does not name a type
465 | extern size_t __REDIRECT_NTH (__mbsrtowcs_chk_warn,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:465:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:473:20: error: 'size_t' does not name a type
473 | __fortify_function size_t
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:473:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:491:8: error: 'size_t' does not name a type
491 | extern size_t __wcsrtombs_chk (char *__restrict __dst,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:491:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:495:8: error: 'size_t' does not name a type
495 | extern size_t __REDIRECT_NTH (__wcsrtombs_alias,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:495:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:500:8: error: 'size_t' does not name a type
500 | extern size_t __REDIRECT_NTH (__wcsrtombs_chk_warn,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:500:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:507:20: error: 'size_t' does not name a type
507 | __fortify_function size_t
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:507:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:524:8: error: 'size_t' does not name a type
524 | extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:524:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:528:8: error: 'size_t' does not name a type
528 | extern size_t __REDIRECT_NTH (__mbsnrtowcs_alias,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:528:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:533:8: error: 'size_t' does not name a type
533 | extern size_t __REDIRECT_NTH (__mbsnrtowcs_chk_warn,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:533:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:541:20: error: 'size_t' does not name a type
541 | __fortify_function size_t
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:541:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:559:8: error: 'size_t' does not name a type
559 | extern size_t __wcsnrtombs_chk (char *__restrict __dst,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:559:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:564:8: error: 'size_t' does not name a type
564 | extern size_t __REDIRECT_NTH (__wcsnrtombs_alias,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:564:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:569:8: error: 'size_t' does not name a type
569 | extern size_t __REDIRECT_NTH (__wcsnrtombs_chk_warn,
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:569:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/x86_64-linux-gnu/bits/wchar2.h:577:20: error: 'size_t' does not name a type
577 | __fortify_function size_t
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:577:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/9/bits/postypes.h:40,
from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/c++/9/cwchar:64:11: error: '::mbstate_t' has not been declared
64 | using ::mbstate_t;
| ^~~~~~~~~
/usr/include/c++/9/cwchar:153:11: error: '::mbrlen' has not been declared
153 | using ::mbrlen;
| ^~~~~~
/usr/include/c++/9/cwchar:154:11: error: '::mbrtowc' has not been declared
154 | using ::mbrtowc;
| ^~~~~~~
/usr/include/c++/9/cwchar:156:11: error: '::mbsrtowcs' has not been declared
156 | using ::mbsrtowcs;
| ^~~~~~~~~
/usr/include/c++/9/cwchar:178:11: error: '::wcrtomb' has not been declared
178 | using ::wcrtomb;
| ^~~~~~~
/usr/include/c++/9/cwchar:183:11: error: '::wcscspn' has not been declared
183 | using ::wcscspn;
| ^~~~~~~
/usr/include/c++/9/cwchar:184:11: error: '::wcsftime' has not been declared
184 | using ::wcsftime;
| ^~~~~~~~
/usr/include/c++/9/cwchar:185:11: error: '::wcslen' has not been declared
185 | using ::wcslen;
| ^~~~~~
/usr/include/c++/9/cwchar:189:11: error: '::wcsrtombs' has not been declared
189 | using ::wcsrtombs;
| ^~~~~~~~~
/usr/include/c++/9/cwchar:190:11: error: '::wcsspn' has not been declared
190 | using ::wcsspn;
| ^~~~~~
/usr/include/c++/9/cwchar:198:11: error: '::wcsxfrm' has not been declared
198 | using ::wcsxfrm;
| ^~~~~~~
In file included from /usr/include/c++/9/bits/char_traits.h:40,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/c++/9/bits/postypes.h:234:16: error: 'mbstate_t' was not declared in this scope
234 | typedef fpos<mbstate_t> streampos;
| ^~~~~~~~~
/usr/include/c++/9/bits/postypes.h:234:25: error: template argument 1 is invalid
234 | typedef fpos<mbstate_t> streampos;
| ^
/usr/include/c++/9/bits/postypes.h:236:16: error: 'mbstate_t' was not declared in this scope
236 | typedef fpos<mbstate_t> wstreampos;
| ^~~~~~~~~
/usr/include/c++/9/bits/postypes.h:236:25: error: template argument 1 is invalid
236 | typedef fpos<mbstate_t> wstreampos;
| ^
/usr/include/c++/9/bits/postypes.h:245:16: error: 'mbstate_t' was not declared in this scope
245 | typedef fpos<mbstate_t> u16streampos;
| ^~~~~~~~~
/usr/include/c++/9/bits/postypes.h:245:25: error: template argument 1 is invalid
245 | typedef fpos<mbstate_t> u16streampos;
| ^
/usr/include/c++/9/bits/postypes.h:247:16: error: 'mbstate_t' was not declared in this scope
247 | typedef fpos<mbstate_t> u32streampos;
| ^~~~~~~~~
/usr/include/c++/9/bits/postypes.h:247:25: error: template argument 1 is invalid
247 | typedef fpos<mbstate_t> u32streampos;
| ^
In file included from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/c++/9/bits/char_traits.h:67:20: error: 'mbstate_t' in namespace 'std' does not name a type
67 | typedef std::mbstate_t state_type;
| ^~~~~~~~~
/usr/include/c++/9/bits/char_traits.h:296:15: error: 'mbstate_t' does not name a type
296 | typedef mbstate_t state_type;
| ^~~~~~~~~
/usr/include/c++/9/bits/char_traits.h:416:15: error: 'mbstate_t' does not name a type
416 | typedef mbstate_t state_type;
| ^~~~~~~~~
/usr/include/c++/9/bits/char_traits.h: In static member function 'static std::size_t std::char_traits<wchar_t>::length(const char_type*)':
/usr/include/c++/9/bits/char_traits.h:451:9: error: 'wcslen' was not declared in this scope
451 | return wcslen(__s);
| ^~~~~~
In file included from /usr/include/stdint.h:37,
from /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h:9,
from /usr/include/c++/9/cstdint:41,
from /usr/include/c++/9/bits/char_traits.h:628,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: At global scope:
/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h:24:9: error: '__uint8_t' does not name a type; did you mean '__uint128_t'?
24 | typedef __uint8_t uint8_t;
| ^~~~~~~~~
| __uint128_t
/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h:25:9: error: '__uint16_t' does not name a type; did you mean '__uint128_t'?
25 | typedef __uint16_t uint16_t;
| ^~~~~~~~~~
| __uint128_t
/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h:26:9: error: '__uint32_t' does not name a type; did you mean '__uint128_t'?
26 | typedef __uint32_t uint32_t;
| ^~~~~~~~~~
| __uint128_t
/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h:27:9: error: '__uint64_t' does not name a type; did you mean '__uint128_t'?
27 | typedef __uint64_t uint64_t;
| ^~~~~~~~~~
| __uint128_t
In file included from /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h:9,
from /usr/include/c++/9/cstdint:41,
from /usr/include/c++/9/bits/char_traits.h:628,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/stdint.h:43:9: error: '__int_least8_t' does not name a type
43 | typedef __int_least8_t int_least8_t;
| ^~~~~~~~~~~~~~
/usr/include/stdint.h:44:9: error: '__int_least16_t' does not name a type
44 | typedef __int_least16_t int_least16_t;
| ^~~~~~~~~~~~~~~
/usr/include/stdint.h:45:9: error: '__int_least32_t' does not name a type
45 | typedef __int_least32_t int_least32_t;
| ^~~~~~~~~~~~~~~
/usr/include/stdint.h:46:9: error: '__int_least64_t' does not name a type
46 | typedef __int_least64_t int_least64_t;
| ^~~~~~~~~~~~~~~
/usr/include/stdint.h:49:9: error: '__uint_least8_t' does not name a type
49 | typedef __uint_least8_t uint_least8_t;
| ^~~~~~~~~~~~~~~
/usr/include/stdint.h:50:9: error: '__uint_least16_t' does not name a type
50 | typedef __uint_least16_t uint_least16_t;
| ^~~~~~~~~~~~~~~~
/usr/include/stdint.h:51:9: error: '__uint_least32_t' does not name a type
51 | typedef __uint_least32_t uint_least32_t;
| ^~~~~~~~~~~~~~~~
/usr/include/stdint.h:52:9: error: '__uint_least64_t' does not name a type
52 | typedef __uint_least64_t uint_least64_t;
| ^~~~~~~~~~~~~~~~
/usr/include/stdint.h:101:9: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
101 | typedef __intmax_t intmax_t;
| ^~~~~~~~~~
| __int128_t
/usr/include/stdint.h:102:9: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
102 | typedef __uintmax_t uintmax_t;
| ^~~~~~~~~~~
| __uint128_t
In file included from /usr/include/c++/9/bits/char_traits.h:628,
from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/c++/9/cstdint:47:11: error: '::int8_t' has not been declared
47 | using ::int8_t;
| ^~~~~~
/usr/include/c++/9/cstdint:48:11: error: '::int16_t' has not been declared
48 | using ::int16_t;
| ^~~~~~~
/usr/include/c++/9/cstdint:49:11: error: '::int32_t' has not been declared
49 | using ::int32_t;
| ^~~~~~~
/usr/include/c++/9/cstdint:50:11: error: '::int64_t' has not been declared
50 | using ::int64_t;
| ^~~~~~~
/usr/include/c++/9/cstdint:57:11: error: '::int_least8_t' has not been declared
57 | using ::int_least8_t;
| ^~~~~~~~~~~~
/usr/include/c++/9/cstdint:58:11: error: '::int_least16_t' has not been declared
58 | using ::int_least16_t;
| ^~~~~~~~~~~~~
/usr/include/c++/9/cstdint:59:11: error: '::int_least32_t' has not been declared
59 | using ::int_least32_t;
| ^~~~~~~~~~~~~
/usr/include/c++/9/cstdint:60:11: error: '::int_least64_t' has not been declared
60 | using ::int_least64_t;
| ^~~~~~~~~~~~~
/usr/include/c++/9/cstdint:62:11: error: '::intmax_t' has not been declared
62 | using ::intmax_t;
| ^~~~~~~~
/usr/include/c++/9/cstdint:65:11: error: '::uint8_t' has not been declared
65 | using ::uint8_t;
| ^~~~~~~
/usr/include/c++/9/cstdint:66:11: error: '::uint16_t' has not been declared
66 | using ::uint16_t;
| ^~~~~~~~
/usr/include/c++/9/cstdint:67:11: error: '::uint32_t' has not been declared
67 | using ::uint32_t;
| ^~~~~~~~
/usr/include/c++/9/cstdint:68:11: error: '::uint64_t' has not been declared
68 | using ::uint64_t;
| ^~~~~~~~
/usr/include/c++/9/cstdint:75:11: error: '::uint_least8_t' has not been declared
75 | using ::uint_least8_t;
| ^~~~~~~~~~~~~
/usr/include/c++/9/cstdint:76:11: error: '::uint_least16_t' has not been declared
76 | using ::uint_least16_t;
| ^~~~~~~~~~~~~~
/usr/include/c++/9/cstdint:77:11: error: '::uint_least32_t' has not been declared
77 | using ::uint_least32_t;
| ^~~~~~~~~~~~~~
/usr/include/c++/9/cstdint:78:11: error: '::uint_least64_t' has not been declared
78 | using ::uint_least64_t;
| ^~~~~~~~~~~~~~
/usr/include/c++/9/cstdint:80:11: error: '::uintmax_t' has not been declared
80 | using ::uintmax_t;
| ^~~~~~~~~
In file included from /usr/include/c++/9/string:40,
from foo.cc:6:
/usr/include/c++/9/bits/char_traits.h:639:15: error: 'uint_least16_t' does not name a type; did you mean 'uint_fast16_t'?
639 | typedef uint_least16_t int_type;
| ^~~~~~~~~~~~~~
| uint_fast16_t
/usr/include/c++/9/bits/char_traits.h:647:15: error: 'mbstate_t' does not name a type
647 | typedef mbstate_t state_type;
| ^~~~~~~~~
/usr/include/c++/9/bits/char_traits.h:717:26: error: 'int_type' does not name a type
717 | to_char_type(const int_type& __c) noexcept
| ^~~~~~~~
/usr/include/c++/9/bits/char_traits.h:720:24: error: 'int_type' does not name a type
720 | static constexpr int_type
| ^~~~~~~~
/usr/include/c++/9/bits/char_traits.h:725:25: error: 'int_type' does not name a type
725 | eq_int_type(const int_type& __c1, const int_type& __c2) noexcept
| ^~~~~~~~
/usr/include/c++/9/bits/char_traits.h:725:47: error: 'int_type' does not name a type
725 | eq_int_type(const int_type& __c1, const int_type& __c2) noexcept
| ^~~~~~~~
/usr/include/c++/9/bits/char_traits.h:728:24: error: 'int_type' does not name a type
728 | static constexpr int_type
| ^~~~~~~~
/usr/include/c++/9/bits/char_traits.h:732:24: error: 'int_type' does not name a type
732 | static constexpr int_type
| ^~~~~~~~
/usr/include/c++/9/bits/char_traits.h:742:15: error: 'uint_least32_t' does not name a type; did you mean 'uint_fast32_t'?
742 | typedef uint_least32_t int_type;
| ^~~~~~~~~~~~~~
| uint_fast32_t
/usr/include/c++/9/bits/char_traits.h:750:15: error: 'mbstate_t' does not name a type
750 | typedef mbstate_t state_type;
| ^~~~~~~~~
/usr/include/c++/9/bits/char_traits.h:820:26: error: 'int_type' does not name a type
820 | to_char_type(const int_type& __c) noexcept
| ^~~~~~~~
/usr/include/c++/9/bits/char_traits.h:823:24: error: 'int_type' does not name a type
823 | static constexpr int_type
| ^~~~~~~~
/usr/include/c++/9/bits/char_traits.h:828:25: error: 'int_type' does not name a type
828 | eq_int_type(const int_type& __c1, const int_type& __c2) noexcept
| ^~~~~~~~
/usr/include/c++/9/bits/char_traits.h:828:47: error: 'int_type' does not name a type
828 | eq_int_type(const int_type& __c1, const int_type& __c2) noexcept
| ^~~~~~~~
/usr/include/c++/9/bits/char_traits.h:831:24: error: 'int_type' does not name a type
831 | static constexpr int_type
| ^~~~~~~~
/usr/include/c++/9/bits/char_traits.h:835:24: error: 'int_type' does not name a type
835 | static constexpr int_type
| ^~~~~~~~
In file included from /usr/include/c++/9/bits/exception_ptr.h:38,
from /usr/include/c++/9/exception:143,
from /usr/include/c++/9/new:40,
from /usr/include/c++/9/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h:33,
from /usr/include/c++/9/bits/allocator.h:46,
from /usr/include/c++/9/string:41,
from foo.cc:6:
/usr/include/c++/9/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
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t' declared here
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/9/exception:143,
from /usr/include/c++/9/new:40,
from /usr/include/c++/9/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h:33,
from /usr/include/c++/9/bits/allocator.h:46,
from /usr/include/c++/9/string:41,
from foo.cc:6:
/usr/include/c++/9/bits/exception_ptr.h: In function 'std::__exception_ptr::exception_ptr std::make_exception_ptr(_Ex)':
/usr/include/c++/9/bits/exception_ptr.h:182:67: error: '__cxxabiv1::__cxa_allocate_exception' cannot be used as a function
182 | void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex));
| ^
In file included from /usr/include/c++/9/cctype:42,
from /usr/include/c++/9/bits/localefwd.h:42,
from /usr/include/c++/9/string:43,
from foo.cc:6:
/usr/include/ctype.h: At global scope:
/usr/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
/usr/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
In file included from /usr/include/c++/9/string:43,
from foo.cc:6:
/usr/include/c++/9/bits/localefwd.h:139:40: error: 'mbstate_t' was not declared in this scope
139 | template<> class codecvt<char, char, mbstate_t>;
| ^~~~~~~~~
/usr/include/c++/9/bits/localefwd.h:139:49: error: template argument 3 is invalid
139 | template<> class codecvt<char, char, mbstate_t>;
| ^
/usr/include/c++/9/bits/localefwd.h:141:43: error: 'mbstate_t' was not declared in this scope
141 | template<> class codecvt<wchar_t, char, mbstate_t>;
| ^~~~~~~~~
/usr/include/c++/9/bits/localefwd.h:141:52: error: template argument 3 is invalid
141 | template<> class codecvt<wchar_t, char, mbstate_t>;
| ^
/usr/include/c++/9/bits/localefwd.h:144:44: error: 'mbstate_t' was not declared in this scope
144 | template<> class codecvt<char16_t, char, mbstate_t>;
| ^~~~~~~~~
/usr/include/c++/9/bits/localefwd.h:144:53: error: template argument 3 is invalid
144 | template<> class codecvt<char16_t, char, mbstate_t>;
| ^
/usr/include/c++/9/bits/localefwd.h:145:44: error: 'mbstate_t' was not declared in this scope
145 | template<> class codecvt<char32_t, char, mbstate_t>;
| ^~~~~~~~~
/usr/include/c++/9/bits/localefwd.h:145:53: error: template argument 3 is invalid
145 | template<> class codecvt<char32_t, char, mbstate_t>;
| ^
In file included from /usr/include/sched.h:44,
from /usr/include/pthread.h:22,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h:148,
from /usr/include/c++/9/ext/atomicity.h:35,
from /usr/include/c++/9/bits/basic_string.h:39,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/cpu-set.h:117:30: error: 'size_t' was not declared in this scope
117 | extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/cpu-set.h:117:30: note: suggested alternatives:
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t'
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t'
In file included from /usr/include/sched.h:44,
from /usr/include/pthread.h:22,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h:148,
from /usr/include/c++/9/ext/atomicity.h:35,
from /usr/include/c++/9/bits/basic_string.h:39,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/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)
| ^~~~~
/usr/include/x86_64-linux-gnu/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)
| ^
/usr/include/x86_64-linux-gnu/bits/cpu-set.h:119:37: error: 'size_t' was not declared in this scope
119 | extern cpu_set_t *__sched_cpualloc (size_t __count) __THROW __wur;
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/cpu-set.h:119:37: note: suggested alternatives:
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t'
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t'
In file included from /usr/include/pthread.h:22,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h:148,
from /usr/include/c++/9/ext/atomicity.h:35,
from /usr/include/c++/9/bits/basic_string.h:39,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/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)
| ^~~~~~~
/usr/include/sched.h:54:43: error: expected primary-expression before 'const'
54 | extern int sched_setparam (__pid_t __pid, const struct sched_param *__param)
| ^~~~~
/usr/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)
| ^
/usr/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;
| ^~~~~~~
/usr/include/sched.h:58:43: error: expected primary-expression before 'struct'
58 | extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW;
| ^~~~~~
/usr/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;
| ^
/usr/include/sched.h:61:32: error: '__pid_t' was not declared in this scope
61 | extern int sched_setscheduler (__pid_t __pid, int __policy,
| ^~~~~~~
/usr/include/sched.h:61:47: error: expected primary-expression before 'int'
61 | extern int sched_setscheduler (__pid_t __pid, int __policy,
| ^~~
/usr/include/sched.h:62:11: error: expected primary-expression before 'const'
62 | const struct sched_param *__param) __THROW;
| ^~~~~
/usr/include/sched.h:62:44: error: expression list treated as compound expression in initializer [-fpermissive]
62 | const struct sched_param *__param) __THROW;
| ^
/usr/include/sched.h:65:32: error: '__pid_t' was not declared in this scope
65 | extern int sched_getscheduler (__pid_t __pid) __THROW;
| ^~~~~~~
/usr/include/sched.h:77:35: error: '__pid_t' was not declared in this scope
77 | extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
| ^~~~~~~
/usr/include/sched.h:77:50: error: expected primary-expression before 'struct'
77 | extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
| ^~~~~~
/usr/include/sched.h:77:70: error: expression list treated as compound expression in initializer [-fpermissive]
77 | extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
| ^
/usr/include/sched.h:121:31: error: '__pid_t' was not declared in this scope
121 | extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
| ^~~~~~~
/usr/include/sched.h:121:46: error: 'size_t' was not declared in this scope
121 | extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
| ^~~~~~
/usr/include/sched.h:121:46: note: suggested alternatives:
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t'
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t'
In file included from /usr/include/pthread.h:22,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h:148,
from /usr/include/c++/9/ext/atomicity.h:35,
from /usr/include/c++/9/bits/basic_string.h:39,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/sched.h:122:10: error: expected primary-expression before 'const'
122 | const cpu_set_t *__cpuset) __THROW;
| ^~~~~
/usr/include/sched.h:122:35: error: expression list treated as compound expression in initializer [-fpermissive]
122 | const cpu_set_t *__cpuset) __THROW;
| ^
/usr/include/sched.h:125:31: error: '__pid_t' was not declared in this scope
125 | extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
| ^~~~~~~
/usr/include/sched.h:125:46: error: 'size_t' was not declared in this scope
125 | extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
| ^~~~~~
/usr/include/sched.h:125:46: note: suggested alternatives:
In file included from /usr/include/c++/9/cmath:41,
from /usr/include/c++/9/math.h:36,
from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t'
258 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:258:26: note: 'std::size_t'
In file included from /usr/include/pthread.h:22,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h:148,
from /usr/include/c++/9/ext/atomicity.h:35,
from /usr/include/c++/9/bits/basic_string.h:39,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/sched.h:126:20: error: expected primary-expression before '*' token
126 | cpu_set_t *__cpuset) __THROW;
| ^
/usr/include/sched.h:126:21: error: '__cpuset' was not declared in this scope
126 | cpu_set_t *__cpuset) __THROW;
| ^~~~~~~~
/usr/include/sched.h:126:29: error: expression list treated as compound expression in initializer [-fpermissive]
126 | cpu_set_t *__cpuset) __THROW;
| ^
In file included from /usr/include/x86_64-linux-gnu/bits/time.h:73,
from /usr/include/time.h:33,
from /usr/include/pthread.h:23,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h:148,
from /usr/include/c++/9/ext/atomicity.h:35,
from /usr/include/c++/9/bits/basic_string.h:39,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/timex.h:29:3: error: '__syscall_slong_t' does not name a type
29 | __syscall_slong_t offset; /* time offset (usec) */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:30:3: error: '__syscall_slong_t' does not name a type
30 | __syscall_slong_t freq; /* frequency offset (scaled ppm) */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:31:3: error: '__syscall_slong_t' does not name a type
31 | __syscall_slong_t maxerror; /* maximum error (usec) */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:32:3: error: '__syscall_slong_t' does not name a type
32 | __syscall_slong_t esterror; /* estimated error (usec) */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:34:3: error: '__syscall_slong_t' does not name a type
34 | __syscall_slong_t constant; /* pll time constant */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:35:3: error: '__syscall_slong_t' does not name a type
35 | __syscall_slong_t precision; /* clock precision (usec) (ro) */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:36:3: error: '__syscall_slong_t' does not name a type
36 | __syscall_slong_t tolerance; /* clock frequency tolerance (ppm) (ro) */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:38:3: error: '__syscall_slong_t' does not name a type
38 | __syscall_slong_t tick; /* (modified) usecs between clock ticks */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:39:3: error: '__syscall_slong_t' does not name a type
39 | __syscall_slong_t ppsfreq; /* pps frequency (scaled ppm) (ro) */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:40:3: error: '__syscall_slong_t' does not name a type
40 | __syscall_slong_t jitter; /* pps jitter (us) (ro) */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:42:3: error: '__syscall_slong_t' does not name a type
42 | __syscall_slong_t stabil; /* pps stability (scaled ppm) (ro) */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:43:3: error: '__syscall_slong_t' does not name a type
43 | __syscall_slong_t jitcnt; /* jitter limit exceeded (ro) */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:44:3: error: '__syscall_slong_t' does not name a type
44 | __syscall_slong_t calcnt; /* calibration intervals (ro) */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:45:3: error: '__syscall_slong_t' does not name a type
45 | __syscall_slong_t errcnt; /* calibration errors (ro) */
| ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/timex.h:46:3: error: '__syscall_slong_t' does not name a type
46 | __syscall_slong_t stbcnt; /* stability limit exceeded (ro) */
| ^~~~~~~~~~~~~~~~~
In file included from /usr/include/time.h:33,
from /usr/include/pthread.h:23,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h:148,
from /usr/include/c++/9/ext/atomicity.h:35,
from /usr/include/c++/9/bits/basic_string.h:39,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/x86_64-linux-gnu/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;
| ^~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/time.h:78:51: error: expected primary-expression before 'struct'
78 | extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) __THROW;
| ^~~~~~
/usr/include/x86_64-linux-gnu/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;
| ^
In file included from /usr/include/pthread.h:23,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h:148,
from /usr/include/c++/9/ext/atomicity.h:35,
from /usr/include/c++/9/bits/basic_string.h:39,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/time.h:72:8: error: 'clock_t' does not name a type
72 | extern clock_t clock (void) __THROW;
| ^~~~~~~
/usr/include/time.h:75:8: error: 'time_t' does not name a type; did you mean 'timex'?
75 | extern time_t time (time_t *__timer) __THROW;
| ^~~~~~
| timex
/usr/include/time.h:78:25: error: 'time_t' was not declared in this scope; did you mean 'timex'?
78 | extern double difftime (time_t __time1, time_t __time0)
| ^~~~~~
| timex
/usr/include/time.h:78:41: error: 'time_t' was not declared in this scope; did you mean 'timex'?
78 | extern double difftime (time_t __time1, time_t __time0)
| ^~~~~~
| timex
/usr/include/time.h:78:55: error: expression list treated as compound expression in initializer [-fpermissive]
78 | extern double difftime (time_t __time1, time_t __time0)
| ^
/usr/include/time.h:82:8: error: 'time_t' does not name a type; did you mean 'timex'?
82 | extern time_t mktime (struct tm *__tp) __THROW;
| ^~~~~~
| timex
/usr/include/time.h:88:8: error: 'size_t' does not name a type
88 | extern size_t strftime (char *__restrict __s, size_t __maxsize,
| ^~~~~~
/usr/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;
/usr/include/time.h:104:8: error: 'size_t' does not name a type
104 | extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
| ^~~~~~
/usr/include/time.h:104:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/time.h:119:33: error: 'time_t' does not name a type; did you mean 'timex'?
119 | extern struct tm *gmtime (const time_t *__timer) __THROW;
| ^~~~~~
| timex
/usr/include/time.h:123:36: error: 'time_t' does not name a type; did you mean 'timex'?
123 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~
| timex
/usr/include/time.h:128:35: error: 'time_t' does not name a type; did you mean 'timex'?
128 | extern struct tm *gmtime_r (const time_t *__restrict __timer,
| ^~~~~~
| timex
/usr/include/time.h:133:38: error: 'time_t' does not name a type; did you mean 'timex'?
133 | extern struct tm *localtime_r (const time_t *__restrict __timer,
| ^~~~~~
| timex
/usr/include/time.h:142:27: error: 'time_t' does not name a type; did you mean 'timex'?
142 | extern char *ctime (const time_t *__timer) __THROW;
| ^~~~~~
| timex
/usr/include/time.h:153:29: error: 'time_t' does not name a type; did you mean 'timex'?
153 | extern char *ctime_r (const time_t *__restrict __timer,
| ^~~~~~
| timex
/usr/include/time.h:190:8: error: 'time_t' does not name a type; did you mean 'ctime_r'?
190 | extern time_t timegm (struct tm *__tp) __THROW;
| ^~~~~~
| ctime_r
/usr/include/time.h:193:8: error: 'time_t' does not name a type; did you mean 'ctime_r'?
193 | extern time_t timelocal (struct tm *__tp) __THROW;
| ^~~~~~
| ctime_r
/usr/include/time.h:210:26: error: 'clockid_t' was not declared in this scope
210 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW;
| ^~~~~~~~~
/usr/include/time.h:210:48: error: expected primary-expression before 'struct'
210 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW;
| ^~~~~~
/usr/include/time.h:210:70: error: expression list treated as compound expression in initializer [-fpermissive]
210 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW;
| ^
/usr/include/time.h:213:27: error: 'clockid_t' was not declared in this scope
213 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
| ^~~~~~~~~
/usr/include/time.h:213:49: error: expected primary-expression before 'struct'
213 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
| ^~~~~~
/usr/include/time.h:213:70: error: expression list treated as compound expression in initializer [-fpermissive]
213 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
| ^
/usr/include/time.h:216:27: error: 'clockid_t' was not declared in this scope
216 | extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)
| ^~~~~~~~~
/usr/include/time.h:216:49: error: expected primary-expression before 'const'
216 | extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)
| ^~~~~
/usr/include/time.h:216:76: error: expression list treated as compound expression in initializer [-fpermissive]
216 | extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)
| ^
/usr/include/time.h:224:29: error: 'clockid_t' was not declared in this scope
224 | extern int clock_nanosleep (clockid_t __clock_id, int __flags,
| ^~~~~~~~~
/usr/include/time.h:224:51: error: expected primary-expression before 'int'
224 | extern int clock_nanosleep (clockid_t __clock_id, int __flags,
| ^~~
/usr/include/time.h:225:8: error: expected primary-expression before 'const'
225 | const struct timespec *__req,
| ^~~~~
/usr/include/time.h:226:8: error: expected primary-expression before 'struct'
226 | struct timespec *__rem);
| ^~~~~~
/usr/include/time.h:226:30: error: expression list treated as compound expression in initializer [-fpermissive]
226 | struct timespec *__rem);
| ^
/usr/include/time.h:229:33: error: 'pid_t' was not declared in this scope
229 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
| ^~~~~
/usr/include/time.h:229:46: error: 'clockid_t' was not declared in this scope
229 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
| ^~~~~~~~~
/usr/include/time.h:229:57: error: '__clock_id' was not declared in this scope
229 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
| ^~~~~~~~~~
/usr/include/time.h:229:67: error: expression list treated as compound expression in initializer [-fpermissive]
229 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
| ^
/usr/include/time.h:234:26: error: 'clockid_t' was not declared in this scope
234 | extern int timer_create (clockid_t __clock_id,
| ^~~~~~~~~
/usr/include/time.h:235:5: error: expected primary-expression before 'struct'
235 | struct sigevent *__restrict __evp,
| ^~~~~~
/usr/include/time.h:236:5: error: 'timer_t' was not declared in this scope
236 | timer_t *__restrict __timerid) __THROW;
| ^~~~~~~
/usr/include/time.h:236:14: error: expected primary-expression before '__restrict'
236 | timer_t *__restrict __timerid) __THROW;
| ^~~~~~~~~~
/usr/include/time.h:236:34: error: expression list treated as compound expression in initializer [-fpermissive]
236 | timer_t *__restrict __timerid) __THROW;
| ^
/usr/include/time.h:239:26: error: 'timer_t' was not declared in this scope
239 | extern int timer_delete (timer_t __timerid) __THROW;
| ^~~~~~~
/usr/include/time.h:242:27: error: 'timer_t' was not declared in this scope
242 | extern int timer_settime (timer_t __timerid, int __flags,
| ^~~~~~~
/usr/include/time.h:242:46: error: expected primary-expression before 'int'
242 | extern int timer_settime (timer_t __timerid, int __flags,
| ^~~
/usr/include/time.h:243:6: error: expected primary-expression before 'const'
243 | const struct itimerspec *__restrict __value,
| ^~~~~
/usr/include/time.h:244:6: error: expected primary-expression before 'struct'
244 | struct itimerspec *__restrict __ovalue) __THROW;
| ^~~~~~
/usr/include/time.h:244:44: error: expression list treated as compound expression in initializer [-fpermissive]
244 | struct itimerspec *__restrict __ovalue) __THROW;
| ^
/usr/include/time.h:247:27: error: 'timer_t' was not declared in this scope
247 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
| ^~~~~~~
/usr/include/time.h:247:46: error: expected primary-expression before 'struct'
247 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
| ^~~~~~
/usr/include/time.h:247:72: error: expression list treated as compound expression in initializer [-fpermissive]
247 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
| ^
/usr/include/time.h:251:30: error: 'timer_t' was not declared in this scope
251 | extern int timer_getoverrun (timer_t __timerid) __THROW;
| ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h:148,
from /usr/include/c++/9/ext/atomicity.h:35,
from /usr/include/c++/9/bits/basic_string.h:39,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/pthread.h:239:34: error: 'clockid_t' has not been declared
239 | clockid_t __clockid,
| ^~~~~~~~~
/usr/include/pthread.h:282:11: error: 'size_t' has not been declared
282 | size_t *__guardsize)
| ^~~~~~
/usr/include/pthread.h:287:11: error: 'size_t' has not been declared
287 | size_t __guardsize)
| ^~~~~~
/usr/include/pthread.h:345:19: error: 'size_t' has not been declared
345 | __attr, size_t *__restrict __stacksize)
| ^~~~~~
/usr/include/pthread.h:352:11: error: 'size_t' has not been declared
352 | size_t __stacksize)
| ^~~~~~
/usr/include/pthread.h:359:7: error: 'size_t' has not been declared
359 | size_t *__restrict __stacksize)
| ^~~~~~
/usr/include/pthread.h:366:7: error: 'size_t' has not been declared
366 | size_t __stacksize) __THROW __nonnull ((1));
| ^~~~~~
/usr/include/pthread.h:373:6: error: 'size_t' has not been declared
373 | size_t __cpusetsize,
| ^~~~~~
/usr/include/pthread.h:380:6: error: 'size_t' has not been declared
380 | size_t __cpusetsize,
| ^~~~~~
/usr/include/pthread.h:423:11: error: 'size_t' has not been declared
423 | size_t __buflen)
| ^~~~~~
/usr/include/pthread.h:450:52: error: 'size_t' has not been declared
450 | extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize,
| ^~~~~~
/usr/include/pthread.h:455:52: error: 'size_t' has not been declared
455 | extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize,
| ^~~~~~
/usr/include/pthread.h:750:9: error: 'clockid_t' has not been declared
750 | clockid_t __clockid,
| ^~~~~~~~~
/usr/include/pthread.h:896:12: error: 'clockid_t' has not been declared
896 | clockid_t __clockid,
| ^~~~~~~~~
/usr/include/pthread.h:918:12: error: 'clockid_t' has not been declared
918 | clockid_t __clockid,
| ^~~~~~~~~
/usr/include/pthread.h:1012:8: error: '__clockid_t' has not been declared
1012 | __clockid_t __clock_id,
| ^~~~~~~~~~~
/usr/include/pthread.h:1041:11: error: '__clockid_t' has not been declared
1041 | __clockid_t *__restrict __clock_id)
| ^~~~~~~~~~~
/usr/include/pthread.h:1046:11: error: '__clockid_t' has not been declared
1046 | __clockid_t __clock_id)
| ^~~~~~~~~~~
/usr/include/pthread.h:1141:7: error: '__clockid_t' has not been declared
1141 | __clockid_t *__clock_id)
| ^~~~~~~~~~~
In file included from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/cstdio:98:11: error: '::FILE' has not been declared
98 | using ::FILE;
| ^~~~
/usr/include/c++/9/cstdio:99:11: error: '::fpos_t' has not been declared
99 | using ::fpos_t;
| ^~~~~~
/usr/include/c++/9/cstdio:101:11: error: '::clearerr' has not been declared
101 | using ::clearerr;
| ^~~~~~~~
/usr/include/c++/9/cstdio:102:11: error: '::fclose' has not been declared
102 | using ::fclose;
| ^~~~~~
/usr/include/c++/9/cstdio:103:11: error: '::feof' has not been declared
103 | using ::feof;
| ^~~~
/usr/include/c++/9/cstdio:104:11: error: '::ferror' has not been declared
104 | using ::ferror;
| ^~~~~~
/usr/include/c++/9/cstdio:105:11: error: '::fflush' has not been declared
105 | using ::fflush;
| ^~~~~~
/usr/include/c++/9/cstdio:106:11: error: '::fgetc' has not been declared
106 | using ::fgetc;
| ^~~~~
/usr/include/c++/9/cstdio:107:11: error: '::fgetpos' has not been declared
107 | using ::fgetpos;
| ^~~~~~~
/usr/include/c++/9/cstdio:108:11: error: '::fgets' has not been declared
108 | using ::fgets;
| ^~~~~
/usr/include/c++/9/cstdio:109:11: error: '::fopen' has not been declared
109 | using ::fopen;
| ^~~~~
/usr/include/c++/9/cstdio:110:11: error: '::fprintf' has not been declared
110 | using ::fprintf;
| ^~~~~~~
/usr/include/c++/9/cstdio:111:11: error: '::fputc' has not been declared
111 | using ::fputc;
| ^~~~~
/usr/include/c++/9/cstdio:112:11: error: '::fputs' has not been declared
112 | using ::fputs;
| ^~~~~
/usr/include/c++/9/cstdio:113:11: error: '::fread' has not been declared
113 | using ::fread;
| ^~~~~
/usr/include/c++/9/cstdio:114:11: error: '::freopen' has not been declared
114 | using ::freopen;
| ^~~~~~~
/usr/include/c++/9/cstdio:115:11: error: '::fscanf' has not been declared
115 | using ::fscanf;
| ^~~~~~
/usr/include/c++/9/cstdio:116:11: error: '::fseek' has not been declared
116 | using ::fseek;
| ^~~~~
/usr/include/c++/9/cstdio:117:11: error: '::fsetpos' has not been declared
117 | using ::fsetpos;
| ^~~~~~~
/usr/include/c++/9/cstdio:118:11: error: '::ftell' has not been declared
118 | using ::ftell;
| ^~~~~
/usr/include/c++/9/cstdio:119:11: error: '::fwrite' has not been declared
119 | using ::fwrite;
| ^~~~~~
/usr/include/c++/9/cstdio:120:11: error: '::getc' has not been declared
120 | using ::getc;
| ^~~~
/usr/include/c++/9/cstdio:121:11: error: '::getchar' has not been declared
121 | using ::getchar;
| ^~~~~~~
/usr/include/c++/9/cstdio:124:11: error: '::gets' has not been declared
124 | using ::gets;
| ^~~~
/usr/include/c++/9/cstdio:126:11: error: '::perror' has not been declared
126 | using ::perror;
| ^~~~~~
/usr/include/c++/9/cstdio:127:11: error: '::printf' has not been declared
127 | using ::printf;
| ^~~~~~
/usr/include/c++/9/cstdio:128:11: error: '::putc' has not been declared
128 | using ::putc;
| ^~~~
/usr/include/c++/9/cstdio:129:11: error: '::putchar' has not been declared
129 | using ::putchar;
| ^~~~~~~
/usr/include/c++/9/cstdio:130:11: error: '::puts' has not been declared
130 | using ::puts;
| ^~~~
/usr/include/c++/9/cstdio:131:11: error: '::remove' has not been declared
131 | using ::remove;
| ^~~~~~
/usr/include/c++/9/cstdio:132:11: error: '::rename' has not been declared
132 | using ::rename;
| ^~~~~~
/usr/include/c++/9/cstdio:133:11: error: '::rewind' has not been declared
133 | using ::rewind;
| ^~~~~~
/usr/include/c++/9/cstdio:134:11: error: '::scanf' has not been declared
134 | using ::scanf;
| ^~~~~
/usr/include/c++/9/cstdio:135:11: error: '::setbuf' has not been declared
135 | using ::setbuf;
| ^~~~~~
/usr/include/c++/9/cstdio:136:11: error: '::setvbuf' has not been declared
136 | using ::setvbuf;
| ^~~~~~~
/usr/include/c++/9/cstdio:137:11: error: '::sprintf' has not been declared
137 | using ::sprintf;
| ^~~~~~~
/usr/include/c++/9/cstdio:138:11: error: '::sscanf' has not been declared
138 | using ::sscanf;
| ^~~~~~
/usr/include/c++/9/cstdio:139:11: error: '::tmpfile' has not been declared
139 | using ::tmpfile;
| ^~~~~~~
/usr/include/c++/9/cstdio:141:11: error: '::tmpnam' has not been declared
141 | using ::tmpnam;
| ^~~~~~
/usr/include/c++/9/cstdio:143:11: error: '::ungetc' has not been declared
143 | using ::ungetc;
| ^~~~~~
/usr/include/c++/9/cstdio:144:11: error: '::vfprintf' has not been declared
144 | using ::vfprintf;
| ^~~~~~~~
/usr/include/c++/9/cstdio:145:11: error: '::vprintf' has not been declared
145 | using ::vprintf;
| ^~~~~~~
/usr/include/c++/9/cstdio:146:11: error: '::vsprintf' has not been declared
146 | using ::vsprintf;
| ^~~~~~~~
/usr/include/c++/9/cstdio:175:11: error: '::snprintf' has not been declared
175 | using ::snprintf;
| ^~~~~~~~
/usr/include/c++/9/cstdio:176:11: error: '::vfscanf' has not been declared
176 | using ::vfscanf;
| ^~~~~~~
/usr/include/c++/9/cstdio:177:11: error: '::vscanf' has not been declared
177 | using ::vscanf;
| ^~~~~~
/usr/include/c++/9/cstdio:178:11: error: '::vsnprintf' has not been declared
178 | using ::vsnprintf;
| ^~~~~~~~~
/usr/include/c++/9/cstdio:179:11: error: '::vsscanf' has not been declared
179 | using ::vsscanf;
| ^~~~~~~
/usr/include/c++/9/cstdio:185:22: error: '__gnu_cxx::snprintf' has not been declared
185 | using ::__gnu_cxx::snprintf;
| ^~~~~~~~
/usr/include/c++/9/cstdio:186:22: error: '__gnu_cxx::vfscanf' has not been declared
186 | using ::__gnu_cxx::vfscanf;
| ^~~~~~~
/usr/include/c++/9/cstdio:187:22: error: '__gnu_cxx::vscanf' has not been declared
187 | using ::__gnu_cxx::vscanf;
| ^~~~~~
/usr/include/c++/9/cstdio:188:22: error: '__gnu_cxx::vsnprintf' has not been declared
188 | using ::__gnu_cxx::vsnprintf;
| ^~~~~~~~~
/usr/include/c++/9/cstdio:189:22: error: '__gnu_cxx::vsscanf' has not been declared
189 | using ::__gnu_cxx::vsscanf;
| ^~~~~~~
In file included from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(int)':
/usr/include/c++/9/bits/basic_string.h:6550:50: error: 'vsnprintf' is not a member of 'std'; did you mean 'isprint'?
6550 | { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(int),
| ^~~~~~~~~
| isprint
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(unsigned int)':
/usr/include/c++/9/bits/basic_string.h:6555:50: error: 'vsnprintf' is not a member of 'std'; did you mean 'isprint'?
6555 | { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
| ^~~~~~~~~
| isprint
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long int)':
/usr/include/c++/9/bits/basic_string.h:6561:50: error: 'vsnprintf' is not a member of 'std'; did you mean 'isprint'?
6561 | { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(long),
| ^~~~~~~~~
| isprint
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long unsigned int)':
/usr/include/c++/9/bits/basic_string.h:6566:50: error: 'vsnprintf' is not a member of 'std'; did you mean 'isprint'?
6566 | { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
| ^~~~~~~~~
| isprint
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long long int)':
/usr/include/c++/9/bits/basic_string.h:6572:50: error: 'vsnprintf' is not a member of 'std'; did you mean 'isprint'?
6572 | { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
| ^~~~~~~~~
| isprint
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long long unsigned int)':
/usr/include/c++/9/bits/basic_string.h:6578:50: error: 'vsnprintf' is not a member of 'std'; did you mean 'isprint'?
6578 | { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
| ^~~~~~~~~
| isprint
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(float)':
/usr/include/c++/9/bits/basic_string.h:6587:50: error: 'vsnprintf' is not a member of 'std'; did you mean 'isprint'?
6587 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ^~~~~~~~~
| isprint
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(double)':
/usr/include/c++/9/bits/basic_string.h:6596:50: error: 'vsnprintf' is not a member of 'std'; did you mean 'isprint'?
6596 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ^~~~~~~~~
| isprint
/usr/include/c++/9/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long double)':
/usr/include/c++/9/bits/basic_string.h:6605:50: error: 'vsnprintf' is not a member of 'std'; did you mean 'isprint'?
6605 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ^~~~~~~~~
| isprint
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(int)':
/usr/include/c++/9/bits/basic_string.h:6654:22: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), long unsigned int, const wchar_t [3], int&)'
6654 | L"%d", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/ext/string_conversions.h:99: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*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/bits/basic_string.h:6654:22: note: mismatched types 'std::size_t' {aka 'long unsigned int'} and 'int'
6654 | L"%d", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(unsigned int)':
/usr/include/c++/9/bits/basic_string.h:6660:22: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), long unsigned int, const wchar_t [3], unsigned int&)'
6660 | L"%u", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/ext/string_conversions.h:99: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*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/bits/basic_string.h:6660:22: note: mismatched types 'std::size_t' {aka 'long unsigned int'} and 'int'
6660 | L"%u", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long int)':
/usr/include/c++/9/bits/basic_string.h:6665:23: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), long unsigned int, const wchar_t [4], long int&)'
6665 | L"%ld", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/ext/string_conversions.h:99: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*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/bits/basic_string.h:6665:23: note: mismatched types 'std::size_t' {aka 'long unsigned int'} and 'int'
6665 | L"%ld", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long unsigned int)':
/usr/include/c++/9/bits/basic_string.h:6671:23: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), long unsigned int, const wchar_t [4], long unsigned int&)'
6671 | L"%lu", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/ext/string_conversions.h:99: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*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/bits/basic_string.h:6671:23: note: mismatched types 'std::size_t' {aka 'long unsigned int'} and 'int'
6671 | L"%lu", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long long int)':
/usr/include/c++/9/bits/basic_string.h:6677:24: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), long unsigned int, const wchar_t [5], long long int&)'
6677 | L"%lld", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/ext/string_conversions.h:99: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*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/bits/basic_string.h:6677:24: note: mismatched types 'std::size_t' {aka 'long unsigned int'} and 'int'
6677 | L"%lld", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long long unsigned int)':
/usr/include/c++/9/bits/basic_string.h:6683:24: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), long unsigned int, const wchar_t [5], long long unsigned int&)'
6683 | L"%llu", __val); }
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/ext/string_conversions.h:99: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*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/bits/basic_string.h:6683:24: note: mismatched types 'std::size_t' {aka 'long unsigned int'} and 'int'
6683 | L"%llu", __val); }
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(float)':
/usr/include/c++/9/bits/basic_string.h:6691:22: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), const int&, const wchar_t [3], float&)'
6691 | L"%f", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/ext/string_conversions.h:99: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*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/bits/basic_string.h:6691:22: note: mismatched types 'std::size_t' {aka 'long unsigned int'} and 'int'
6691 | L"%f", __val);
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(double)':
/usr/include/c++/9/bits/basic_string.h:6700:22: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), const int&, const wchar_t [3], double&)'
6700 | L"%f", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/ext/string_conversions.h:99: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*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/bits/basic_string.h:6700:22: note: mismatched types 'std::size_t' {aka 'long unsigned int'} and 'int'
6700 | L"%f", __val);
| ^
/usr/include/c++/9/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long double)':
/usr/include/c++/9/bits/basic_string.h:6709:23: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), const int&, const wchar_t [4], long double&)'
6709 | L"%Lf", __val);
| ^
In file included from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/ext/string_conversions.h:99: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*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/9/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/string:55,
from foo.cc:6:
/usr/include/c++/9/bits/basic_string.h:6709:23: note: mismatched types 'std::size_t' {aka 'long unsigned int'} and 'int'
6709 | L"%Lf", __val);
| ^
In file included from /usr/include/c++/9/cwctype:50,
from /usr/include/c++/9/bits/locale_facets.h:39,
from /usr/include/c++/9/bits/basic_ios.h:37,
from /usr/include/c++/9/ios:44,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from foo.cc:8:
/usr/include/wctype.h: At global scope:
/usr/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
/usr/include/wctype.h:52:8: error: 'wctrans_t' does not name a type
52 | extern wctrans_t wctrans (const char *__property) __THROW;
| ^~~~~~~~~
/usr/include/wctype.h:55:39: error: 'wctrans_t' has not been declared
55 | extern wint_t towctrans (wint_t __wc, wctrans_t __desc) __THROW;
| ^~~~~~~~~
/usr/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)
| ^~~~~~~~~
/usr/include/wctype.h:141:41: error: 'wctrans_t' has not been declared
141 | extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc,
| ^~~~~~~~~
In file included from /usr/include/c++/9/bits/locale_facets.h:39,
from /usr/include/c++/9/bits/basic_ios.h:37,
from /usr/include/c++/9/ios:44,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from foo.cc:8:
/usr/include/c++/9/cwctype:82:11: error: '::wctrans_t' has not been declared
82 | using ::wctrans_t;
| ^~~~~~~~~
/usr/include/c++/9/cwctype:104:11: error: '::wctrans' has not been declared
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;