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_39749957_18647.cpp:15:1: error: 'vector' does not name a type
   15 | vector<int> sum[N];
      | ^~~~~~
0_0_39749957_18647.cpp: In function 'void work()':
0_0_39749957_18647.cpp:19:34: error: 'sum' was not declared in this scope
   19 |         for(int i=1;i<=1e5;i++)  sum[i].clear();
      |                                  ^~~
0_0_39749957_18647.cpp:30:33: error: 'sum' was not declared in this scope; did you mean 'num'?
   30 |                                 sum[x].push_back(i);
      |                                 ^~~
      |                                 num
0_0_39749957_18647.cpp:34:28: error: 'sum' was not declared in this scope; did you mean 'num'?
   34 |                 if(num>1)  sum[num].push_back(i);
      |                            ^~~
      |                            num
0_0_39749957_18647.cpp:56:54: error: 'sum' was not declared in this scope; did you mean 'sumlr'?
   56 |                         int sumlr=(int)( upper_bound(sum[x].begin(),sum[x].end(),r) - lower_bound(sum[x].begin(),sum[x].end(),l) );
      |                                                      ^~~
      |                                                      sumlr
0_0_39749957_18647.cpp:64:54: error: 'sum' was not declared in this scope; did you mean 'sumlr'?
   64 |                         int sumlr=(int)( upper_bound(sum[x].begin(),sum[x].end(),r) - lower_bound(sum[x].begin(),sum[x].end(),l) );
      |                                                      ^~~
      |                                                      sumlr


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-26 09:41:59, Gzip enabled