/ Vijos /

记录详情

Compile Error

/in/foo.c:12:1: error: unknown type name 'bool'
 bool isp[MAXN];
 ^~~~
/in/foo.c:27:1: error: unknown type name 'bool'
 bool IsPrime(ll x)
 ^~~~
/in/foo.c: In function 'IsPrime':
/in/foo.c:29:10: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
     if(x & 1 ^ 1) return false;
        ~~^~~
/in/foo.c:29:26: error: 'false' undeclared (first use in this function)
     if(x & 1 ^ 1) return false;
                          ^~~~~
/in/foo.c:29:26: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:32:12: error: 'true' undeclared (first use in this function)
     return true;
            ^~~~
/in/foo.c: In function 'dfs':
/in/foo.c:38:15: error: 'std' undeclared (first use in this function)
         ans = std::min(ans, res);
               ^~~
/in/foo.c:38:18: error: expected ';' before ':' token
         ans = std::min(ans, res);
                  ^
/in/foo.c:43:18: error: expected ';' before ':' token
         ans = std::min(ans, res * (rem + 1));
                  ^
/in/foo.c: In function 'IsPrime':
/in/foo.c:33:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P1862 Euler
语言
C
递交时间
2020-07-07 05:30:53
评测时间
2020-07-07 05:30:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes