F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_33991361_21984.cpp:19:21: error: redefinition of 'int cnt'
 int prime[MAXN],cnt,cnt;
                     ^
0_0_33991361_21984.cpp:19:17: note: 'int cnt' previously declared here
 int prime[MAXN],cnt,cnt;
                 ^
0_0_33991361_21984.cpp: In function 'void sieve(const int&)':
0_0_33991361_21984.cpp:35:21: error: 'pcnt' was not declared in this scope
             prime[++pcnt]=i;
                     ^
0_0_33991361_21984.cpp:38:24: error: 'pcnt' was not declared in this scope
         for(int j=1;j<=pcnt&&i*prime[j]<=n;j++){
                        ^
0_0_33991361_21984.cpp: In function 'void calFprime()':
0_0_33991361_21984.cpp:62:46: error: expected ')' before ';' token
             G[i]=(G[i]-(lll)p*(G[id]-Gk[k-1]);
                                              ^
0_0_33991361_21984.cpp: In function 'int main()':
0_0_33991361_21984.cpp:75:9: error: 'inv2' was not declared in this scope
         inv2=qpow(2,MOD-2);
         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 19:25:33, Gzip enabled