/ Vijos /

记录详情

Compile Error

foo.cc:1:5: error: stray '##' in program
     ###C++ CODE
     ^~
foo.cc:1:7: error: stray '#' in program
     ###C++ CODE
       ^
foo.cc:1:8: error: 'C' does not name a type
     ###C++ CODE
        ^
In file included from /usr/include/c++/7/cmath:45:0,
                 from /usr/include/c++/7/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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __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'?
 __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
 ^
In file included from /usr/include/c++/7/bits/std_abs.h:38:0,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/stdlib.h:97:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
        ^~~~~~
        __size_t
/usr/include/stdlib.h:212:36: error: 'size_t' has not been declared
 extern int strfromd (char *__dest, size_t __size, const char *__format,
                                    ^~~~~~
/usr/include/stdlib.h:216:36: error: 'size_t' has not been declared
 extern int strfromf (char *__dest, size_t __size, const char *__format,
                                    ^~~~~~
/usr/include/stdlib.h:220:36: error: 'size_t' has not been declared
 extern int strfroml (char *__dest, size_t __size, const char *__format,
                                    ^~~~~~
/usr/include/stdlib.h:232:38: error: 'size_t' has not been declared
 extern int strfromf32 (char *__dest, size_t __size, const char * __format,
                                      ^~~~~~
/usr/include/stdlib.h:238:38: error: 'size_t' has not been declared
 extern int strfromf64 (char *__dest, size_t __size, const char * __format,
                                      ^~~~~~
/usr/include/stdlib.h:244:39: error: 'size_t' has not been declared
 extern int strfromf128 (char *__dest, size_t __size, const char * __format,
                                       ^~~~~~
/usr/include/stdlib.h:250:39: error: 'size_t' has not been declared
 extern int strfromf32x (char *__dest, size_t __size, const char * __format,
                                       ^~~~~~
/usr/include/stdlib.h:256:39: error: 'size_t' has not been declared
 extern int strfromf64x (char *__dest, size_t __size, const char * __format,
                                       ^~~~~~
In file included from /usr/include/stdlib.h:394:0,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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; did you mean 'char'?
 typedef __u_char u_char;
         ^~~~~~~~
         char
/usr/include/x86_64-linux-gnu/sys/types.h:34:9: error: '__u_short' does not name a type; did you mean '__sqrt'?
 typedef __u_short u_short;
         ^~~~~~~~~
         __sqrt
/usr/include/x86_64-linux-gnu/sys/types.h:35:9: error: '__u_int' does not name a type; did you mean '__lrint'?
 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'?
 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; did you mean '__muldc3'?
 typedef __quad_t quad_t;
         ^~~~~~~~
         __muldc3
/usr/include/x86_64-linux-gnu/sys/types.h:38:9: error: '__u_quad_t' does not name a type; did you mean '_IO_uid_t'?
 typedef __u_quad_t u_quad_t;
         ^~~~~~~~~~
         _IO_uid_t
/usr/include/x86_64-linux-gnu/sys/types.h:39:9: error: '__fsid_t' does not name a type; did you mean '__size_t'?
 typedef __fsid_t fsid_t;
         ^~~~~~~~
         __size_t
/usr/include/x86_64-linux-gnu/sys/types.h:44:9: error: '__loff_t' does not name a type; did you mean '__logf64'?
 typedef __loff_t loff_t;
         ^~~~~~~~
         __logf64
/usr/include/x86_64-linux-gnu/sys/types.h:48:9: error: '__ino_t' does not name a type; did you mean '__ilogb'?
 typedef __ino_t ino_t;
         ^~~~~~~
         __ilogb
/usr/include/x86_64-linux-gnu/sys/types.h:55:9: error: '__ino64_t' does not name a type; did you mean '__ynf64x'?
 typedef __ino64_t ino64_t;
         ^~~~~~~~~
         __ynf64x
/usr/include/x86_64-linux-gnu/sys/types.h:60:9: error: '__dev_t' does not name a type; did you mean 'lldiv_t'?
 typedef __dev_t dev_t;
         ^~~~~~~
         lldiv_t
/usr/include/x86_64-linux-gnu/sys/types.h:65:9: error: '__gid_t' does not name a type; did you mean '__rint'?
 typedef __gid_t gid_t;
         ^~~~~~~
         __rint
/usr/include/x86_64-linux-gnu/sys/types.h:70:9: error: '__mode_t' does not name a type; did you mean '__modfl'?
 typedef __mode_t mode_t;
         ^~~~~~~~
         __modfl
/usr/include/x86_64-linux-gnu/sys/types.h:75:9: error: '__nlink_t' does not name a type; did you mean '__llrint'?
 typedef __nlink_t nlink_t;
         ^~~~~~~~~
         __llrint
/usr/include/x86_64-linux-gnu/sys/types.h:80:9: error: '__uid_t' does not name a type; did you mean '_IO_uid_t'?
 typedef __uid_t uid_t;
         ^~~~~~~
         _IO_uid_t
/usr/include/x86_64-linux-gnu/sys/types.h:98:9: error: '__pid_t' does not name a type; did you mean '_IO_pid_t'?
 typedef __pid_t pid_t;
         ^~~~~~~
         _IO_pid_t
/usr/include/x86_64-linux-gnu/sys/types.h:104:9: error: '__id_t' does not name a type; did you mean 'ldiv_t'?
 typedef __id_t id_t;
         ^~~~~~
         ldiv_t
/usr/include/x86_64-linux-gnu/sys/types.h:115:9: error: '__daddr_t' does not name a type; did you mean '__ptr_t'?
 typedef __daddr_t daddr_t;
         ^~~~~~~~~
         __ptr_t
/usr/include/x86_64-linux-gnu/sys/types.h:116:9: error: '__caddr_t' does not name a type; did you mean '__cbrt'?
 typedef __caddr_t caddr_t;
         ^~~~~~~~~
         __cbrt
/usr/include/x86_64-linux-gnu/sys/types.h:122:9: error: '__key_t' does not name a type; did you mean '__ptr_t'?
 typedef __key_t key_t;
         ^~~~~~~
         __ptr_t
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:127:0,
                 from /usr/include/stdlib.h:394,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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; did you mean '__locale_t'?
 typedef __clock_t clock_t;
         ^~~~~~~~~
         __locale_t
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:129:0,
                 from /usr/include/stdlib.h:394,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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; did you mean '__locale_t'?
 typedef __clockid_t clockid_t;
         ^~~~~~~~~~~
         __locale_t
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:130:0,
                 from /usr/include/stdlib.h:394,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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; did you mean '__size_t'?
 typedef __time_t time_t;
         ^~~~~~~~
         __size_t
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:131:0,
                 from /usr/include/stdlib.h:394,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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; did you mean '__size_t'?
 typedef __timer_t timer_t;
         ^~~~~~~~~
         __size_t
In file included from /usr/include/stdlib.h:394:0,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/sys/types.h:135:9: error: '__useconds_t' does not name a type; did you mean '__u_intN_t'?
 typedef __useconds_t useconds_t;
         ^~~~~~~~~~~~
         __u_intN_t
/usr/include/x86_64-linux-gnu/sys/types.h:139:9: error: '__suseconds_t' does not name a type
 typedef __suseconds_t suseconds_t;
         ^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:156:0,
                 from /usr/include/stdlib.h:394,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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'?
 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'?
 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'?
 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'?
 typedef __int64_t int64_t;
         ^~~~~~~~~
         __int128_t
In file included from /usr/include/endian.h:60:0,
                 from /usr/include/x86_64-linux-gnu/sys/types.h:194,
                 from /usr/include/stdlib.h:394,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/byteswap.h:108:17: error: '__uint64_t' does not name a type; did you mean 'u_int64_t'?
 static __inline __uint64_t
                 ^~~~~~~~~~
                 u_int64_t
In file included from /usr/include/endian.h:61:0,
                 from /usr/include/x86_64-linux-gnu/sys/types.h:194,
                 from /usr/include/stdlib.h:394,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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 'u_int16_t'?
 static __inline __uint16_t
                 ^~~~~~~~~~
                 u_int16_t
/usr/include/x86_64-linux-gnu/bits/uintn-identity.h:38:17: error: '__uint32_t' does not name a type; did you mean 'u_int32_t'?
 static __inline __uint32_t
                 ^~~~~~~~~~
                 u_int32_t
/usr/include/x86_64-linux-gnu/bits/uintn-identity.h:44:17: error: '__uint64_t' does not name a type; did you mean 'u_int64_t'?
 static __inline __uint64_t
                 ^~~~~~~~~~
                 u_int64_t
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:37:0,
                 from /usr/include/x86_64-linux-gnu/sys/types.h:197,
                 from /usr/include/stdlib.h:394,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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 '__size_t'?
   __time_t tv_sec;  /* Seconds.  */
   ^~~~~~~~
   __size_t
/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h:11:3: error: '__suseconds_t' does not name a type
   __suseconds_t tv_usec; /* Microseconds.  */
   ^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:39:0,
                 from /usr/include/x86_64-linux-gnu/sys/types.h:197,
                 from /usr/include/stdlib.h:394,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h:11:3: error: '__time_t' does not name a type; did you mean '__size_t'?
   __time_t tv_sec;  /* Seconds.  */
   ^~~~~~~~
   __size_t
/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h:12:3: error: '__syscall_slong_t' does not name a type
   __syscall_slong_t tv_nsec; /* Nanoseconds.  */
   ^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:205:0,
                 from /usr/include/stdlib.h:394,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:73:1: error: '__dev_t' was not declared in this scope
 __SYSMACROS_DECLARE_MAJOR (__SYSMACROS_DECL_TEMPL)
 ^
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:73:1: note: suggested alternative: 'lldiv_t'
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:74:1: error: '__dev_t' was not declared in this scope
 __SYSMACROS_DECLARE_MINOR (__SYSMACROS_DECL_TEMPL)
 ^
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:74:1: note: suggested alternative: 'lldiv_t'
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:75:1: error: '__dev_t' does not name a type; did you mean 'lldiv_t'?
 __SYSMACROS_DECLARE_MAKEDEV (__SYSMACROS_DECL_TEMPL)
 ^
In file included from /usr/include/features.h:424:0,
                 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/sys/sysmacros.h:79:1: error: redefinition of 'unsigned int gnu_dev_major'
 __SYSMACROS_DEFINE_MAJOR (__SYSMACROS_IMPL_TEMPL)
 ^
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:205:0,
                 from /usr/include/stdlib.h:394,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:73:1: note: 'unsigned int gnu_dev_major' previously defined here
 __SYSMACROS_DECLARE_MAJOR (__SYSMACROS_DECL_TEMPL)
 ^
In file included from /usr/include/features.h:424:0,
                 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/sys/sysmacros.h:79:1: error: '__dev_t' was not declared in this scope
 __SYSMACROS_DEFINE_MAJOR (__SYSMACROS_IMPL_TEMPL)
 ^
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:79:1: note: suggested alternative: 'lldiv_t'
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:80:1: error: redefinition of 'unsigned int gnu_dev_minor'
 __SYSMACROS_DEFINE_MINOR (__SYSMACROS_IMPL_TEMPL)
 ^
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:205:0,
                 from /usr/include/stdlib.h:394,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:74:1: note: 'unsigned int gnu_dev_minor' previously defined here
 __SYSMACROS_DECLARE_MINOR (__SYSMACROS_DECL_TEMPL)
 ^
In file included from /usr/include/features.h:424:0,
                 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/sys/sysmacros.h:80:1: error: '__dev_t' was not declared in this scope
 __SYSMACROS_DEFINE_MINOR (__SYSMACROS_IMPL_TEMPL)
 ^
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:80:1: note: suggested alternative: 'lldiv_t'
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:205:0,
                 from /usr/include/stdlib.h:394,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:81:1: error: '__dev_t' does not name a type; did you mean 'lldiv_t'?
 __SYSMACROS_DEFINE_MAKEDEV (__SYSMACROS_IMPL_TEMPL)
 ^
In file included from /usr/include/stdlib.h:394:0,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/sys/types.h:212:9: error: '__blksize_t' does not name a type; did you mean '__size_t'?
 typedef __blksize_t blksize_t;
         ^~~~~~~~~~~
         __size_t
/usr/include/x86_64-linux-gnu/sys/types.h:219:9: error: '__blkcnt_t' does not name a type; did you mean '__sigset_t'?
 typedef __blkcnt_t blkcnt_t;  /* Type to count number of disk blocks.  */
         ^~~~~~~~~~
         __sigset_t
/usr/include/x86_64-linux-gnu/sys/types.h:223:9: error: '__fsblkcnt_t' does not name a type; did you mean '__sigset_t'?
 typedef __fsblkcnt_t fsblkcnt_t; /* Type to count file system blocks.  */
         ^~~~~~~~~~~~
         __sigset_t
/usr/include/x86_64-linux-gnu/sys/types.h:227:9: error: '__fsfilcnt_t' does not name a type; did you mean '__sigset_t'?
 typedef __fsfilcnt_t fsfilcnt_t; /* Type to count file system inodes.  */
         ^~~~~~~~~~~~
         __sigset_t
/usr/include/x86_64-linux-gnu/sys/types.h:246:9: error: '__blkcnt64_t' does not name a type; did you mean 'u_int64_t'?
 typedef __blkcnt64_t blkcnt64_t;     /* Type to count number of disk blocks. */
         ^~~~~~~~~~~~
         u_int64_t
/usr/include/x86_64-linux-gnu/sys/types.h:247:9: error: '__fsblkcnt64_t' does not name a type; did you mean 'u_int64_t'?
 typedef __fsblkcnt64_t fsblkcnt64_t; /* Type to count file system blocks.  */
         ^~~~~~~~~~~~~~
         u_int64_t
/usr/include/x86_64-linux-gnu/sys/types.h:248:9: error: '__fsfilcnt64_t' does not name a type; did you mean 'u_int64_t'?
 typedef __fsfilcnt64_t fsfilcnt64_t; /* Type to count file system inodes.  */
         ^~~~~~~~~~~~~~
         u_int64_t
In file included from /usr/include/c++/7/bits/std_abs.h:38:0,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/stdlib.h:411:4: error: 'size_t' has not been declared
    size_t __statelen) __THROW __nonnull ((2));
    ^~~~~~
/usr/include/stdlib.h:425:5: error: 'int32_t' does not name a type; did you mean 'u_int32_t'?
     int32_t *fptr;  /* Front pointer.  */
     ^~~~~~~
     u_int32_t
/usr/include/stdlib.h:426:5: error: 'int32_t' does not name a type; did you mean 'u_int32_t'?
     int32_t *rptr;  /* Rear pointer.  */
     ^~~~~~~
     u_int32_t
/usr/include/stdlib.h:427:5: error: 'int32_t' does not name a type; did you mean 'u_int32_t'?
     int32_t *state;  /* Array of state values.  */
     ^~~~~~~
     u_int32_t
/usr/include/stdlib.h:431:5: error: 'int32_t' does not name a type; did you mean 'u_int32_t'?
     int32_t *end_ptr;  /* Pointer behind state table.  */
     ^~~~~~~
     u_int32_t
/usr/include/stdlib.h:435:8: error: 'int32_t' has not been declared
        int32_t *__restrict __result) __THROW __nonnull ((1, 2));
        ^~~~~~~
/usr/include/stdlib.h:441:4: error: 'size_t' has not been declared
    size_t __statelen,
    ^~~~~~
/usr/include/stdlib.h:539:22: error: 'size_t' was not declared in this scope
 extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
                      ^~~~~~
/usr/include/stdlib.h:539:22: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/c++/7/bits/std_abs.h:38:0,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/stdlib.h:541:22: error: 'size_t' was not declared in this scope
 extern void *calloc (size_t __nmemb, size_t __size)
                      ^~~~~~
/usr/include/stdlib.h:541:22: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/c++/7/bits/std_abs.h:38:0,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/stdlib.h:541:38: error: 'size_t' was not declared in this scope
 extern void *calloc (size_t __nmemb, size_t __size)
                                      ^~~~~~
/usr/include/stdlib.h:541:38: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/c++/7/bits/std_abs.h:38:0,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/stdlib.h:541:51: error: expression list treated as compound expression in initializer [-fpermissive]
 extern void *calloc (size_t __nmemb, size_t __size)
                                                   ^
/usr/include/stdlib.h:549:36: error: 'size_t' has not been declared
 extern void *realloc (void *__ptr, size_t __size)
                                    ^~~~~~
/usr/include/stdlib.h:558:41: error: 'size_t' has not been declared
 extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
                                         ^~~~~~
/usr/include/stdlib.h:558:57: error: 'size_t' has not been declared
 extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
                                                         ^~~~~~
In file included from /usr/include/stdlib.h:566:0,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/alloca.h:32:22: error: 'size_t' was not declared in this scope
 extern void *alloca (size_t __size) __THROW;
                      ^~~~~~
/usr/include/alloca.h:32:22: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/c++/7/bits/std_abs.h:38:0,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/stdlib.h:572:22: error: 'size_t' was not declared in this scope
 extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
                      ^~~~~~
/usr/include/stdlib.h:572:22: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/c++/7/bits/std_abs.h:38:0,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/stdlib.h:577:45: error: 'size_t' has not been declared
 extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
                                             ^~~~~~
/usr/include/stdlib.h:577:65: error: 'size_t' has not been declared
 extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
                                                                 ^~~~~~
/usr/include/stdlib.h:583:29: error: 'size_t' was not declared in this scope
 extern void *aligned_alloc (size_t __alignment, size_t __size)
                             ^~~~~~
/usr/include/stdlib.h:583:29: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/c++/7/bits/std_abs.h:38:0,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/stdlib.h:583:49: error: 'size_t' was not declared in this scope
 extern void *aligned_alloc (size_t __alignment, size_t __size)
                                                 ^~~~~~
/usr/include/stdlib.h:583:49: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/c++/7/bits/std_abs.h:38:0,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/stdlib.h:583:62: error: expression list treated as compound expression in initializer [-fpermissive]
 extern void *aligned_alloc (size_t __alignment, size_t __size)
                                                              ^
/usr/include/stdlib.h:818:9: error: 'size_t' has not been declared
         size_t __nmemb, size_t __size, __compar_fn_t __compar)
         ^~~~~~
/usr/include/stdlib.h:818:25: error: 'size_t' has not been declared
         size_t __nmemb, size_t __size, __compar_fn_t __compar)
                         ^~~~~~
In file included from /usr/include/stdlib.h:822:0,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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
 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
 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
   size_t __l, __u, __idx;
   ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:23:3: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/stdlib.h:822:0,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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
   __l = 0;
   ^~~
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:27:3: note: suggested alternative: '__p'
   __l = 0;
   ^~~
   __p
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:28:3: error: '__u' was not declared in this scope
   __u = __nmemb;
   ^~~
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:28:3: note: suggested alternative: '__p'
   __u = __nmemb;
   ^~~
   __p
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:31:7: error: '__idx' was not declared in this scope
       __idx = (__l + __u) / 2;
       ^~~~~
In file included from /usr/include/c++/7/bits/std_abs.h:38:0,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/stdlib.h: At global scope:
/usr/include/stdlib.h:827:34: error: 'size_t' has not been declared
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
                                  ^~~~~~
/usr/include/stdlib.h:827:50: error: 'size_t' has not been declared
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
                                                  ^~~~~~
/usr/include/stdlib.h:830:36: error: 'size_t' has not been declared
 extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
                                    ^~~~~~
/usr/include/stdlib.h:830:52: error: 'size_t' has not been declared
 extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
                                                    ^~~~~~
/usr/include/stdlib.h:901:6: error: 'size_t' has not been declared
      size_t __len) __THROW __nonnull ((3, 4, 5));
      ^~~~~~
/usr/include/stdlib.h:904:6: error: 'size_t' has not been declared
      size_t __len) __THROW __nonnull ((3, 4, 5));
      ^~~~~~
/usr/include/stdlib.h:908:31: error: 'size_t' has not been declared
       char *__restrict __buf, size_t __len)
                               ^~~~~~
/usr/include/stdlib.h:912:31: error: 'size_t' has not been declared
       char *__restrict __buf, size_t __len)
                               ^~~~~~
/usr/include/stdlib.h:919:36: error: 'size_t' has not been declared
 extern int mblen (const char *__s, size_t __n) __THROW;
                                    ^~~~~~
/usr/include/stdlib.h:923:34: error: 'size_t' has not been declared
      const char *__restrict __s, size_t __n) __THROW;
                                  ^~~~~~
/usr/include/stdlib.h:930:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t mbstowcs (wchar_t *__restrict  __pwcs,
        ^~~~~~
        __size_t
/usr/include/stdlib.h:933:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t wcstombs (char *__restrict __s,
        ^~~~~~
        __size_t
/usr/include/stdlib.h:995:46: error: 'size_t' has not been declared
 extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
                                              ^~~~~~
In file included from /usr/include/stdlib.h:1020:0,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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
         size_t __resolvedlen) __THROW __wur;
         ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 extern char *__REDIRECT_NTH (__realpath_chk_warn,
              ^
In file included from /usr/include/stdlib.h:1020:0,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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
   if (__bos (__resolved) != (size_t) -1)
                              ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:39:30: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/stdlib.h:1020:0,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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
 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
        size_t __nreal) __THROW __nonnull ((2));
        ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 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
 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
 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
 __NTH (ptsname_r (int __fd, char *__buf, size_t __buflen))
 ^
In file included from /usr/include/stdlib.h:1020:0,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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
   if (__bos (__buf) != (size_t) -1)
                         ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:66:25: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/stdlib.h:1020:0,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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
 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
   if (__bos (__s) != (size_t) -1 && __STDLIB_MB_LEN_MAX > __bos (__s))
                       ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib.h:92:23: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/stdlib.h:1020:0,
                 from /usr/include/c++/7/bits/std_abs.h:38,
                 from /usr/include/c++/7/cmath:47,
                 from /usr/include/c++/7/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; did you mean '__size_t'?
 extern size_t __mbstowcs_chk (wchar_t *__restrict __dst,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/stdlib.h:101:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __REDIRECT_NTH (__mbstowcs_alias,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/stdlib.h:105:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __REDIRECT_NTH (__mbstowcs_chk_warn,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/stdlib.h:112:20: error: 'size_t' does not name a type; did you mean '__size_t'?
 __fortify_function size_t
                    ^~~~~~
                    __size_t
/usr/include/x86_64-linux-gnu/bits/stdlib.h:130:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __wcstombs_chk (char *__restrict __dst,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/stdlib.h:133:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __REDIRECT_NTH (__wcstombs_alias,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/stdlib.h:137:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __REDIRECT_NTH (__wcstombs_chk_warn,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/stdlib.h:143:20: error: 'size_t' does not name a type; did you mean '__size_t'?
 __fortify_function size_t
                    ^~~~~~
                    __size_t
In file included from /usr/include/c++/7/stdlib.h:36:0,
                 from foo.cc:4:
/usr/include/c++/7/cstdlib:154:11: error: '::mbstowcs' has not been declared
   using ::mbstowcs;
           ^~~~~~~~
/usr/include/c++/7/cstdlib:171:11: error: '::wcstombs' has not been declared
   using ::wcstombs;
           ^~~~~~~~
In file included from foo.cc:4:0:
/usr/include/c++/7/stdlib.h:68:12: error: 'std::mbstowcs' has not been declared
 using std::mbstowcs;
            ^~~~~~~~
/usr/include/c++/7/stdlib.h:80:12: error: 'std::wcstombs' has not been declared
 using std::wcstombs;
            ^~~~~~~~
In file included from foo.cc:5:0:
/usr/include/string.h:43:8: error: 'size_t' has not been declared
        size_t __n) __THROW __nonnull ((1, 2));
        ^~~~~~
/usr/include/string.h:46:56: error: 'size_t' has not been declared
 extern void *memmove (void *__dest, const void *__src, size_t __n)
                                                        ^~~~~~
/usr/include/string.h:54:18: error: 'size_t' has not been declared
         int __c, size_t __n)
                  ^~~~~~
/usr/include/string.h:60:42: error: 'size_t' has not been declared
 extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
                                          ^~~~~~
/usr/include/string.h:63:56: error: 'size_t' has not been declared
 extern int memcmp (const void *__s1, const void *__s2, size_t __n)
                                                        ^~~~~~
/usr/include/string.h:70:42: error: 'size_t' has not been declared
 extern void *memchr (void *__s, int __c, size_t __n)
                                          ^~~~~~
/usr/include/string.h:72:54: error: 'size_t' has not been declared
 extern const void *memchr (const void *__s, int __c, size_t __n)
                                                      ^~~~~~
/usr/include/string.h:77:29: error: 'size_t' has not been declared
 memchr (void *__s, int __c, size_t __n) __THROW
                             ^~~~~~
/usr/include/string.h:83:35: error: 'size_t' has not been declared
 memchr (const void *__s, int __c, size_t __n) __THROW
                                   ^~~~~~
/usr/include/string.h:109:49: error: 'size_t' has not been declared
 extern "C++" void *memrchr (void *__s, int __c, size_t __n)
                                                 ^~~~~~
/usr/include/string.h:111:61: error: 'size_t' has not been declared
 extern "C++" const void *memrchr (const void *__s, int __c, size_t __n)
                                                             ^~~~~~
/usr/include/string.h:125:39: error: 'size_t' has not been declared
         const char *__restrict __src, size_t __n)
                                       ^~~~~~
/usr/include/string.h:133:9: error: 'size_t' has not been declared
         size_t __n) __THROW __nonnull ((1, 2));
         ^~~~~~
/usr/include/string.h:139:57: error: 'size_t' has not been declared
 extern int strncmp (const char *__s1, const char *__s2, size_t __n)
                                                         ^~~~~~
/usr/include/string.h:146:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t strxfrm (char *__restrict __dest,
        ^~~~~~
        __size_t
/usr/include/string.h:159:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,
        ^~~~~~
        __size_t
/usr/include/string.h:174:45: error: 'size_t' has not been declared
 extern char *strndup (const char *__string, size_t __n)
                                             ^~~~~~
/usr/include/string.h:272:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t strcspn (const char *__s, const char *__reject)
        ^~~~~~
        __size_t
/usr/include/string.h:276:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t strspn (const char *__s, const char *__accept)
        ^~~~~~
        __size_t
/usr/include/string.h:368:46: error: 'size_t' has not been declared
 extern void *memmem (const void *__haystack, size_t __haystacklen,
                                              ^~~~~~
/usr/include/string.h:369:30: error: 'size_t' has not been declared
        const void *__needle, size_t __needlelen)
                              ^~~~~~
/usr/include/string.h:375:34: error: 'size_t' has not been declared
    const void *__restrict __src, size_t __n)
                                  ^~~~~~
/usr/include/string.h:378:39: error: 'size_t' has not been declared
         const void *__restrict __src, size_t __n)
                                       ^~~~~~
/usr/include/string.h:384:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t strlen (const char *__s)
        ^~~~~~
        __size_t
/usr/include/string.h:390:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t strnlen (const char *__string, size_t __maxlen)
        ^~~~~~
        __size_t
/usr/include/string.h:420:53: error: 'size_t' has not been declared
 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
                                                     ^~~~~~
In file included from /usr/include/string.h:431:0,
                 from foo.cc:5:
/usr/include/strings.h:34:54: error: 'size_t' has not been declared
 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
 extern void bcopy (const void *__src, void *__dest, size_t __n)
                                                     ^~~~~~
/usr/include/strings.h:42:31: error: 'size_t' has not been declared
 extern void bzero (void *__s, size_t __n) __THROW __nonnull ((1));
                               ^~~~~~
/usr/include/strings.h:120:61: error: 'size_t' has not been declared
 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
      size_t __n, locale_t __loc)
      ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 __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
 __NTH (bzero (void *__dest, size_t __len))
 ^
In file included from foo.cc:5:0:
/usr/include/string.h:435:40: error: 'size_t' has not been declared
 extern void explicit_bzero (void *__s, size_t __n) __THROW __nonnull ((1));
                                        ^~~~~~
/usr/include/string.h:457:34: error: 'size_t' has not been declared
    const char *__restrict __src, size_t __n)
                                  ^~~~~~
/usr/include/string.h:460:39: error: 'size_t' has not been declared
         const char *__restrict __src, size_t __n)
                                       ^~~~~~
/usr/include/string.h:473:34: error: 'size_t' has not been declared
 extern void *memfrob (void *__s, size_t __n) __THROW __nonnull ((1));
                                  ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 __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
 __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
 __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
 __NTH (memset (void *__dest, int __ch, size_t __len))
 ^
In file included from /usr/include/string.h:494:0,
                 from foo.cc:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:77:42: error: 'size_t' has not been declared
 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
 void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen)
                                                        ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 __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
 __NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
 ^
In file included from /usr/include/string.h:494:0,
                 from foo.cc:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:110:62: error: 'size_t' has not been declared
 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
        size_t __destlen) __THROW;
        ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 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
 __NTH (stpncpy (char *__dest, const char *__src, size_t __n))
 ^
In file included from /usr/include/string.h:494:0,
                 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
   if (__bos (__dest) != (size_t) -1
                          ^~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:118:26: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 __NTH (strncat (char *__restrict __dest, const char *__restrict __src,
 ^
In file included from /usr/include/wchar.h:42:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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; did you mean 'setstate_r'?
 typedef __mbstate_t mbstate_t;
         ^~~~~~~~~~~
         setstate_r
In file included from /usr/include/c++/7/cwchar:44:0,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/string:40,
                 from foo.cc:6:
/usr/include/wchar.h:93:38: error: 'size_t' has not been declared
     const wchar_t *__restrict __src, size_t __n)
                                      ^~~~~~
/usr/include/wchar.h:102:38: error: 'size_t' has not been declared
     const wchar_t *__restrict __src, size_t __n)
                                      ^~~~~~
/usr/include/wchar.h:109:63: error: 'size_t' has not been declared
 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
    size_t __n) __THROW;
    ^~~~~~
/usr/include/wchar.h:126:6: error: 'size_t' has not been declared
      size_t __n, locale_t __loc) __THROW;
      ^~~~~~
/usr/include/wchar.h:135:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t wcsxfrm (wchar_t *__restrict __s1,
        ^~~~~~
        __size_t
/usr/include/wchar.h:150:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2,
        ^~~~~~
        __size_t
/usr/include/wchar.h:187:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject)
        ^~~~~~
        __size_t
/usr/include/wchar.h:191:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept)
        ^~~~~~
        __size_t
/usr/include/wchar.h:222:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__;
        ^~~~~~
        __size_t
/usr/include/wchar.h:240:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen)
        ^~~~~~
        __size_t
/usr/include/wchar.h:247:59: error: 'size_t' has not been declared
 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
          size_t __n)
          ^~~~~~
/usr/include/wchar.h:258:63: error: 'size_t' has not been declared
 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
     const wchar_t *__restrict __s2, size_t __n) __THROW;
                                     ^~~~~~
/usr/include/wchar.h:267:63: error: 'size_t' has not been declared
 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
 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
      const wchar_t *__restrict __s2, size_t __n)
                                      ^~~~~~
/usr/include/wchar.h:292:27: error: 'mbstate_t' does not name a type; did you mean 'setstate_r'?
 extern int mbsinit (const mbstate_t *__ps) __THROW __attribute_pure__;
                           ^~~~~~~~~
                           setstate_r
/usr/include/wchar.h:296:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t mbrtowc (wchar_t *__restrict __pwc,
        ^~~~~~
        __size_t
/usr/include/wchar.h:301:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
        ^~~~~~
        __size_t
/usr/include/wchar.h:305:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __mbrlen (const char *__restrict __s, size_t __n,
        ^~~~~~
        __size_t
/usr/include/wchar.h:307:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t mbrlen (const char *__restrict __s, size_t __n,
        ^~~~~~
        __size_t
/usr/include/wchar.h:328:17: error: 'size_t' does not name a type; did you mean '__size_t'?
 __extern_inline size_t
                 ^~~~~~
                 __size_t
/usr/include/wchar.h:337:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t mbsrtowcs (wchar_t *__restrict __dst,
        ^~~~~~
        __size_t
/usr/include/wchar.h:343:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t wcsrtombs (char *__restrict __dst,
        ^~~~~~
        __size_t
/usr/include/wchar.h:351:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
        ^~~~~~
        __size_t
/usr/include/wchar.h:357:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t wcsnrtombs (char *__restrict __dst,
        ^~~~~~
        __size_t
/usr/include/wchar.h:371:42: error: 'size_t' has not been declared
 extern int wcswidth (const wchar_t *__s, size_t __n) __THROW;
                                          ^~~~~~
/usr/include/wchar.h:557:38: error: 'size_t' has not been declared
     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'?
 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
 extern int fwide (__FILE *__fp, int __mode) __THROW;
                   ^~~~~~
/usr/include/wchar.h:573:19: note: suggested alternative: 'EMFILE'
 extern int fwide (__FILE *__fp, int __mode) __THROW;
                   ^~~~~~
                   EMFILE
/usr/include/wchar.h:573:27: error: '__fp' was not declared in this scope
 extern int fwide (__FILE *__fp, int __mode) __THROW;
                           ^~~~
/usr/include/wchar.h:573:27: note: suggested alternative: '__fma'
 extern int fwide (__FILE *__fp, int __mode) __THROW;
                           ^~~~
                           __fma
/usr/include/wchar.h:573:33: error: expected primary-expression before 'int'
 extern int fwide (__FILE *__fp, int __mode) __THROW;
                                 ^~~
/usr/include/wchar.h:573:43: error: expression list treated as compound expression in initializer [-fpermissive]
 extern int fwide (__FILE *__fp, int __mode) __THROW;
                                           ^
/usr/include/wchar.h:580:22: error: '__FILE' was not declared in this scope
 extern int fwprintf (__FILE *__restrict __stream,
                      ^~~~~~
/usr/include/wchar.h:580:22: note: suggested alternative: 'EMFILE'
 extern int fwprintf (__FILE *__restrict __stream,
                      ^~~~~~
                      EMFILE
/usr/include/wchar.h:580:30: error: expected primary-expression before '__restrict'
 extern int fwprintf (__FILE *__restrict __stream,
                              ^~~~~~~~~~
/usr/include/wchar.h:581:8: error: expected primary-expression before 'const'
        const wchar_t *__restrict __format, ...)
        ^~~~~
/usr/include/wchar.h:581:44: error: expected primary-expression before '...' token
        const wchar_t *__restrict __format, ...)
                                            ^~~
/usr/include/wchar.h:581:47: error: expression list treated as compound expression in initializer [-fpermissive]
        const wchar_t *__restrict __format, ...)
                                               ^
/usr/include/wchar.h:590:47: error: 'size_t' has not been declared
 extern int swprintf (wchar_t *__restrict __s, size_t __n,
                                               ^~~~~~
/usr/include/wchar.h:598:23: error: '__FILE' was not declared in this scope
 extern int vfwprintf (__FILE *__restrict __s,
                       ^~~~~~
/usr/include/wchar.h:598:23: note: suggested alternative: 'EMFILE'
 extern int vfwprintf (__FILE *__restrict __s,
                       ^~~~~~
                       EMFILE
/usr/include/wchar.h:598:31: error: expected primary-expression before '__restrict'
 extern int vfwprintf (__FILE *__restrict __s,
                               ^~~~~~~~~~
/usr/include/wchar.h:599:9: error: expected primary-expression before 'const'
         const wchar_t *__restrict __format,
         ^~~~~
/usr/include/wchar.h:600:9: error: '__gnuc_va_list' was not declared in this scope
         __gnuc_va_list __arg)
         ^~~~~~~~~~~~~~
/usr/include/wchar.h:600:9: note: suggested alternative: '_G_va_list'
         __gnuc_va_list __arg)
         ^~~~~~~~~~~~~~
         _G_va_list
/usr/include/wchar.h:600:29: error: expression list treated as compound expression in initializer [-fpermissive]
         __gnuc_va_list __arg)
                             ^
/usr/include/wchar.h:607:8: error: '__gnuc_va_list' has not been declared
        __gnuc_va_list __arg)
        ^~~~~~~~~~~~~~
/usr/include/wchar.h:611:48: error: 'size_t' has not been declared
 extern int vswprintf (wchar_t *__restrict __s, size_t __n,
                                                ^~~~~~
/usr/include/wchar.h:613:9: error: '__gnuc_va_list' has not been declared
         __gnuc_va_list __arg)
         ^~~~~~~~~~~~~~
/usr/include/wchar.h:621:21: error: '__FILE' was not declared in this scope
 extern int fwscanf (__FILE *__restrict __stream,
                     ^~~~~~
/usr/include/wchar.h:621:21: note: suggested alternative: 'EMFILE'
 extern int fwscanf (__FILE *__restrict __stream,
                     ^~~~~~
                     EMFILE
/usr/include/wchar.h:621:29: error: expected primary-expression before '__restrict'
 extern int fwscanf (__FILE *__restrict __stream,
                             ^~~~~~~~~~
/usr/include/wchar.h:622:7: error: expected primary-expression before 'const'
       const wchar_t *__restrict __format, ...)
       ^~~~~
/usr/include/wchar.h:622:43: error: expected primary-expression before '...' token
       const wchar_t *__restrict __format, ...)
                                           ^~~
/usr/include/wchar.h:622:46: error: expression list treated as compound expression in initializer [-fpermissive]
       const wchar_t *__restrict __format, ...)
                                              ^
/usr/include/wchar.h:673:22: error: '__FILE' was not declared in this scope
 extern int vfwscanf (__FILE *__restrict __s,
                      ^~~~~~
/usr/include/wchar.h:673:22: note: suggested alternative: 'EMFILE'
 extern int vfwscanf (__FILE *__restrict __s,
                      ^~~~~~
                      EMFILE
/usr/include/wchar.h:673:30: error: expected primary-expression before '__restrict'
 extern int vfwscanf (__FILE *__restrict __s,
                              ^~~~~~~~~~
/usr/include/wchar.h:674:8: error: expected primary-expression before 'const'
        const wchar_t *__restrict __format,
        ^~~~~
/usr/include/wchar.h:675:8: error: '__gnuc_va_list' was not declared in this scope
        __gnuc_va_list __arg)
        ^~~~~~~~~~~~~~
/usr/include/wchar.h:675:8: note: suggested alternative: '_G_va_list'
        __gnuc_va_list __arg)
        ^~~~~~~~~~~~~~
        _G_va_list
/usr/include/wchar.h:675:28: error: expression list treated as compound expression in initializer [-fpermissive]
        __gnuc_va_list __arg)
                            ^
/usr/include/wchar.h:682:7: error: '__gnuc_va_list' has not been declared
       __gnuc_va_list __arg)
       ^~~~~~~~~~~~~~
/usr/include/wchar.h:687:8: error: '__gnuc_va_list' has not been declared
        __gnuc_va_list __arg)
        ^~~~~~~~~~~~~~
/usr/include/wchar.h:727:23: error: '__FILE' was not declared in this scope
 extern wint_t fgetwc (__FILE *__stream);
                       ^~~~~~
/usr/include/wchar.h:727:23: note: suggested alternative: 'EMFILE'
 extern wint_t fgetwc (__FILE *__stream);
                       ^~~~~~
                       EMFILE
/usr/include/wchar.h:727:31: error: '__stream' was not declared in this scope
 extern wint_t fgetwc (__FILE *__stream);
                               ^~~~~~~~
/usr/include/wchar.h:727:31: note: suggested alternative: '__drem'
 extern wint_t fgetwc (__FILE *__stream);
                               ^~~~~~~~
                               __drem
/usr/include/wchar.h:728:22: error: '__FILE' was not declared in this scope
 extern wint_t getwc (__FILE *__stream);
                      ^~~~~~
/usr/include/wchar.h:728:22: note: suggested alternative: 'EMFILE'
 extern wint_t getwc (__FILE *__stream);
                      ^~~~~~
                      EMFILE
/usr/include/wchar.h:728:30: error: '__stream' was not declared in this scope
 extern wint_t getwc (__FILE *__stream);
                              ^~~~~~~~
/usr/include/wchar.h:728:30: note: suggested alternative: '__drem'
 extern wint_t getwc (__FILE *__stream);
                              ^~~~~~~~
                              __drem
/usr/include/wchar.h:741:37: error: '__FILE' has not been declared
 extern wint_t fputwc (wchar_t __wc, __FILE *__stream);
                                     ^~~~~~
/usr/include/wchar.h:742:36: error: '__FILE' has not been declared
 extern wint_t putwc (wchar_t __wc, __FILE *__stream);
                                    ^~~~~~
/usr/include/wchar.h:757:4: error: '__FILE' has not been declared
    __FILE *__restrict __stream);
    ^~~~~~
/usr/include/wchar.h:764:6: error: '__FILE' has not been declared
      __FILE *__restrict __stream);
      ^~~~~~
/usr/include/wchar.h:771:37: error: '__FILE' has not been declared
 extern wint_t ungetwc (wint_t __wc, __FILE *__stream);
                                     ^~~~~~
/usr/include/wchar.h:782:31: error: '__FILE' was not declared in this scope
 extern wint_t getwc_unlocked (__FILE *__stream);
                               ^~~~~~
/usr/include/wchar.h:782:31: note: suggested alternative: 'EMFILE'
 extern wint_t getwc_unlocked (__FILE *__stream);
                               ^~~~~~
                               EMFILE
/usr/include/wchar.h:782:39: error: '__stream' was not declared in this scope
 extern wint_t getwc_unlocked (__FILE *__stream);
                                       ^~~~~~~~
/usr/include/wchar.h:782:39: note: suggested alternative: '__drem'
 extern wint_t getwc_unlocked (__FILE *__stream);
                                       ^~~~~~~~
                                       __drem
/usr/include/wchar.h:791:32: error: '__FILE' was not declared in this scope
 extern wint_t fgetwc_unlocked (__FILE *__stream);
                                ^~~~~~
/usr/include/wchar.h:791:32: note: suggested alternative: 'EMFILE'
 extern wint_t fgetwc_unlocked (__FILE *__stream);
                                ^~~~~~
                                EMFILE
/usr/include/wchar.h:791:40: error: '__stream' was not declared in this scope
 extern wint_t fgetwc_unlocked (__FILE *__stream);
                                        ^~~~~~~~
/usr/include/wchar.h:791:40: note: suggested alternative: '__drem'
 extern wint_t fgetwc_unlocked (__FILE *__stream);
                                        ^~~~~~~~
                                        __drem
/usr/include/wchar.h:799:46: error: '__FILE' has not been declared
 extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream);
                                              ^~~~~~
/usr/include/wchar.h:808:45: error: '__FILE' has not been declared
 extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream);
                                             ^~~~~~
/usr/include/wchar.h:819:6: error: '__FILE' has not been declared
      __FILE *__restrict __stream);
      ^~~~~~
/usr/include/wchar.h:828:8: error: '__FILE' has not been declared
        __FILE *__restrict __stream);
        ^~~~~~
/usr/include/wchar.h:835:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
        ^~~~~~
        __size_t
/usr/include/wchar.h:842:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize,
        ^~~~~~
        __size_t
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/string:40,
                 from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:25:43: error: 'size_t' has not been declared
           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
           size_t __ns1) __THROW;
           ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 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
 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
 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
 __NTH (wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2,
 ^
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
   if (__bos0 (__s1) != (size_t) -1)
                         ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:42:25: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
     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
     size_t __n, size_t __ns1) __THROW;
                 ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 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
 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
 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
 __NTH (wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n))
 ^
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
   if (__bos0 (__s1) != (size_t) -1)
                         ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:70:25: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
     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
     size_t __ns1) __THROW;
     ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 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
 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
 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
 __NTH (wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2,
 ^
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
   if (__bos0 (__s1) != (size_t) -1)
                         ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:103:25: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
 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
           size_t __ns) __THROW;
           ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 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
 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
 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
 __NTH (wmemset (wchar_t *__s, wchar_t __c, size_t __n))
 ^
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
   if (__bos0 (__s) != (size_t) -1)
                        ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:131:24: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
          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
   if (__bos (__dest) != (size_t) -1)
                          ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:154:26: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
          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
   if (__bos (__dest) != (size_t) -1)
                          ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:170:26: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
           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
           size_t __destlen) __THROW;
           ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 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
 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
 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
 __NTH (wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src,
 ^
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
   if (__bos (__dest) != (size_t) -1)
                          ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:194:26: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
           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
           size_t __destlen) __THROW;
           ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 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
 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
 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
 __NTH (wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src,
 ^
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
   if (__bos (__dest) != (size_t) -1)
                          ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:225:26: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
          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
   if (__bos (__dest) != (size_t) -1)
                          ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:248:26: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
           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
           size_t __n, size_t __destlen) __THROW;
                       ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 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
 __NTH (wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src,
 ^
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
   if (__bos (__dest) != (size_t) -1)
                          ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:266:26: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
 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
       int __flag, size_t __s_len,
                   ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 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
 __NTH (swprintf (wchar_t *__restrict __s, size_t __n,
 ^
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
   if (__bos (__s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
                       ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:288:23: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
 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
        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
        __gnuc_va_list __arg)
        ^~~~~~~~~~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 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
 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
 __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
 __NTH (vswprintf (wchar_t *__restrict __s, size_t __n,
 ^
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
   if (__bos (__s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
                       ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:318:23: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
 extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag,
                            ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:327:28: note: suggested alternative: 'EMFILE'
 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'
 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'
 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'
       const wchar_t *__restrict __format, ...);
       ^~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:328:43: error: expected primary-expression before '...' token
       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]
       const wchar_t *__restrict __format, ...);
                                              ^
/usr/include/x86_64-linux-gnu/bits/wchar2.h:331:29: error: '__FILE' was not declared in this scope
 extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag,
                             ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:331:29: note: suggested alternative: 'EMFILE'
 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'
 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'
 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'
        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
        __gnuc_va_list __ap);
        ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:333:8: note: suggested alternative: '_G_va_list'
        __gnuc_va_list __ap);
        ^~~~~~~~~~~~~~
        _G_va_list
/usr/include/x86_64-linux-gnu/bits/wchar2.h:333:27: error: expression list treated as compound expression in initializer [-fpermissive]
        __gnuc_va_list __ap);
                           ^
/usr/include/x86_64-linux-gnu/bits/wchar2.h:335:7: error: '__gnuc_va_list' has not been declared
       __gnuc_va_list __ap);
       ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:345:11: error: redefinition of 'int fwprintf'
 fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...)
           ^~~~~~
In file included from /usr/include/c++/7/cwchar:44:0,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/string:40,
                 from foo.cc:6:
/usr/include/wchar.h:580:12: note: 'int fwprintf' previously defined here
 extern int fwprintf (__FILE *__restrict __stream,
            ^~~~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
 fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...)
           ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:345:11: note: suggested alternative: 'EMFILE'
 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'
 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'
 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
 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
 vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap)
                                            ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:364:12: error: redefinition of 'int vfwprintf'
 vfwprintf (__FILE *__restrict __stream,
            ^~~~~~
In file included from /usr/include/c++/7/cwchar:44:0,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/string:40,
                 from foo.cc:6:
/usr/include/wchar.h:598:12: note: 'int vfwprintf' previously defined here
 extern int vfwprintf (__FILE *__restrict __s,
            ^~~~~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/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
 vfwprintf (__FILE *__restrict __stream,
            ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:364:12: note: suggested alternative: 'EMFILE'
 vfwprintf (__FILE *__restrict __stream,
            ^~~~~~
            EMFILE
/usr/include/x86_64-linux-gnu/bits/wchar2.h:364:20: error: expected primary-expression before '__restrict'
 vfwprintf (__FILE *__restrict __stream,
                    ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:365:5: error: expected primary-expression before 'const'
     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
     const wchar_t *__restrict __fmt, __gnuc_va_list __ap)
                                      ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:365:38: note: suggested alternative: '_G_va_list'
     const wchar_t *__restrict __fmt, __gnuc_va_list __ap)
                                      ^~~~~~~~~~~~~~
                                      _G_va_list
/usr/include/x86_64-linux-gnu/bits/wchar2.h:372:56: error: 'size_t' has not been declared
 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
          __FILE *__restrict __stream) __wur;
          ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 extern wchar_t *__REDIRECT (__fgetws_alias,
                 ^
/usr/include/x86_64-linux-gnu/bits/wchar2.h:377:17: error: 'size_t' has not been declared
 extern wchar_t *__REDIRECT (__fgetws_chk_warn,
                 ^
/usr/include/x86_64-linux-gnu/bits/wchar2.h:377:17: error: '__FILE' has not been declared
 extern wchar_t *__REDIRECT (__fgetws_chk_warn,
                 ^
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/string:40,
                 from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:384:43: error: '__FILE' has not been declared
 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
   if (__bos (__s) != (size_t) -1)
                       ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:386:23: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/string:40,
                 from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:392:20: error: expected ')' before '__n'
       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
 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
            int __n, __FILE *__restrict __stream)
                     ^~~~~~
In file included from /usr/include/features.h:424:0,
                 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
 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
 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
 extern wchar_t *__REDIRECT (__fgetws_unlocked_chk_warn,
                 ^
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/string:40,
                 from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:415:52: error: '__FILE' has not been declared
 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
   if (__bos (__s) != (size_t) -1)
                       ^~~~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:417:23: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/wchar.h:850:0,
                 from /usr/include/c++/7/cwchar:44,
                 from /usr/include/c++/7/bits/postypes.h:40,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/string:40,
                 from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:423:20: error: expected ')' before '__n'
       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; did you mean '__size_t'?
 extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:435:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __REDIRECT_NTH (__wcrtomb_alias,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:439:26: error: 'size_t' does not name a type; did you mean '__size_t'?
 __fortify_function __wur size_t
                          ^~~~~~
                          __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:456:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:460:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __REDIRECT_NTH (__mbsrtowcs_alias,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:465:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __REDIRECT_NTH (__mbsrtowcs_chk_warn,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:473:20: error: 'size_t' does not name a type; did you mean '__size_t'?
 __fortify_function size_t
                    ^~~~~~
                    __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:491:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __wcsrtombs_chk (char *__restrict __dst,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:495:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __REDIRECT_NTH (__wcsrtombs_alias,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:500:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __REDIRECT_NTH (__wcsrtombs_chk_warn,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:507:20: error: 'size_t' does not name a type; did you mean '__size_t'?
 __fortify_function size_t
                    ^~~~~~
                    __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:524:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:528:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __REDIRECT_NTH (__mbsnrtowcs_alias,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:533:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __REDIRECT_NTH (__mbsnrtowcs_chk_warn,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:541:20: error: 'size_t' does not name a type; did you mean '__size_t'?
 __fortify_function size_t
                    ^~~~~~
                    __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:559:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __wcsnrtombs_chk (char *__restrict __dst,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:564:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __REDIRECT_NTH (__wcsnrtombs_alias,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:569:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t __REDIRECT_NTH (__wcsnrtombs_chk_warn,
        ^~~~~~
        __size_t
/usr/include/x86_64-linux-gnu/bits/wchar2.h:577:20: error: 'size_t' does not name a type; did you mean '__size_t'?
 __fortify_function size_t
                    ^~~~~~
                    __size_t
In file included from /usr/include/c++/7/bits/postypes.h:40:0,
                 from /usr/include/c++/7/bits/char_traits.h:40,
                 from /usr/include/c++/7/string:40,
                 from foo.cc:6:
/usr/include/c++/7/cwchar:64:11: error: '::mbstate_t' has not been declared
   using ::mbstate_t;
           ^~~~~~~~~
/usr/include/c++/7/cwchar:151:11: error: '::mbrlen' has not been declared
   using ::mbrlen;
           ^~~~~~
/usr/include/c++/7/cwchar:152:11: error: '::mbrtowc' has not been declared
   using ::mbrtowc;
           ^~~~~~~
/usr/include/c++/7/cwchar:154:11: error: '::mbsrtowcs' has not been declared
   using ::mbsrtowcs;
           ^~~~~~~~~
/usr/include/c++/7/cwchar:176:11: error: '::wcrtomb' has not been declared
   using ::wcrtomb;
           ^~~~~~~
/usr/include/c++/7/cwchar:181:11: error: '::wcscspn' has not been declared
   using ::wcscspn;
           ^~~~~~~
/usr/include/c++/7/cwchar:182:11: error: '::wcsftime' has not been declared
   using ::wcsftime;
           ^~~~~~~~
/usr/include/c++/7/cwchar:183:11: error: '::wcslen' has not been declared
   using ::wcslen;
           ^~~~~~
/usr/include/c++/7/cwchar:187:11: error: '::wcsrtombs' has not been declared
   using ::wcsrtombs;
           ^~~~~~~~~
/usr/include/c++/7/cwchar:188:11: error: '::wcsspn' has not been declared
   using ::wcsspn;
           ^~~~~~
/usr/include/c++/7/cwchar:196:11: error: '::wcsxfrm' has not been declared
   using ::wcsxfrm;
           ^~~~~~~
In file included from /usr/include/c++/7/bits/char_traits.h:40:0,
                 from /usr/include/c++/7/string:40,
                 from foo.cc:6:
/usr/include/c++/7/bits/postypes.h:228:16: error: 'mbstate_t' was not declared in this scope
   typedef fpos<mbstate_t> streampos;
                ^~~~~~~~~
/usr/include/c++/7/bits/postypes.h:228:16: note: suggested alternative: 'setstate_r'
   typedef fpos<mbstate_t> streampos;
                ^~~~~~~~~
                setstate_r
/usr/include/c++/7/bits/postypes.h:228:25: error: template argument 1 is invalid
   typedef fpos<mbstate_t> streampos;
                         ^
/usr/include/c++/7/bits/postypes.h:230:16: error: 'mbstate_t' was not declared in this scope
   typedef fpos<mbstate_t> wstreampos;
                ^~~~~~~~~
/usr/include/c++/7/bits/postypes.h:230:16: note: suggested alternative: 'setstate_r'
   typedef fpos<mbstate_t> wstreampos;
                ^~~~~~~~~
                setstate_r
/usr/include/c++/7/bits/postypes.h:230:25: error: template argument 1 is invalid
   typedef fpos<mbstate_t> wstreampos;
                         ^
/usr/include/c++/7/bits/postypes.h:234:16: error: 'mbstate_t' was not declared in this scope
   typedef fpos<mbstate_t> u16streampos;
                ^~~~~~~~~
/usr/include/c++/7/bits/postypes.h:234:16: note: suggested alternative: 'setstate_r'
   typedef fpos<mbstate_t> u16streampos;
                ^~~~~~~~~
                setstate_r
/usr/include/c++/7/bits/postypes.h:234:25: error: template argument 1 is invalid
   typedef fpos<mbstate_t> u16streampos;
                         ^
/usr/include/c++/7/bits/postypes.h:236:16: error: 'mbstate_t' was not declared in this scope
   typedef fpos<mbstate_t> u32streampos;
                ^~~~~~~~~
/usr/include/c++/7/bits/postypes.h:236:16: note: suggested alternative: 'setstate_r'
   typedef fpos<mbstate_t> u32streampos;
                ^~~~~~~~~
                setstate_r
/usr/include/c++/7/bits/postypes.h:236:25: error: template argument 1 is invalid
   typedef fpos<mbstate_t> u32streampos;
                         ^
In file included from /usr/include/c++/7/string:40:0,
                 from foo.cc:6:
/usr/include/c++/7/bits/char_traits.h:67:20: error: 'mbstate_t' in namespace 'std' does not name a type
       typedef std::mbstate_t  state_type;
                    ^~~~~~~~~
/usr/include/c++/7/bits/char_traits.h:281:15: error: 'mbstate_t' does not name a type; did you mean 'setstate_r'?
       typedef mbstate_t         state_type;
               ^~~~~~~~~
               setstate_r
/usr/include/c++/7/bits/char_traits.h:394:15: error: 'mbstate_t' does not name a type; did you mean 'setstate_r'?
       typedef mbstate_t         state_type;
               ^~~~~~~~~
               setstate_r
/usr/include/c++/7/bits/char_traits.h: In static member function 'static std::size_t std::char_traits<wchar_t>::length(const char_type*)':
/usr/include/c++/7/bits/char_traits.h:431:11: error: 'wcslen' was not declared in this scope
    return wcslen(__s);
           ^~~~~~
/usr/include/c++/7/bits/char_traits.h:431:11: note: suggested alternative: 'scalbn'
    return wcslen(__s);
           ^~~~~~
           scalbn
In file included from /usr/include/stdint.h:37:0,
                 from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9,
                 from /usr/include/c++/7/cstdint:41,
                 from /usr/include/c++/7/bits/char_traits.h:501,
                 from /usr/include/c++/7/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 'u_int8_t'?
 typedef __uint8_t uint8_t;
         ^~~~~~~~~
         u_int8_t
/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h:25:9: error: '__uint16_t' does not name a type; did you mean 'u_int16_t'?
 typedef __uint16_t uint16_t;
         ^~~~~~~~~~
         u_int16_t
/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h:26:9: error: '__uint32_t' does not name a type; did you mean 'u_int32_t'?
 typedef __uint32_t uint32_t;
         ^~~~~~~~~~
         u_int32_t
/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h:27:9: error: '__uint64_t' does not name a type; did you mean 'u_int64_t'?
 typedef __uint64_t uint64_t;
         ^~~~~~~~~~
         u_int64_t
In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9:0,
                 from /usr/include/c++/7/cstdint:41,
                 from /usr/include/c++/7/bits/char_traits.h:501,
                 from /usr/include/c++/7/string:40,
                 from foo.cc:6:
/usr/include/stdint.h:111:9: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
 typedef __intmax_t  intmax_t;
         ^~~~~~~~~~
         __int128_t
/usr/include/stdint.h:112:9: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
 typedef __uintmax_t  uintmax_t;
         ^~~~~~~~~~~
         __uint128_t
In file included from /usr/include/c++/7/bits/char_traits.h:501:0,
                 from /usr/include/c++/7/string:40,
                 from foo.cc:6:
/usr/include/c++/7/cstdint:48:11: error: '::int8_t' has not been declared
   using ::int8_t;
           ^~~~~~
/usr/include/c++/7/cstdint:49:11: error: '::int16_t' has not been declared
   using ::int16_t;
           ^~~~~~~
/usr/include/c++/7/cstdint:50:11: error: '::int32_t' has not been declared
   using ::int32_t;
           ^~~~~~~
/usr/include/c++/7/cstdint:51:11: error: '::int64_t' has not been declared
   using ::int64_t;
           ^~~~~~~
/usr/include/c++/7/cstdint:63:11: error: '::intmax_t' has not been declared
   using ::intmax_t;
           ^~~~~~~~
/usr/include/c++/7/cstdint:66:11: error: '::uint8_t' has not been declared
   using ::uint8_t;
           ^~~~~~~
/usr/include/c++/7/cstdint:67:11: error: '::uint16_t' has not been declared
   using ::uint16_t;
           ^~~~~~~~
/usr/include/c++/7/cstdint:68:11: error: '::uint32_t' has not been declared
   using ::uint32_t;
           ^~~~~~~~
/usr/include/c++/7/cstdint:69:11: error: '::uint64_t' has not been declared
   using ::uint64_t;
           ^~~~~~~~
/usr/include/c++/7/cstdint:81:11: error: '::uintmax_t' has not been declared
   using ::uintmax_t;
           ^~~~~~~~~
In file included from /usr/include/c++/7/string:40:0,
                 from foo.cc:6:
/usr/include/c++/7/bits/char_traits.h:514:15: error: 'mbstate_t' does not name a type; did you mean 'setstate_r'?
       typedef mbstate_t         state_type;
               ^~~~~~~~~
               setstate_r
/usr/include/c++/7/bits/char_traits.h:611:15: error: 'mbstate_t' does not name a type; did you mean 'setstate_r'?
       typedef mbstate_t         state_type;
               ^~~~~~~~~
               setstate_r
In file included from /usr/include/c++/7/bits/exception_ptr.h:38:0,
                 from /usr/include/c++/7/exception:142,
                 from /usr/include/c++/7/new:40,
                 from /usr/include/c++/7/ext/new_allocator.h:33,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
                 from /usr/include/c++/7/bits/allocator.h:46,
                 from /usr/include/c++/7/string:41,
                 from foo.cc:6:
/usr/include/c++/7/bits/cxxabi_init_exception.h:63:32: error: 'size_t' was not declared in this scope
       __cxa_allocate_exception(size_t) _GLIBCXX_NOTHROW;
                                ^~~~~~
/usr/include/c++/7/bits/cxxabi_init_exception.h:63:32: note: suggested alternative:
In file included from /usr/include/c++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
In file included from /usr/include/c++/7/exception:142:0,
                 from /usr/include/c++/7/new:40,
                 from /usr/include/c++/7/ext/new_allocator.h:33,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
                 from /usr/include/c++/7/bits/allocator.h:46,
                 from /usr/include/c++/7/string:41,
                 from foo.cc:6:
/usr/include/c++/7/bits/exception_ptr.h: In function 'std::__exception_ptr::exception_ptr std::make_exception_ptr(_Ex)':
/usr/include/c++/7/bits/exception_ptr.h:182:67: error: '__cxxabiv1::__cxa_allocate_exception' cannot be used as a function
       void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex));
                                                                   ^
In file included from /usr/include/c++/7/cctype:42:0,
                 from /usr/include/c++/7/bits/localefwd.h:42,
                 from /usr/include/c++/7/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 'u_int32_t'?
 extern const __int32_t **__ctype_tolower_loc (void)
              ^~~~~~~~~
              u_int32_t
/usr/include/ctype.h:83:14: error: '__int32_t' does not name a type; did you mean 'u_int32_t'?
 extern const __int32_t **__ctype_toupper_loc (void)
              ^~~~~~~~~
              u_int32_t
In file included from /usr/include/c++/7/string:43:0,
                 from foo.cc:6:
/usr/include/c++/7/bits/localefwd.h:139:40: error: 'mbstate_t' was not declared in this scope
   template<> class codecvt<char, char, mbstate_t>;
                                        ^~~~~~~~~
/usr/include/c++/7/bits/localefwd.h:139:40: note: suggested alternative: 'setstate_r'
   template<> class codecvt<char, char, mbstate_t>;
                                        ^~~~~~~~~
                                        setstate_r
/usr/include/c++/7/bits/localefwd.h:139:49: error: template argument 3 is invalid
   template<> class codecvt<char, char, mbstate_t>;
                                                 ^
/usr/include/c++/7/bits/localefwd.h:141:43: error: 'mbstate_t' was not declared in this scope
   template<> class codecvt<wchar_t, char, mbstate_t>;
                                           ^~~~~~~~~
/usr/include/c++/7/bits/localefwd.h:141:43: note: suggested alternative: 'setstate_r'
   template<> class codecvt<wchar_t, char, mbstate_t>;
                                           ^~~~~~~~~
                                           setstate_r
/usr/include/c++/7/bits/localefwd.h:141:52: error: template argument 3 is invalid
   template<> class codecvt<wchar_t, char, mbstate_t>;
                                                    ^
In file included from /usr/include/sched.h:44:0,
                 from /usr/include/pthread.h:23,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr.h:148,
                 from /usr/include/c++/7/ext/atomicity.h:35,
                 from /usr/include/c++/7/bits/basic_string.h:39,
                 from /usr/include/c++/7/string:52,
                 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
 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++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
In file included from /usr/include/sched.h:44:0,
                 from /usr/include/pthread.h:23,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr.h:148,
                 from /usr/include/c++/7/ext/atomicity.h:35,
                 from /usr/include/c++/7/bits/basic_string.h:39,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/cpu-set.h:117:48: error: expected primary-expression before 'const'
 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]
 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
 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++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
In file included from /usr/include/pthread.h:23:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr.h:148,
                 from /usr/include/c++/7/ext/atomicity.h:35,
                 from /usr/include/c++/7/bits/basic_string.h:39,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/sched.h:54:28: error: '__pid_t' was not declared in this scope
 extern int sched_setparam (__pid_t __pid, const struct sched_param *__param)
                            ^~~~~~~
/usr/include/sched.h:54:28: note: suggested alternative: '_IO_pid_t'
 extern int sched_setparam (__pid_t __pid, const struct sched_param *__param)
                            ^~~~~~~
                            _IO_pid_t
/usr/include/sched.h:54:43: error: expected primary-expression before 'const'
 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]
 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
 extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW;
                            ^~~~~~~
/usr/include/sched.h:58:28: note: suggested alternative: '_IO_pid_t'
 extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW;
                            ^~~~~~~
                            _IO_pid_t
/usr/include/sched.h:58:43: error: expected primary-expression before 'struct'
 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]
 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
 extern int sched_setscheduler (__pid_t __pid, int __policy,
                                ^~~~~~~
/usr/include/sched.h:61:32: note: suggested alternative: '_IO_pid_t'
 extern int sched_setscheduler (__pid_t __pid, int __policy,
                                ^~~~~~~
                                _IO_pid_t
/usr/include/sched.h:61:47: error: expected primary-expression before 'int'
 extern int sched_setscheduler (__pid_t __pid, int __policy,
                                               ^~~
/usr/include/sched.h:62:11: error: expected primary-expression before 'const'
           const struct sched_param *__param) __THROW;
           ^~~~~
/usr/include/sched.h:62:44: error: expression list treated as compound expression in initializer [-fpermissive]
           const struct sched_param *__param) __THROW;
                                            ^
/usr/include/sched.h:65:32: error: '__pid_t' was not declared in this scope
 extern int sched_getscheduler (__pid_t __pid) __THROW;
                                ^~~~~~~
/usr/include/sched.h:65:32: note: suggested alternative: '_IO_pid_t'
 extern int sched_getscheduler (__pid_t __pid) __THROW;
                                ^~~~~~~
                                _IO_pid_t
/usr/include/sched.h:77:35: error: '__pid_t' was not declared in this scope
 extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
                                   ^~~~~~~
/usr/include/sched.h:77:35: note: suggested alternative: '_IO_pid_t'
 extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
                                   ^~~~~~~
                                   _IO_pid_t
/usr/include/sched.h:77:50: error: expected primary-expression before 'struct'
 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]
 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
 extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
                               ^~~~~~~
/usr/include/sched.h:121:31: note: suggested alternative: '_IO_pid_t'
 extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
                               ^~~~~~~
                               _IO_pid_t
/usr/include/sched.h:121:46: error: 'size_t' was not declared in this scope
 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++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
In file included from /usr/include/pthread.h:23:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr.h:148,
                 from /usr/include/c++/7/ext/atomicity.h:35,
                 from /usr/include/c++/7/bits/basic_string.h:39,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/sched.h:122:10: error: expected primary-expression before 'const'
          const cpu_set_t *__cpuset) __THROW;
          ^~~~~
/usr/include/sched.h:122:35: error: expression list treated as compound expression in initializer [-fpermissive]
          const cpu_set_t *__cpuset) __THROW;
                                   ^
/usr/include/sched.h:125:31: error: '__pid_t' was not declared in this scope
 extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
                               ^~~~~~~
/usr/include/sched.h:125:31: note: suggested alternative: '_IO_pid_t'
 extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
                               ^~~~~~~
                               _IO_pid_t
/usr/include/sched.h:125:46: error: 'size_t' was not declared in this scope
 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++/7/cmath:41:0,
                 from /usr/include/c++/7/math.h:36,
                 from foo.cc:3:
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:231:26: note:   'std::size_t'
In file included from /usr/include/pthread.h:23:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr.h:148,
                 from /usr/include/c++/7/ext/atomicity.h:35,
                 from /usr/include/c++/7/bits/basic_string.h:39,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/sched.h:126:20: error: expected primary-expression before '*' token
          cpu_set_t *__cpuset) __THROW;
                    ^
/usr/include/sched.h:126:21: error: '__cpuset' was not declared in this scope
          cpu_set_t *__cpuset) __THROW;
                     ^~~~~~~~
/usr/include/sched.h:126:21: note: suggested alternative: '_ISpunct'
          cpu_set_t *__cpuset) __THROW;
                     ^~~~~~~~
                     _ISpunct
/usr/include/sched.h:126:29: error: expression list treated as compound expression in initializer [-fpermissive]
          cpu_set_t *__cpuset) __THROW;
                             ^
In file included from /usr/include/x86_64-linux-gnu/bits/time.h:73:0,
                 from /usr/include/time.h:33,
                 from /usr/include/pthread.h:24,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr.h:148,
                 from /usr/include/c++/7/ext/atomicity.h:35,
                 from /usr/include/c++/7/bits/basic_string.h:39,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/timex.h:29:3: error: '__syscall_slong_t' does not name a type
   __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
   __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
   __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
   __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
   __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
   __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
   __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
   __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
   __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
   __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
   __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
   __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
   __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
   __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
   __syscall_slong_t stbcnt; /* stability limit exceeded (ro) */
   ^~~~~~~~~~~~~~~~~
In file included from /usr/include/time.h:33:0,
                 from /usr/include/pthread.h:24,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr.h:148,
                 from /usr/include/c++/7/ext/atomicity.h:35,
                 from /usr/include/c++/7/bits/basic_string.h:39,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/x86_64-linux-gnu/bits/time.h:78:27: error: '__clockid_t' was not declared in this scope
 extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) __THROW;
                           ^~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/time.h:78:27: note: suggested alternative: '__locale_t'
 extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) __THROW;
                           ^~~~~~~~~~~
                           __locale_t
/usr/include/x86_64-linux-gnu/bits/time.h:78:51: error: expected primary-expression before 'struct'
 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]
 extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) __THROW;
                                                                      ^
In file included from /usr/include/pthread.h:24:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr.h:148,
                 from /usr/include/c++/7/ext/atomicity.h:35,
                 from /usr/include/c++/7/bits/basic_string.h:39,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/time.h:72:8: error: 'clock_t' does not name a type; did you mean 'unlockpt'?
 extern clock_t clock (void) __THROW;
        ^~~~~~~
        unlockpt
/usr/include/time.h:75:8: error: 'time_t' does not name a type; did you mean 'timex'?
 extern time_t time (time_t *__timer) __THROW;
        ^~~~~~
        timex
/usr/include/time.h:78:25: error: 'time_t' was not declared in this scope
 extern double difftime (time_t __time1, time_t __time0)
                         ^~~~~~
/usr/include/time.h:78:25: note: suggested alternative: 'timex'
 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
 extern double difftime (time_t __time1, time_t __time0)
                                         ^~~~~~
/usr/include/time.h:78:41: note: suggested alternative: 'timex'
 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]
 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'?
 extern time_t mktime (struct tm *__tp) __THROW;
        ^~~~~~
        timex
/usr/include/time.h:88:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t strftime (char *__restrict __s, size_t __maxsize,
        ^~~~~~
        __size_t
/usr/include/time.h:104:8: error: 'size_t' does not name a type; did you mean '__size_t'?
 extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
        ^~~~~~
        __size_t
/usr/include/time.h:119:33: error: 'time_t' does not name a type; did you mean 'timex'?
 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'?
 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'?
 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'?
 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'?
 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'?
 extern char *ctime_r (const time_t *__restrict __timer,
                             ^~~~~~
                             timex
/usr/include/time.h:181:25: error: 'time_t' does not name a type; did you mean 'ctime_r'?
 extern int stime (const time_t *__when) __THROW;
                         ^~~~~~
                         ctime_r
/usr/include/time.h:196:8: error: 'time_t' does not name a type; did you mean 'ctime_r'?
 extern time_t timegm (struct tm *__tp) __THROW;
        ^~~~~~
        ctime_r
/usr/include/time.h:199:8: error: 'time_t' does not name a type; did you mean 'ctime_r'?
 extern time_t timelocal (struct tm *__tp) __THROW;
        ^~~~~~
        ctime_r
/usr/include/time.h:216:26: error: 'clockid_t' was not declared in this scope
 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW;
                          ^~~~~~~~~
/usr/include/time.h:216:26: note: suggested alternative: 'locale_t'
 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW;
                          ^~~~~~~~~
                          locale_t
/usr/include/time.h:216:48: error: expected primary-expression before 'struct'
 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW;
                                                ^~~~~~
/usr/include/time.h:216:70: error: expression list treated as compound expression in initializer [-fpermissive]
 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW;
                                                                      ^
/usr/include/time.h:219:27: error: 'clockid_t' was not declared in this scope
 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
                           ^~~~~~~~~
/usr/include/time.h:219:27: note: suggested alternative: 'locale_t'
 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
                           ^~~~~~~~~
                           locale_t
/usr/include/time.h:219:49: error: expected primary-expression before 'struct'
 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
                                                 ^~~~~~
/usr/include/time.h:219:70: error: expression list treated as compound expression in initializer [-fpermissive]
 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
                                                                      ^
/usr/include/time.h:222:27: error: 'clockid_t' was not declared in this scope
 extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)
                           ^~~~~~~~~
/usr/include/time.h:222:27: note: suggested alternative: 'locale_t'
 extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)
                           ^~~~~~~~~
                           locale_t
/usr/include/time.h:222:49: error: expected primary-expression before 'const'
 extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)
                                                 ^~~~~
/usr/include/time.h:222:76: error: expression list treated as compound expression in initializer [-fpermissive]
 extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)
                                                                            ^
/usr/include/time.h:230:29: error: 'clockid_t' was not declared in this scope
 extern int clock_nanosleep (clockid_t __clock_id, int __flags,
                             ^~~~~~~~~
/usr/include/time.h:230:29: note: suggested alternative: 'locale_t'
 extern int clock_nanosleep (clockid_t __clock_id, int __flags,
                             ^~~~~~~~~
                             locale_t
/usr/include/time.h:230:51: error: expected primary-expression before 'int'
 extern int clock_nanosleep (clockid_t __clock_id, int __flags,
                                                   ^~~
/usr/include/time.h:231:8: error: expected primary-expression before 'const'
        const struct timespec *__req,
        ^~~~~
/usr/include/time.h:232:8: error: expected primary-expression before 'struct'
        struct timespec *__rem);
        ^~~~~~
/usr/include/time.h:232:30: error: expression list treated as compound expression in initializer [-fpermissive]
        struct timespec *__rem);
                              ^
/usr/include/time.h:235:33: error: 'pid_t' was not declared in this scope
 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
                                 ^~~~~
/usr/include/time.h:235:33: note: suggested alternative: 'div_t'
 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
                                 ^~~~~
                                 div_t
/usr/include/time.h:235:46: error: 'clockid_t' was not declared in this scope
 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
                                              ^~~~~~~~~
/usr/include/time.h:235:46: note: suggested alternative: 'locale_t'
 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
                                              ^~~~~~~~~
                                              locale_t
/usr/include/time.h:235:57: error: '__clock_id' was not declared in this scope
 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
                                                         ^~~~~~~~~~
/usr/include/time.h:235:67: error: expression list treated as compound expression in initializer [-fpermissive]
 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
                                                                   ^
/usr/include/time.h:240:26: error: 'clockid_t' was not declared in this scope
 extern int timer_create (clockid_t __clock_id,
                          ^~~~~~~~~
/usr/include/time.h:240:26: note: suggested alternative: 'locale_t'
 extern int timer_create (clockid_t __clock_id,
                          ^~~~~~~~~
                          locale_t
/usr/include/time.h:241:5: error: expected primary-expression before 'struct'
     struct sigevent *__restrict __evp,
     ^~~~~~
/usr/include/time.h:242:5: error: 'timer_t' was not declared in this scope
     timer_t *__restrict __timerid) __THROW;
     ^~~~~~~
/usr/include/time.h:242:5: note: suggested alternative: 'ctime_r'
     timer_t *__restrict __timerid) __THROW;
     ^~~~~~~
     ctime_r
/usr/include/time.h:242:14: error: expected primary-expression before '__restrict'
     timer_t *__restrict __timerid) __THROW;
              ^~~~~~~~~~
/usr/include/time.h:242:34: error: expression list treated as compound expression in initializer [-fpermissive]
     timer_t *__restrict __timerid) __THROW;
                                  ^
/usr/include/time.h:245:26: error: 'timer_t' was not declared in this scope
 extern int timer_delete (timer_t __timerid) __THROW;
                          ^~~~~~~
/usr/include/time.h:245:26: note: suggested alternative: 'ctime_r'
 extern int timer_delete (timer_t __timerid) __THROW;
                          ^~~~~~~
                          ctime_r
/usr/include/time.h:248:27: error: 'timer_t' was not declared in this scope
 extern int timer_settime (timer_t __timerid, int __flags,
                           ^~~~~~~
/usr/include/time.h:248:27: note: suggested alternative: 'ctime_r'
 extern int timer_settime (timer_t __timerid, int __flags,
                           ^~~~~~~
                           ctime_r
/usr/include/time.h:248:46: error: expected primary-expression before 'int'
 extern int timer_settime (timer_t __timerid, int __flags,
                                              ^~~
/usr/include/time.h:249:6: error: expected primary-expression before 'const'
      const struct itimerspec *__restrict __value,
      ^~~~~
/usr/include/time.h:250:6: error: expected primary-expression before 'struct'
      struct itimerspec *__restrict __ovalue) __THROW;
      ^~~~~~
/usr/include/time.h:250:44: error: expression list treated as compound expression in initializer [-fpermissive]
      struct itimerspec *__restrict __ovalue) __THROW;
                                            ^
/usr/include/time.h:253:27: error: 'timer_t' was not declared in this scope
 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
                           ^~~~~~~
/usr/include/time.h:253:27: note: suggested alternative: 'ctime_r'
 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
                           ^~~~~~~
                           ctime_r
/usr/include/time.h:253:46: error: expected primary-expression before 'struct'
 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
                                              ^~~~~~
/usr/include/time.h:253:72: error: expression list treated as compound expression in initializer [-fpermissive]
 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
                                                                        ^
/usr/include/time.h:257:30: error: 'timer_t' was not declared in this scope
 extern int timer_getoverrun (timer_t __timerid) __THROW;
                              ^~~~~~~
/usr/include/time.h:257:30: note: suggested alternative: 'ctime_r'
 extern int timer_getoverrun (timer_t __timerid) __THROW;
                              ^~~~~~~
                              ctime_r
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr-default.h:35:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr.h:148,
                 from /usr/include/c++/7/ext/atomicity.h:35,
                 from /usr/include/c++/7/bits/basic_string.h:39,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/pthread.h:307:11: error: 'size_t' has not been declared
           size_t *__guardsize)
           ^~~~~~
/usr/include/pthread.h:312:11: error: 'size_t' has not been declared
           size_t __guardsize)
           ^~~~~~
/usr/include/pthread.h:370:19: error: 'size_t' has not been declared
           __attr, size_t *__restrict __stacksize)
                   ^~~~~~
/usr/include/pthread.h:377:11: error: 'size_t' has not been declared
           size_t __stacksize)
           ^~~~~~
/usr/include/pthread.h:384:7: error: 'size_t' has not been declared
       size_t *__restrict __stacksize)
       ^~~~~~
/usr/include/pthread.h:391:7: error: 'size_t' has not been declared
       size_t __stacksize) __THROW __nonnull ((1));
       ^~~~~~
/usr/include/pthread.h:398:6: error: 'size_t' has not been declared
      size_t __cpusetsize,
      ^~~~~~
/usr/include/pthread.h:405:6: error: 'size_t' has not been declared
      size_t __cpusetsize,
      ^~~~~~
/usr/include/pthread.h:448:11: error: 'size_t' has not been declared
           size_t __buflen)
           ^~~~~~
/usr/include/pthread.h:475:52: error: 'size_t' has not been declared
 extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize,
                                                    ^~~~~~
/usr/include/pthread.h:480:52: error: 'size_t' has not been declared
 extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize,
                                                    ^~~~~~
/usr/include/pthread.h:1030:11: error: '__clockid_t' has not been declared
           __clockid_t *__restrict __clock_id)
           ^~~~~~~~~~~
/usr/include/pthread.h:1035:11: error: '__clockid_t' has not been declared
           __clockid_t __clock_id)
           ^~~~~~~~~~~
/usr/include/pthread.h:1130:7: error: '__clockid_t' has not been declared
       __clockid_t *__clock_id)
       ^~~~~~~~~~~
In file included from /usr/include/c++/7/ext/string_conversions.h:43:0,
                 from /usr/include/c++/7/bits/basic_string.h:6361,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/c++/7/cstdio:98:11: error: '::FILE' has not been declared
   using ::FILE;
           ^~~~
/usr/include/c++/7/cstdio:99:11: error: '::fpos_t' has not been declared
   using ::fpos_t;
           ^~~~~~
/usr/include/c++/7/cstdio:101:11: error: '::clearerr' has not been declared
   using ::clearerr;
           ^~~~~~~~
/usr/include/c++/7/cstdio:102:11: error: '::fclose' has not been declared
   using ::fclose;
           ^~~~~~
/usr/include/c++/7/cstdio:103:11: error: '::feof' has not been declared
   using ::feof;
           ^~~~
/usr/include/c++/7/cstdio:104:11: error: '::ferror' has not been declared
   using ::ferror;
           ^~~~~~
/usr/include/c++/7/cstdio:105:11: error: '::fflush' has not been declared
   using ::fflush;
           ^~~~~~
/usr/include/c++/7/cstdio:106:11: error: '::fgetc' has not been declared
   using ::fgetc;
           ^~~~~
/usr/include/c++/7/cstdio:107:11: error: '::fgetpos' has not been declared
   using ::fgetpos;
           ^~~~~~~
/usr/include/c++/7/cstdio:108:11: error: '::fgets' has not been declared
   using ::fgets;
           ^~~~~
/usr/include/c++/7/cstdio:109:11: error: '::fopen' has not been declared
   using ::fopen;
           ^~~~~
/usr/include/c++/7/cstdio:110:11: error: '::fprintf' has not been declared
   using ::fprintf;
           ^~~~~~~
/usr/include/c++/7/cstdio:111:11: error: '::fputc' has not been declared
   using ::fputc;
           ^~~~~
/usr/include/c++/7/cstdio:112:11: error: '::fputs' has not been declared
   using ::fputs;
           ^~~~~
/usr/include/c++/7/cstdio:113:11: error: '::fread' has not been declared
   using ::fread;
           ^~~~~
/usr/include/c++/7/cstdio:114:11: error: '::freopen' has not been declared
   using ::freopen;
           ^~~~~~~
/usr/include/c++/7/cstdio:115:11: error: '::fscanf' has not been declared
   using ::fscanf;
           ^~~~~~
/usr/include/c++/7/cstdio:116:11: error: '::fseek' has not been declared
   using ::fseek;
           ^~~~~
/usr/include/c++/7/cstdio:117:11: error: '::fsetpos' has not been declared
   using ::fsetpos;
           ^~~~~~~
/usr/include/c++/7/cstdio:118:11: error: '::ftell' has not been declared
   using ::ftell;
           ^~~~~
/usr/include/c++/7/cstdio:119:11: error: '::fwrite' has not been declared
   using ::fwrite;
           ^~~~~~
/usr/include/c++/7/cstdio:120:11: error: '::getc' has not been declared
   using ::getc;
           ^~~~
/usr/include/c++/7/cstdio:121:11: error: '::getchar' has not been declared
   using ::getchar;
           ^~~~~~~
/usr/include/c++/7/cstdio:124:11: error: '::gets' has not been declared
   using ::gets;
           ^~~~
/usr/include/c++/7/cstdio:126:11: error: '::perror' has not been declared
   using ::perror;
           ^~~~~~
/usr/include/c++/7/cstdio:127:11: error: '::printf' has not been declared
   using ::printf;
           ^~~~~~
/usr/include/c++/7/cstdio:128:11: error: '::putc' has not been declared
   using ::putc;
           ^~~~
/usr/include/c++/7/cstdio:129:11: error: '::putchar' has not been declared
   using ::putchar;
           ^~~~~~~
/usr/include/c++/7/cstdio:130:11: error: '::puts' has not been declared
   using ::puts;
           ^~~~
/usr/include/c++/7/cstdio:131:11: error: '::remove' has not been declared
   using ::remove;
           ^~~~~~
/usr/include/c++/7/cstdio:132:11: error: '::rename' has not been declared
   using ::rename;
           ^~~~~~
/usr/include/c++/7/cstdio:133:11: error: '::rewind' has not been declared
   using ::rewind;
           ^~~~~~
/usr/include/c++/7/cstdio:134:11: error: '::scanf' has not been declared
   using ::scanf;
           ^~~~~
/usr/include/c++/7/cstdio:135:11: error: '::setbuf' has not been declared
   using ::setbuf;
           ^~~~~~
/usr/include/c++/7/cstdio:136:11: error: '::setvbuf' has not been declared
   using ::setvbuf;
           ^~~~~~~
/usr/include/c++/7/cstdio:137:11: error: '::sprintf' has not been declared
   using ::sprintf;
           ^~~~~~~
/usr/include/c++/7/cstdio:138:11: error: '::sscanf' has not been declared
   using ::sscanf;
           ^~~~~~
/usr/include/c++/7/cstdio:139:11: error: '::tmpfile' has not been declared
   using ::tmpfile;
           ^~~~~~~
/usr/include/c++/7/cstdio:141:11: error: '::tmpnam' has not been declared
   using ::tmpnam;
           ^~~~~~
/usr/include/c++/7/cstdio:143:11: error: '::ungetc' has not been declared
   using ::ungetc;
           ^~~~~~
/usr/include/c++/7/cstdio:144:11: error: '::vfprintf' has not been declared
   using ::vfprintf;
           ^~~~~~~~
/usr/include/c++/7/cstdio:145:11: error: '::vprintf' has not been declared
   using ::vprintf;
           ^~~~~~~
/usr/include/c++/7/cstdio:146:11: error: '::vsprintf' has not been declared
   using ::vsprintf;
           ^~~~~~~~
/usr/include/c++/7/cstdio:175:11: error: '::snprintf' has not been declared
   using ::snprintf;
           ^~~~~~~~
/usr/include/c++/7/cstdio:176:11: error: '::vfscanf' has not been declared
   using ::vfscanf;
           ^~~~~~~
/usr/include/c++/7/cstdio:177:11: error: '::vscanf' has not been declared
   using ::vscanf;
           ^~~~~~
/usr/include/c++/7/cstdio:178:11: error: '::vsnprintf' has not been declared
   using ::vsnprintf;
           ^~~~~~~~~
/usr/include/c++/7/cstdio:179:11: error: '::vsscanf' has not been declared
   using ::vsscanf;
           ^~~~~~~
/usr/include/c++/7/cstdio:185:22: error: '__gnu_cxx::snprintf' has not been declared
   using ::__gnu_cxx::snprintf;
                      ^~~~~~~~
/usr/include/c++/7/cstdio:186:22: error: '__gnu_cxx::vfscanf' has not been declared
   using ::__gnu_cxx::vfscanf;
                      ^~~~~~~
/usr/include/c++/7/cstdio:187:22: error: '__gnu_cxx::vscanf' has not been declared
   using ::__gnu_cxx::vscanf;
                      ^~~~~~
/usr/include/c++/7/cstdio:188:22: error: '__gnu_cxx::vsnprintf' has not been declared
   using ::__gnu_cxx::vsnprintf;
                      ^~~~~~~~~
/usr/include/c++/7/cstdio:189:22: error: '__gnu_cxx::vsscanf' has not been declared
   using ::__gnu_cxx::vsscanf;
                      ^~~~~~~
In file included from /usr/include/c++/7/string:52:0,
                 from foo.cc:6:
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(int)':
/usr/include/c++/7/bits/basic_string.h:6415:50: error: 'vsnprintf' is not a member of 'std'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(int),
                                                  ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6415:50: note: suggested alternative: 'isprint'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(int),
                                                  ^~~~~~~~~
                                                  isprint
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(unsigned int)':
/usr/include/c++/7/bits/basic_string.h:6420:50: error: 'vsnprintf' is not a member of 'std'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
                                                  ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6420:50: note: suggested alternative: 'isprint'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
                                                  ^~~~~~~~~
                                                  isprint
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long int)':
/usr/include/c++/7/bits/basic_string.h:6426:50: error: 'vsnprintf' is not a member of 'std'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(long),
                                                  ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6426:50: note: suggested alternative: 'isprint'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(long),
                                                  ^~~~~~~~~
                                                  isprint
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long unsigned int)':
/usr/include/c++/7/bits/basic_string.h:6431:50: error: 'vsnprintf' is not a member of 'std'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
                                                  ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6431:50: note: suggested alternative: 'isprint'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
                                                  ^~~~~~~~~
                                                  isprint
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long long int)':
/usr/include/c++/7/bits/basic_string.h:6437:50: error: 'vsnprintf' is not a member of 'std'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
                                                  ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6437:50: note: suggested alternative: 'isprint'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
                                                  ^~~~~~~~~
                                                  isprint
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long long unsigned int)':
/usr/include/c++/7/bits/basic_string.h:6443:50: error: 'vsnprintf' is not a member of 'std'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
                                                  ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6443:50: note: suggested alternative: 'isprint'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
                                                  ^~~~~~~~~
                                                  isprint
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(float)':
/usr/include/c++/7/bits/basic_string.h:6452:50: error: 'vsnprintf' is not a member of 'std'
     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
                                                  ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6452:50: note: suggested alternative: 'isprint'
     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
                                                  ^~~~~~~~~
                                                  isprint
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(double)':
/usr/include/c++/7/bits/basic_string.h:6461:50: error: 'vsnprintf' is not a member of 'std'
     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
                                                  ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6461:50: note: suggested alternative: 'isprint'
     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
                                                  ^~~~~~~~~
                                                  isprint
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long double)':
/usr/include/c++/7/bits/basic_string.h:6470:50: error: 'vsnprintf' is not a member of 'std'
     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
                                                  ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6470:50: note: suggested alternative: 'isprint'
     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
                                                  ^~~~~~~~~
                                                  isprint
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(int)':
/usr/include/c++/7/bits/basic_string.h:6519:22: error: no matching function for call to '__to_xstring<std::__cxx11::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), long unsigned int, const wchar_t [3], int&)'
          L"%d", __val); }
                      ^
In file included from /usr/include/c++/7/bits/basic_string.h:6361:0,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/c++/7/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*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/usr/include/c++/7/ext/string_conversions.h:99:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/string:52:0,
                 from foo.cc:6:
/usr/include/c++/7/bits/basic_string.h:6519:22: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'int'
          L"%d", __val); }
                      ^
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(unsigned int)':
/usr/include/c++/7/bits/basic_string.h:6525:22: error: no matching function for call to '__to_xstring<std::__cxx11::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), long unsigned int, const wchar_t [3], unsigned int&)'
          L"%u", __val); }
                      ^
In file included from /usr/include/c++/7/bits/basic_string.h:6361:0,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/c++/7/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*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/usr/include/c++/7/ext/string_conversions.h:99:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/string:52:0,
                 from foo.cc:6:
/usr/include/c++/7/bits/basic_string.h:6525:22: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'int'
          L"%u", __val); }
                      ^
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(long int)':
/usr/include/c++/7/bits/basic_string.h:6530:23: error: no matching function for call to '__to_xstring<std::__cxx11::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), long unsigned int, const wchar_t [4], long int&)'
          L"%ld", __val); }
                       ^
In file included from /usr/include/c++/7/bits/basic_string.h:6361:0,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/c++/7/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*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/usr/include/c++/7/ext/string_conversions.h:99:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/string:52:0,
                 from foo.cc:6:
/usr/include/c++/7/bits/basic_string.h:6530:23: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'int'
          L"%ld", __val); }
                       ^
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(long unsigned int)':
/usr/include/c++/7/bits/basic_string.h:6536:23: error: no matching function for call to '__to_xstring<std::__cxx11::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), long unsigned int, const wchar_t [4], long unsigned int&)'
          L"%lu", __val); }
                       ^
In file included from /usr/include/c++/7/bits/basic_string.h:6361:0,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/c++/7/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*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/usr/include/c++/7/ext/string_conversions.h:99:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/string:52:0,
                 from foo.cc:6:
/usr/include/c++/7/bits/basic_string.h:6536:23: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'int'
          L"%lu", __val); }
                       ^
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(long long int)':
/usr/include/c++/7/bits/basic_string.h:6542:24: error: no matching function for call to '__to_xstring<std::__cxx11::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), long unsigned int, const wchar_t [5], long long int&)'
          L"%lld", __val); }
                        ^
In file included from /usr/include/c++/7/bits/basic_string.h:6361:0,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/c++/7/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*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/usr/include/c++/7/ext/string_conversions.h:99:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/string:52:0,
                 from foo.cc:6:
/usr/include/c++/7/bits/basic_string.h:6542:24: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'int'
          L"%lld", __val); }
                        ^
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(long long unsigned int)':
/usr/include/c++/7/bits/basic_string.h:6548:24: error: no matching function for call to '__to_xstring<std::__cxx11::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), long unsigned int, const wchar_t [5], long long unsigned int&)'
          L"%llu", __val); }
                        ^
In file included from /usr/include/c++/7/bits/basic_string.h:6361:0,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/c++/7/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*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/usr/include/c++/7/ext/string_conversions.h:99:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/string:52:0,
                 from foo.cc:6:
/usr/include/c++/7/bits/basic_string.h:6548:24: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'int'
          L"%llu", __val); }
                        ^
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(float)':
/usr/include/c++/7/bits/basic_string.h:6556:22: error: no matching function for call to '__to_xstring<std::__cxx11::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), const int&, const wchar_t [3], float&)'
          L"%f", __val);
                      ^
In file included from /usr/include/c++/7/bits/basic_string.h:6361:0,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/c++/7/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*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/usr/include/c++/7/ext/string_conversions.h:99:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/string:52:0,
                 from foo.cc:6:
/usr/include/c++/7/bits/basic_string.h:6556:22: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'int'
          L"%f", __val);
                      ^
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(double)':
/usr/include/c++/7/bits/basic_string.h:6565:22: error: no matching function for call to '__to_xstring<std::__cxx11::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), const int&, const wchar_t [3], double&)'
          L"%f", __val);
                      ^
In file included from /usr/include/c++/7/bits/basic_string.h:6361:0,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/c++/7/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*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/usr/include/c++/7/ext/string_conversions.h:99:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/string:52:0,
                 from foo.cc:6:
/usr/include/c++/7/bits/basic_string.h:6565:22: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'int'
          L"%f", __val);
                      ^
/usr/include/c++/7/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(long double)':
/usr/include/c++/7/bits/basic_string.h:6574:23: error: no matching function for call to '__to_xstring<std::__cxx11::wstring>(int (*)(wchar_t*, int, const wchar_t*, int) throw (), const int&, const wchar_t [4], long double&)'
          L"%Lf", __val);
                       ^
In file included from /usr/include/c++/7/bits/basic_string.h:6361:0,
                 from /usr/include/c++/7/string:52,
                 from foo.cc:6:
/usr/include/c++/7/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*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/usr/include/c++/7/ext/string_conversions.h:99:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/string:52:0,
                 from foo.cc:6:
/usr/include/c++/7/bits/basic_string.h:6574:23: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'int'
          L"%Lf", __val);
                       ^
In file included from /usr/include/c++/7/cwctype:50:0,
                 from /usr/include/c++/7/bits/locale_facets.h:39,
                 from /usr/include/c++/7/bits/basic_ios.h:37,
                 from /usr/include/c++/7/ios:44,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/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 'u_int32_t'?
 typedef const __int32_t *wctrans_t;
               ^~~~~~~~~
               u_int32_t
/usr/include/wctype.h:52:8: error: 'wctrans_t' does not name a type; did you mean 'wctype_t'?
 extern wctrans_t wctrans (const char *__property) __THROW;
        ^~~~~~~~~
        wctype_t
/usr/include/wctype.h:55:39: error: 'wctrans_t' has not been declared
 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; did you mean 'towctrans'?
 extern wctrans_t wctrans_l (const char *__property, locale_t __locale)
        ^~~~~~~~~
        towctrans
/usr/include/wctype.h:141:41: error: 'wctrans_t' has not been declared
 extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc,
                                         ^~~~~~~~~
In file included from /usr/include/c++/7/bits/locale_facets.h:39:0,
                 from /usr/include/c++/7/bits/basic_ios.h:37,
                 from /usr/include/c++/7/ios:44,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from foo.cc:8:
/usr/include/c++/7/cwctype:82:11: error: '::wctrans_t' has not been declared
   using ::wctrans_t;
           ^~~~~~~~~
/usr/include/c++/7/cwctype:104:11: error: '::wctrans' has not been declared
   using ::wctrans;
           ^~~~~~~
foo.cc: In function 'int main()':
foo.cc:29:13: error: 'scanf' was not declared in this scope
             scanf("%I64d%I64d",&n,&k); ans = 0;
             ^~~~~
foo.cc:29:13: note: suggested alternative: 'wscanf'
             scanf("%I64d%I64d",&n,&k); ans = 0;
             ^~~~~
             wscanf
foo.cc:41:13: error: 'printf' was not declared in this scope
             printf("%I64d\n",ans % 1234567);
             ^~~~~~
foo.cc:41:13: note: suggested alternative: 'wprintf'
             printf("%I64d\n",ans % 1234567);
             ^~~~~~
             wprintf
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1090 连续数之和
语言
C++
递交时间
2021-03-23 21:58:21
评测时间
2021-03-23 21:58:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes