记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
A11-5 小数的循环节
比赛
2023 程序设计与竞赛(作业6:走向综合)
语言
C
递交时间
2023-10-28 19:36:38
评测时间
2023-10-28 19:36:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes