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_24909079_15076.cpp:9:1: error: 'vector' does not name a type
 vector<int>v[100000];
 ^
0_0_24909079_15076.cpp: In function 'int main()':
0_0_24909079_15076.cpp:15:26: error: 'memset' was not declared in this scope
     memset(vp,0,sizeof vp);
                          ^
0_0_24909079_15076.cpp:24:29: error: 'v' was not declared in this scope
      for(int j=0;j<pcnt;j++)v[p[j]].clear();
                             ^
0_0_24909079_15076.cpp:30:21: error: 'v' was not declared in this scope
                     v[p[j]].push_back(i);
                     ^
0_0_24909079_15076.cpp:34:20: error: 'v' was not declared in this scope
             if(a>1)v[a].push_back(i);
                    ^
0_0_24909079_15076.cpp:42:40: error: 'v' was not declared in this scope
                     ll len=upper_bound(v[p[j]].begin(),v[p[j]].end(),r)
                                        ^
0_0_24909079_15076.cpp:42:71: error: 'upper_bound' was not declared in this scope
                     ll len=upper_bound(v[p[j]].begin(),v[p[j]].end(),r)
                                                                       ^
0_0_24909079_15076.cpp:48:36: error: 'v' was not declared in this scope
                 ll len=upper_bound(v[d].begin(),v[d].end(),r)
                                    ^
0_0_24909079_15076.cpp:48:61: error: 'upper_bound' was not declared in this scope
                 ll len=upper_bound(v[d].begin(),v[d].end(),r)
                                                             ^


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-07-01 15:07:58, Gzip enabled