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_13763622_4437.cpp:1:11: error: 'MAX' was not declared in this scope
 int prime[MAX+1];  
           ^
0_0_13763622_4437.cpp:2:10: error: 'MAX' was not declared in this scope
 int flag[MAX];  
          ^
0_0_13763622_4437.cpp: In function 'void Get_Prime(int&)':
0_0_13763622_4437.cpp:8:6: error: 'flag' was not declared in this scope
      flag[2]=1;  
      ^
0_0_13763622_4437.cpp:9:16: error: 'MAX' was not declared in this scope
      for(i=3;i<MAX;i++)  
                ^
0_0_13763622_4437.cpp:15:10: error: 'MAX' was not declared in this scope
      if (MAX%2 != 0)//MAX不是偶数   
          ^
0_0_13763622_4437.cpp:19:17: error: 'MAX' was not declared in this scope
      for(i=3 ;i<MAX/2; i++)//在外层循环,不需要一直执行到MAX  
                 ^
0_0_13763622_4437.cpp:29:16: error: 'MAX' was not declared in this scope
      for(i=2;i<MAX;i++)  
                ^
0_0_13763622_4437.cpp:33:13: error: 'prime' was not declared in this scope
             prime[count]=i;           
             ^
0_0_13763622_4437.cpp: In function 'int main()':
0_0_13763622_4437.cpp:44:28: error: 'scanf' was not declared in this scope
     while(scanf("%d",&cases)!=EOF)  
                            ^
0_0_13763622_4437.cpp:44:31: error: 'EOF' was not declared in this scope
     while(scanf("%d",&cases)!=EOF)  
                               ^
0_0_13763622_4437.cpp:49:23: error: 'prime' was not declared in this scope
           while(cases%prime[i]==0)  
                       ^
0_0_13763622_4437.cpp:54:16: error: 'cout' was not declared in this scope
                cout<<prime[i];      
                ^
0_0_13763622_4437.cpp:57:15: error: 'cout' was not declared in this scope
               cout<<"*"<<prime[i];   
               ^
0_0_13763622_4437.cpp:62:7: error: 'cout' was not declared in this scope
       cout<<endl;  
       ^
0_0_13763622_4437.cpp:62:13: error: 'endl' was not declared in this scope
       cout<<endl;  
             ^


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-18 04:32:02, Gzip enabled