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_37552191_8583.cpp:5:16: error: expected initializer before numeric constant
 const int MAXN 1111111;
                ^
0_0_37552191_8583.cpp:7:14: error: 'MAXN' was not declared in this scope
 bool noprime[MAXN]={0};//值为0表示素数,值为1表示非素数 
              ^
0_0_37552191_8583.cpp:8:11: error: 'MAXN' was not declared in this scope
 ll  prime[MAXN];
           ^
0_0_37552191_8583.cpp: In function 'void init(int)':
0_0_37552191_8583.cpp:12:3: error: 'noprime' was not declared in this scope
   noprime[1] = 1;
   ^
0_0_37552191_8583.cpp:14:23: error: 'prime' was not declared in this scope
       if(!noprime[i]) prime[++t] = i;
                       ^
0_0_37552191_8583.cpp:15:26: error: 'prime' was not declared in this scope
       for(ll j=1;j<=t && prime[j]*i<=n;j++){
                          ^
0_0_37552191_8583.cpp: In function 'int main()':
0_0_37552191_8583.cpp:25:10: error: 'MAXN' was not declared in this scope
     init(MAXN)
          ^


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-06-15 03:12:55, Gzip enabled