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_28953041_7956.cpp: In function 'void init()':
0_0_28953041_7956.cpp:19:9: error: 'minPoint' was not declared in this scope
         minPoint[i][0] = maxPoint[i][0] = a[i];
         ^
0_0_28953041_7956.cpp:19:26: error: 'maxPoint' was not declared in this scope
         minPoint[i][0] = maxPoint[i][0] = a[i];
                          ^
0_0_28953041_7956.cpp:24:13: error: 'minPoint' was not declared in this scope
             minPoint[i][j] = min(minPoint[i][j - 1], minPoint[i + p][j - 1]);
             ^
0_0_28953041_7956.cpp:25:13: error: 'maxPoint' was not declared in this scope
             maxPoint[i][j] = max(maxPoint[i][j - 1], maxPoint[i + p][j - 1]);
             ^
0_0_28953041_7956.cpp: In function 'int queryMin(int, int)':
0_0_28953041_7956.cpp:31:16: error: 'minPoint' was not declared in this scope
     return min(minPoint[l][k], minPoint[r - (1 << k) + 1][k]);
                ^
0_0_28953041_7956.cpp: In function 'int queryMax(int, int)':
0_0_28953041_7956.cpp:36:16: error: 'maxPoint' was not declared in this scope
     return max(maxPoint[l][k], maxPoint[r - (1 << k) + 1][k]);
                ^
0_0_28953041_7956.cpp: In function 'bool calc(node)':
0_0_28953041_7956.cpp:39:10: error: 'struct node' has no member named 'mx'
  if (tmp.mx-tmp.mi+1==cnt) return true;
          ^
0_0_28953041_7956.cpp:39:17: error: 'struct node' has no member named 'mi'
  if (tmp.mx-tmp.mi+1==cnt) return true;
                 ^
0_0_28953041_7956.cpp: In function 'void add(int)':
0_0_28953041_7956.cpp:52:6: error: 'mp' was not declared in this scope
  if (mp[tmp]==0){
      ^
0_0_28953041_7956.cpp:55:2: error: 'mp' was not declared in this scope
  mp[tmp]++;
  ^
0_0_28953041_7956.cpp: In function 'void del(int)':
0_0_28953041_7956.cpp:59:6: error: 'mp' was not declared in this scope
  if (mp[tmp]==1){
      ^
0_0_28953041_7956.cpp:62:2: error: 'mp' was not declared in this scope
  mp[tmp]--;
  ^
0_0_28953041_7956.cpp: In function 'bool calc(node)':
0_0_28953041_7956.cpp:64:6: error: redefinition of 'bool calc(node)'
 bool calc(node tmp){
      ^
0_0_28953041_7956.cpp:38:6: note: 'bool calc(node)' previously defined here
 bool calc(node tmp){
      ^
0_0_28953041_7956.cpp: In function 'int main()':
0_0_28953041_7956.cpp:83:21: error: 'mp' was not declared in this scope
   ll=1,rr=0; cnt=0; mp.clear();
                     ^


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-27 08:11:58, Gzip enabled