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_15777011_14048.cpp:18:1: error: 'vector' does not name a type
 vector<PII> g[maxn];
 ^
0_0_15777011_14048.cpp:19:1: error: 'vector' does not name a type
 vector<int> li;
 ^
0_0_15777011_14048.cpp: In function 'int main()':
0_0_15777011_14048.cpp:34:9: error: 'li' was not declared in this scope
         li.clear();
         ^
0_0_15777011_14048.cpp:37:31: error: 'g' was not declared in this scope
         for(int i=1;i<=n;i++) g[i].clear();
                               ^
0_0_15777011_14048.cpp:42:13: error: 'g' was not declared in this scope
             g[x].push_back(MP(y,z));
             ^
0_0_15777011_14048.cpp:45:33: error: 'sort' was not declared in this scope
         sort(li.begin(),li.end());
                                 ^
0_0_15777011_14048.cpp:46:44: error: 'unique' was not declared in this scope
         li.erase(unique(li.begin(),li.end()),li.end());
                                            ^
0_0_15777011_14048.cpp:48:18: error: 'g' was not declared in this scope
             sort(g[i].begin(),g[i].end());
                  ^
0_0_15777011_14048.cpp:50:23: error: 'sum' was not declared in this scope
                 if(j) sum[i].push_back(sum[i][j-1]+(g[i][j].Y==1));
                       ^
0_0_15777011_14048.cpp:51:22: error: 'sum' was not declared in this scope
                 else sum[i].push_back(g[i][j].Y==1);
                      ^
0_0_15777011_14048.cpp:54:17: error: 'sum' was not declared in this scope
                 sum[i][j]+=(g[i][j].Y==0);
                 ^
0_0_15777011_14048.cpp:61:31: error: 'g' was not declared in this scope
                 for(int j=0;j<g[i].size();j++){
                               ^
0_0_15777011_14048.cpp:62:21: error: 'st' was not declared in this scope
                     st=lower_bound(li.begin(),li.end(),g[i][j].X)-li.begin()+1;
                     ^
0_0_15777011_14048.cpp:63:21: error: 'ed' was not declared in this scope
                     ed=(j==g[i].size()-1?sz:lower_bound(li.begin(),li.end(),g[i][j+1].X)-li.begin());
                     ^
0_0_15777011_14048.cpp:63:42: error: 'sz' was not declared in this scope
                     ed=(j==g[i].size()-1?sz:lower_bound(li.begin(),li.end(),g[i][j+1].X)-li.begin());
                                          ^
0_0_15777011_14048.cpp:64:32: error: 'sum' was not declared in this scope
                     Same(st,ed,sum[i][j],1,n,1);
                                ^
0_0_15777011_14048.cpp:64:47: error: 'Same' was not declared in this scope
                     Same(st,ed,sum[i][j],1,n,1);
                                               ^
0_0_15777011_14048.cpp:69:31: error: 'g' was not declared in this scope
                 for(int j=0;j<g[i-1].size();j++){
                               ^
0_0_15777011_14048.cpp:76:41: error: 'Max' cannot be used as a function
                     tans=Max(1,tmp,1,n,1);
                                         ^
0_0_15777011_14048.cpp:78:62: error: 'upper_bound' was not declared in this scope
                 int fi=upper_bound(li.begin(),li.end(),h[i-1])-li.begin();//第一个小于等于h[i-1]的数字
                                                              ^
0_0_15777011_14048.cpp:79:17: error: 'lastid' was not declared in this scope
                 lastid=1;
                 ^
0_0_15777011_14048.cpp:81:31: error: 'g' was not declared in this scope
                 for(int j=0;j<g[i].size();j++){
                               ^
0_0_15777011_14048.cpp:84:47: error: 'sum' was not declared in this scope
                         Same(lastid,id-1,tans+sum[i][j]);
                                               ^
0_0_15777011_14048.cpp:84:56: error: 'Same' was not declared in this scope
                         Same(lastid,id-1,tans+sum[i][j]);
                                                        ^
0_0_15777011_14048.cpp:88:57: error: 'sum' was not declared in this scope
                             Same(lastid,fi,tans+(j==0?0:sum[i][j-1]));
                                                         ^
0_0_15777011_14048.cpp:88:69: error: 'Same' was not declared in this scope
                             Same(lastid,fi,tans+(j==0?0:sum[i][j-1]));
                                                                     ^
0_0_15777011_14048.cpp:91:43: error: expected primary-expression before ')' token
                             Add(lastid,id,)
                                           ^
0_0_15777011_14048.cpp:91:43: error: 'Add' was not declared in this scope


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 09:04:24, Gzip enabled