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_24601586_9814.cpp:4:9: error: 'maxn' was not declared in this scope
 int n,a[maxn],ans[maxn];  
         ^
0_0_24601586_9814.cpp:4:19: error: 'maxn' was not declared in this scope
 int n,a[maxn],ans[maxn];  
                   ^
0_0_24601586_9814.cpp: In function 'int getsum(int)':
0_0_24601586_9814.cpp:13:14: error: 'a' was not declared in this scope
         s += a[n];  
              ^
0_0_24601586_9814.cpp: In function 'void add(int)':
0_0_24601586_9814.cpp:21:16: error: 'maxn' was not declared in this scope
     while(x <= maxn)  
                ^
0_0_24601586_9814.cpp:23:11: error: 'a' was not declared in this scope
         ++a[x];  
           ^
0_0_24601586_9814.cpp: In function 'int main()':
0_0_24601586_9814.cpp:33:16: error: 'a' was not declared in this scope
         memset(a,0,sizeof(a));
                ^
0_0_24601586_9814.cpp:34:16: error: 'ans' was not declared in this scope
         memset(ans,0,sizeof(ans));
                ^


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-17 07:28:34, Gzip enabled