foo.c:6:2: error: stray '#' in program
6 | }#include <stdio.h>
| ^
foo.c:6:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
6 | }#include <stdio.h>
| ^
In file included from foo.c:8:
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdlib.h:946:20: error: unknown type name 'wchar_t'
946 | extern int mbtowc (wchar_t *__restrict __pwc,
| ^~~~~~~
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdlib.h:847:1: note: 'wchar_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
846 | # include <bits/stdlib-bsearch.h>
+++ |+#include <stddef.h>
847 | #endif
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdlib.h:950:31: error: unknown type name 'wchar_t'
950 | extern int wctomb (char *__s, wchar_t __wchar) __THROW;
| ^~~~~~~
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdlib.h:950:31: note: 'wchar_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdlib.h:954:25: error: unknown type name 'wchar_t'
954 | extern size_t mbstowcs (wchar_t *__restrict __pwcs,
| ^~~~~~~
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdlib.h:954:25: note: 'wchar_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdlib.h:959:31: error: unknown type name 'wchar_t'
959 | const wchar_t *__restrict __pwcs, size_t __n)
| ^~~~~~~
foo.c:56:5: error: redefinition of 'main'
56 | int main() {
| ^~~~
foo.c:3:5: note: previous definition of 'main' with type 'int()'
3 | int main()
| ^~~~
[Hydro](https://hydro.ac)提供评测服务