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_15208628_4338.cpp:8:1: error: 'vector' does not name a type
 vector <int> l[M], r[M];  
 ^
0_0_15208628_4338.cpp: In function 'void solve()':
0_0_15208628_4338.cpp:14:18: error: 'sort' was not declared in this scope
     sort(h, h+2*n);  
                  ^
0_0_15208628_4338.cpp:15:28: error: 'unique' was not declared in this scope
     int m = unique(h, h+2*n)-h;  
                            ^
0_0_15208628_4338.cpp:17:9: error: 'l' was not declared in this scope
         l[i].clear(), r[i].clear();  
         ^
0_0_15208628_4338.cpp:17:23: error: 'r' was not declared in this scope
         l[i].clear(), r[i].clear();  
                       ^
0_0_15208628_4338.cpp:19:40: error: 'lower_bound' was not declared in this scope
         x[i] = lower_bound(h, h+m, x[i])-h;  
                                        ^
0_0_15208628_4338.cpp:21:9: error: 'l' was not declared in this scope
         l[x[i]].push_back(y[i]);  
         ^
0_0_15208628_4338.cpp:22:9: error: 'r' was not declared in this scope
         r[y[i]].push_back(x[i]);  
         ^
0_0_15208628_4338.cpp:25:14: error: 'l' was not declared in this scope
         sort(l[i].begin(), l[i].end());  
              ^
0_0_15208628_4338.cpp:27:14: error: 'r' was not declared in this scope
         sort(r[i].begin(), r[i].end());  
              ^
0_0_15208628_4338.cpp:34:12: error: 'l' was not declared in this scope
         if(l[i].size() == 0) continue;  
            ^
0_0_15208628_4338.cpp:36:22: error: 'l' was not declared in this scope
         for(auto &it:l[i]) {  
                      ^
0_0_15208628_4338.cpp:37:16: error: 'r' was not declared in this scope
             if(r[it].size() == 1 && r[it][0] == i) continue;  
                ^
0_0_15208628_4338.cpp:42:16: error: 'l' was not declared in this scope
             if(l[i].size() == 1) c++;  
                ^
0_0_15208628_4338.cpp:47:12: error: 'r' was not declared in this scope
         if(r[i].size() == 0) continue;  
            ^
0_0_15208628_4338.cpp:49:22: error: 'r' was not declared in this scope
         for(auto &it:r[i]) {  
                      ^
0_0_15208628_4338.cpp:50:16: error: 'l' was not declared in this scope
             if(l[it].size() == 1 && l[it][0] == i) continue;  
                ^
0_0_15208628_4338.cpp:55:16: error: 'r' was not declared in this scope
             if(r[i].size() == 1) c++;  
                ^


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-25 13:31:19, Gzip enabled