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_35200456_22302.cpp:4:14: error: array bound is not an integer constant before ']' token
 int prime[MAX];
              ^
0_0_35200456_22302.cpp:5:12: error: array bound is not an integer constant before ']' token
 int isp[MAX];
            ^
0_0_35200456_22302.cpp: In function 'void f()':
0_0_35200456_22302.cpp:12:12: error: 'isp' was not declared in this scope
         if(isp[i]==0)
            ^
0_0_35200456_22302.cpp:14:13: error: 'prime' was not declared in this scope
             prime[cott]=i;
             ^
0_0_35200456_22302.cpp:17:32: error: 'prime' was not declared in this scope
         for(int j=0;j<cott&& i*prime[j]<MAX;j++)
                                ^
0_0_35200456_22302.cpp:19:13: error: 'isp' was not declared in this scope
             isp[i*prime[j]]=1;
             ^
0_0_35200456_22302.cpp: In function 'int main()':
0_0_35200456_22302.cpp:42:16: error: 'prime' was not declared in this scope
             if(prime[i]-prime[i-1]==c)
                ^


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-07-09 00:40:38, Gzip enabled