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_21937490_9050.cpp: In function 'void get_prime()':
0_0_21937490_9050.cpp:32:7: error: 'i' was not declared in this scope
  for (i = 0; i < half; i++) p[i] = true;// 初始化全部奇数为素数。p[0]对应3,即p[i]对应2*i+3   
       ^
0_0_21937490_9050.cpp:33:7: error: 'i' was not declared in this scope
  for (i = 0; i < sn; i++) {      
       ^
0_0_21937490_9050.cpp:35:12: error: 'k' was not declared in this scope
        for(k=i+i+3, j=k*i+k+i; j < half; j+=k)   
            ^
0_0_21937490_9050.cpp:35:21: error: 'j' was not declared in this scope
        for(k=i+i+3, j=k*i+k+i; j < half; j+=k)   
                     ^


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-10-06 11:02:33, Gzip enabled