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_28698361_13304.cpp:4:9: error: 'maxn' was not declared in this scope
 int bit[maxn+10],n;
         ^
0_0_28698361_13304.cpp: In function 'int sum(int)':
0_0_28698361_13304.cpp:10:14: error: 'bit' was not declared in this scope
         ans+=bit[i];
              ^
0_0_28698361_13304.cpp: In function 'void add(int, int)':
0_0_28698361_13304.cpp:19:9: error: 'bit' was not declared in this scope
         bit[i]+=x;
         ^
0_0_28698361_13304.cpp: At global scope:
0_0_28698361_13304.cpp:27:8: error: 'maxn' was not declared in this scope
 }piece[maxn*2+10];
        ^
0_0_28698361_13304.cpp:30:6: error: 'maxn' was not declared in this scope
 }cut[maxn+10];
      ^
0_0_28698361_13304.cpp: In function 'int main()':
0_0_28698361_13304.cpp:37:16: error: 'piece' was not declared in this scope
         memset(piece,0,sizeof(piece));
                ^
0_0_28698361_13304.cpp:38:16: error: 'cut' was not declared in this scope
         memset(cut,0,sizeof(cut));
                ^
0_0_28698361_13304.cpp:39:16: error: 'bit' was not declared in this scope
         memset(bit,0,sizeof(bit));
                ^
0_0_28698361_13304.cpp:54:13: error: 's' was not declared in this scope
             s=s%(ww+dd);
             ^
0_0_28698361_13304.cpp:54:21: error: 'dd' was not declared in this scope
             s=s%(ww+dd);
                     ^
0_0_28698361_13304.cpp:75:17: error: 'maxn' was not declared in this scope
         int ans[maxn+10],pos=0;
                 ^
0_0_28698361_13304.cpp:78:17: error: 'ans' was not declared in this scope
                 ans[pos]=piece[i].w*piece[i].d;
                 ^
0_0_28698361_13304.cpp:82:14: error: 'ans' was not declared in this scope
         sort(ans,ans+pos);
              ^


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-06-23 10:08:05, Gzip enabled