记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:9: warning: too many arguments for format [-Wformat-extra-args]
    6 |   scanf("%d",&n,n);
      |         ^~~~
/in/foo.c:7:3: error: unknown type name 'bool'
    7 |   bool primer(int n)
      |   ^~~~
/in/foo.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
/in/foo.c:8:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    8 |   {
      |   ^
/in/foo.c:16:6: error: 'primer' undeclared (first use in this function)
   16 |   if(primer)
      |      ^~~~~~
/in/foo.c:16:6: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:5:7: warning: unused variable 'i' [-Wunused-variable]
    5 |   int i;
      |       ^

信息

递交者
类型
自测
语言
C
递交时间
2025-12-06 15:28:02
评测时间
2025-12-06 15:28:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes