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_26236429_10156.cpp: In function 'void pre()':
0_0_26236429_10156.cpp:2:5: error: 'mu' was not declared in this scope
     mu[1] = 1;
     ^
0_0_26236429_10156.cpp:3:25: error: 'maxn' was not declared in this scope
     for (int i = 2; i < maxn; i++) {
                         ^
0_0_26236429_10156.cpp:4:14: error: 'vis' was not declared in this scope
         if (!vis[i]) {
              ^
0_0_26236429_10156.cpp:5:13: error: 'p' was not declared in this scope
             p[++cnt] = i;
             ^
0_0_26236429_10156.cpp:5:17: error: 'cnt' was not declared in this scope
             p[++cnt] = i;
                 ^
0_0_26236429_10156.cpp:8:30: error: 'cnt' was not declared in this scope
         for (int j = 1; j <= cnt && p[j] * i < maxn; j++) {
                              ^
0_0_26236429_10156.cpp:8:37: error: 'p' was not declared in this scope
         for (int j = 1; j <= cnt && p[j] * i < maxn; j++) {
                                     ^
0_0_26236429_10156.cpp:9:13: error: 'vis' was not declared in this scope
             vis[p[j] * i] = true;
             ^


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 08:44:33, Gzip enabled