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_25053902_15950.cpp: In function 'int prime(int*)':
0_0_25053902_15950.cpp:7:2: error: 'nbsp' was not declared in this scope
  
  ^
0_0_25053902_15950.cpp:10:64: error: 'i' was not declared in this scope
          if( hash[i/2] )
                                                                ^
0_0_25053902_15950.cpp:11:67: error: continue statement not within a loop
            continue;
                                                                   ^
0_0_25053902_15950.cpp:12:61: error: 'i' was not declared in this scope
          int x=i<<1;
                                                             ^
0_0_25053902_15950.cpp:14:78: error: 'j' was not declared in this scope
             hash[j/2]=1;   
                                                                              ^
0_0_25053902_15950.cpp:20:64: error: 'i' was not declared in this scope
          if( hash[i]==0 )
                                                                ^
0_0_25053902_15950.cpp:21:70: error: 'i' was not declared in this scope
          num[++count]=( i<<1 )+1;    
                                                                      ^
0_0_25053902_15950.cpp: At global scope:
0_0_25053902_15950.cpp:25:6: error: 'nbsp' declared as reference but not initialized
 bool  judge( int num[], int count , long long  number )
      ^
0_0_25053902_15950.cpp:25:56: error: expected ')' before ';' token
 bool  judge( int num[], int count , long long  number )
                                                        ^
0_0_25053902_15950.cpp:25:56: error: expected constructor, destructor, or type conversion before ';' token
0_0_25053902_15950.cpp:25:58: error: 'number' does not name a type
 bool  judge( int num[], int count , long long  number )
                                                          ^
0_0_25053902_15950.cpp: In function 'int main()':
0_0_25053902_15950.cpp:54:69: error: 'i' was not declared in this scope
         printf( "Case %d: ",i );
                                                                     ^
0_0_25053902_15950.cpp:55:80: error: 'judge' was not declared in this scope
         bool t=judge( num,count,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-23 05:13:12, Gzip enabled