/ Vijos /

记录详情

Compile Error

/in/foo.c:1:11: error: 'N' undeclared here (not in a function)
 int prime[N*5000];
           ^
/in/foo.c: In function 'init':
/in/foo.c:8:5: warning: implicit declaration of function 'fill' [-Wimplicit-function-declaration]
     fill(phi,phi+5000001,1);
     ^~~~
/in/foo.c:10:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
     memset(isPrime,0,sizeof(isPrime));
     ^~~~~~
/in/foo.c:10:5: warning: incompatible implicit declaration of built-in function 'memset'
/in/foo.c:10:5: note: include '<string.h>' or provide a declaration of 'memset'
/in/foo.c:17:17: error: 'LL' undeclared (first use in this function)
             if((LL)i*(LL)prime[j]>5000000) break;
                 ^~
/in/foo.c:17:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:17:20: error: expected ')' before 'i'
             if((LL)i*(LL)prime[j]>5000000) break;
                    ^

信息

递交者
类型
自测
题目
P2025 欧拉函数
语言
C
递交时间
2017-10-07 18:27:56
评测时间
2017-10-07 18:27:56
评测机
分数
0
总耗时
18ms
峰值内存
2.902 MiB