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_19965763_64.cpp:1:10: error: 'MAXN' was not declared in this scope
 int prim[MAXN/10], npr;
          ^
0_0_19965763_64.cpp:2:11: error: 'MAXN' was not declared in this scope
 bool isnp[MAXN+1];
           ^
0_0_19965763_64.cpp: In function 'void init()':
0_0_19965763_64.cpp:6:2: error: 'prim' was not declared in this scope
  prim[npr++] = 2;
  ^
0_0_19965763_64.cpp:7:2: error: 'isnp' was not declared in this scope
  isnp[2] = false;
  ^
0_0_19965763_64.cpp:8:25: error: 'MAXN' was not declared in this scope
     for(int i = 3; i <= MAXN; i += 2)
                         ^
0_0_19965763_64.cpp:11:8: error: 'LL' was not declared in this scope
    if((LL)i*i > MAXN) continue;
        ^
0_0_19965763_64.cpp:11:11: error: expected ')' before 'i'
    if((LL)i*i > MAXN) continue;
           ^


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-27 01:02:21, Gzip enabled