/ Vijos /

记录详情

Compile Error

/in/foo.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
/in/foo.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
/in/foo.c:6:1: error: unknown type name 'bool'
    6 | bool map[20001]={false};
      | ^~~~
/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 | using namespace std;
/in/foo.c:6:18: error: 'false' undeclared here (not in a function)
    6 | bool map[20001]={false};
      |                  ^~~~~
/in/foo.c:6:18: note: 'false' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
/in/foo.c:8:1: error: unknown type name 'bool'
    8 | bool ok[20001];
      | ^~~~
/in/foo.c:8:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
/in/foo.c: In function 'yuchuli':
/in/foo.c:18:21: error: 'true' undeclared (first use in this function)
   18 | ok[make(nowx,nowy)]=true;
      |                     ^~~~
/in/foo.c:18:21: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
/in/foo.c:18:21: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c: In function 'main':
/in/foo.c:61:28: error: 'true' undeclared (first use in this function)
   61 | if (u=='O') map[make(i,j)]=true;
      |                            ^~~~
/in/foo.c:61:28: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?

信息

递交者
类型
递交
题目
P1263 单挑女飞贼
语言
C
递交时间
2025-03-28 21:00:05
评测时间
2025-03-28 21:00:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes