/ Vijos /

记录详情

Compile Error

/in/foo.cc:1:11: error: 'N' was not declared in this scope
 int prime[N*5000];
           ^
/in/foo.cc:2:13: error: 'N' was not declared in this scope
 int isPrime[N*5000];
             ^
/in/foo.cc:3:9: error: 'N' was not declared in this scope
 int phi[N*5000];
         ^
/in/foo.cc: In function 'void init()':
/in/foo.cc:7:5: error: 'prime' was not declared in this scope
     prime[0]=0;
     ^~~~~
/in/foo.cc:8:10: error: 'phi' was not declared in this scope
     fill(phi,phi+5000001,1);
          ^~~
/in/foo.cc:8:5: error: 'fill' was not declared in this scope
     fill(phi,phi+5000001,1);
     ^~~~
/in/foo.cc:10:12: error: 'isPrime' was not declared in this scope
     memset(isPrime,0,sizeof(isPrime));
            ^~~~~~~
/in/foo.cc:10:5: error: 'memset' was not declared in this scope
     memset(isPrime,0,sizeof(isPrime));
     ^~~~~~
/in/foo.cc:17:17: error: 'LL' was not declared in this scope
             if((LL)i*(LL)prime[j]>5000000) break;
                 ^~
/in/foo.cc:17:20: error: expected ')' before 'i'
             if((LL)i*(LL)prime[j]>5000000) break;
                    ^

信息

递交者
类型
递交
题目
P2025 欧拉函数
比赛
金秋重聚模拟赛
语言
C++
递交时间
2017-10-07 18:29:42
评测时间
2017-10-07 18:32:54
评测机
分数
0
总耗时
13ms
峰值内存
3.152 MiB