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_39498851_17253.cpp:24:1: error: 'vector' does not name a type
   24 | vector<int> gans, lv, rv;
      | ^~~~~~
0_0_39498851_17253.cpp: In function 'void CDQ(int*, int*, int, int)':
0_0_39498851_17253.cpp:58:9: error: 'lv' was not declared in this scope; did you mean 'l'?
   58 |         lv.clear(), rv.clear();
      |         ^~
      |         l
0_0_39498851_17253.cpp:58:21: error: 'rv' was not declared in this scope; did you mean 'r'?
   58 |         lv.clear(), rv.clear();
      |                     ^~
      |                     r
0_0_39498851_17253.cpp:61:30: error: 'gans' was not declared in this scope; did you mean 'ans'?
   61 |                 lv.push_back(gans[i]);
      |                              ^~~~
      |                              ans
0_0_39498851_17253.cpp:63:30: error: 'gans' was not declared in this scope; did you mean 'ans'?
   63 |                 rv.push_back(gans[i]);
      |                              ^~~~
      |                              ans
0_0_39498851_17253.cpp:69:25: error: 'gans' was not declared in this scope; did you mean 'ans'?
   69 |                         gans[pl++] = lv[i];
      |                         ^~~~
      |                         ans
0_0_39498851_17253.cpp:75:25: error: 'gans' was not declared in this scope; did you mean 'ans'?
   75 |                         gans[pl++] = rv[j];
      |                         ^~~~
      |                         ans
0_0_39498851_17253.cpp:84:17: error: 'gans' was not declared in this scope; did you mean 'ans'?
   84 |                 gans[pl++] = lv[i];
      |                 ^~~~
      |                 ans
0_0_39498851_17253.cpp:89:17: error: 'gans' was not declared in this scope; did you mean 'ans'?
   89 |                 gans[pl++] = rv[j];
      |                 ^~~~
      |                 ans
0_0_39498851_17253.cpp: In function 'int main()':
0_0_39498851_17253.cpp:104:9: error: 'gans' was not declared in this scope; did you mean 'ans'?
  104 |         gans.resize(n + 1);
      |         ^~~~
      |         ans


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-14 12:55:28, Gzip enabled