记录详情

Compile Error

/in/foo.c:9:8: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 }list[1<<10+1];
        ^~
/in/foo.c:13:1: error: unknown type name 'bool'
 bool hash[1<<10+1];
 ^~~~
/in/foo.c:13:12: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 bool hash[1<<10+1];
            ^~
/in/foo.c: In function 'bfs':
/in/foo.c:17:15: error: 'false' undeclared (first use in this function)
  memset(hash, false, sizeof(hash));
               ^~~~~
/in/foo.c:17:15: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:41:16: error: 'true' undeclared (first use in this function)
     hash[st] = true;
                ^~~~

信息

递交者
类型
自测
题目
P1065 毒药?解药?
语言
C
递交时间
2019-05-18 09:46:26
评测时间
2019-05-18 09:46:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes