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_18020224_18098.cpp:6:13: error: 'MAXN' was not declared in this scope
 long long v[MAXN], prime[MAXN];
             ^
0_0_18020224_18098.cpp:6:26: error: 'MAXN' was not declared in this scope
 long long v[MAXN], prime[MAXN];
                          ^
0_0_18020224_18098.cpp: In function 'void GetPrime(int)':
0_0_18020224_18098.cpp:13:10: error: 'v' was not declared in this scope
     if (!v[i])
          ^
0_0_18020224_18098.cpp:14:7: error: 'prime' was not declared in this scope
       prime[TotalPrime++] = i;
       ^
0_0_18020224_18098.cpp:15:40: error: 'prime' was not declared in this scope
     for (int j = 0; j <= TotalPrime && prime[j] * i < n; j++)
                                        ^
0_0_18020224_18098.cpp:17:7: error: 'v' was not declared in this scope
       v[prime[j] * i] = 1;
       ^
0_0_18020224_18098.cpp: In function 'long long int IsMod(long long int*, int, long long int)':
0_0_18020224_18098.cpp:27:10: error: 'prime' was not declared in this scope
   while (prime[j] < L)
          ^
0_0_18020224_18098.cpp: In function 'int main()':
0_0_18020224_18098.cpp:46:12: error: 'MAXN' was not declared in this scope
   GetPrime(MAXN);
            ^
0_0_18020224_18098.cpp:52:37: error: 'memset' was not declared in this scope
     memset(number, 0, sizeof(number));
                                     ^


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-26 09:56:34, Gzip enabled