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_17908834_19488.cpp:6:9: error: 'maxn' was not declared in this scope
 int cor[maxn];
         ^
0_0_17908834_19488.cpp:9:5: error: 'maxn' was not declared in this scope
 } r[maxn];
     ^
0_0_17908834_19488.cpp: In function 'void init()':
0_0_17908834_19488.cpp:23:39: error: 'r' was not declared in this scope
  for (int i=0; i<n; i++) scanf("%d", &r[i].a);
                                       ^
0_0_17908834_19488.cpp:24:39: error: 'r' was not declared in this scope
  for (int i=0; i<n; i++) scanf("%d", &r[i].b);
                                       ^
0_0_17908834_19488.cpp:25:7: error: 'r' was not declared in this scope
  sort(r, r+n, cmp);
       ^
0_0_17908834_19488.cpp:25:18: error: 'sort' was not declared in this scope
  sort(r, r+n, cmp);
                  ^
0_0_17908834_19488.cpp: In function 'void solve()':
0_0_17908834_19488.cpp:29:26: error: 'cor' was not declared in this scope
  int i=0, last=0; memset(cor, 0, sizeof cor);
                          ^
0_0_17908834_19488.cpp:29:44: error: 'memset' was not declared in this scope
  int i=0, last=0; memset(cor, 0, sizeof cor);
                                            ^
0_0_17908834_19488.cpp:33:24: error: 'r' was not declared in this scope
   while (i+1!=n && equ(r[i], r[i+1])){
                        ^
0_0_17908834_19488.cpp:36:16: error: 'r' was not declared in this scope
   while (last!=r[i].a){
                ^
0_0_17908834_19488.cpp:40:21: error: 'r' was not declared in this scope
   int tmp = (n+1 - (r[i].a+r[i].b) + 1);
                     ^


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-30 07:45:42, Gzip enabled