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_38959048_5067.cpp:39:1: error: 'vector' does not name a type
   39 | vector<int> vt[N];
      | ^~~~~~
0_0_38959048_5067.cpp: In function 'void solve()':
0_0_38959048_5067.cpp:51:17: error: 'vt' was not declared in this scope
   51 |                 vt[j].push_back(i);
      |                 ^~
0_0_38959048_5067.cpp:53:21: error: 'vt' was not declared in this scope
   53 |             if(x>1) vt[x].push_back(i);
      |                     ^~
0_0_38959048_5067.cpp:69:33: error: 'vt' was not declared in this scope
   69 |             int num=upper_bound(vt[i].begin(),vt[i].end(),r)-lower_bound(vt[i].begin(),vt[i].end(),l);
      |                                 ^~
0_0_38959048_5067.cpp:86:29: error: 'vt' was not declared in this scope
   86 |         int num=upper_bound(vt[d].begin(),vt[d].end(),r)-lower_bound(vt[d].begin(),vt[d].end(),l);
      |                             ^~


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-06-26 16:53:56, Gzip enabled