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_34027996_17415.cpp: In function 'int getprime()':
0_0_34027996_17415.cpp:23:22: error: 'maxn' was not declared in this scope
  for (int i = 2; i < maxn; i++) {
                      ^
0_0_34027996_17415.cpp: In function 'll getphi(ll, int)':
0_0_34027996_17415.cpp:84:38: error: 'maxn' was not declared in this scope
  if(x<=prime[s]*prime[s]*prime[s]&&x<maxn) {
                                      ^
0_0_34027996_17415.cpp: In function 'll getpi(ll)':
0_0_34027996_17415.cpp:94:7: error: 'maxn' was not declared in this scope
  if(x<maxn)return pi[x];
       ^
0_0_34027996_17415.cpp: In function 'll Lehmer_pi(ll)':
0_0_34027996_17415.cpp:102:7: error: 'maxn' was not declared in this scope
  if(x<maxn)return pi[x];
       ^


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-23 06:01:39, Gzip enabled