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_22079714_20803.cpp:4:14: error: expected primary-expression before '=' token
 #define maxn = 50000;  
              ^
0_0_22079714_20803.cpp:5:12: note: in expansion of macro 'maxn'
 bool judge[maxn];  
            ^
0_0_22079714_20803.cpp:4:21: error: expected ']' before ';' token
 #define maxn = 50000;  
                     ^
0_0_22079714_20803.cpp:5:12: note: in expansion of macro 'maxn'
 bool judge[maxn];  
            ^
0_0_22079714_20803.cpp:5:16: error: expected unqualified-id before ']' token
 bool judge[maxn];  
                ^
0_0_22079714_20803.cpp: In function 'void solve()':
0_0_22079714_20803.cpp:8:9: error: 'judge' was not declared in this scope
  memset(judge, true, sizeof(judge));  
         ^
0_0_22079714_20803.cpp:4:14: error: expected primary-expression before '=' token
 #define maxn = 50000;  
              ^
0_0_22079714_20803.cpp:10:24: note: in expansion of macro 'maxn'
     for(int i = 2; i < maxn; i++){    
                        ^
0_0_22079714_20803.cpp:10:28: error: expected primary-expression before ';' token
     for(int i = 2; i < maxn; i++){    
                            ^
0_0_22079714_20803.cpp:10:28: error: expected ')' before ';' token
0_0_22079714_20803.cpp:10:30: error: 'i' was not declared in this scope
     for(int i = 2; i < maxn; i++){    
                              ^


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-12-05 08:25:57, Gzip enabled