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_38695360_22837.cpp:109:5: error: 'vector' does not name a type
  109 |     vector<int> v;
      |     ^~~~~~
0_0_38695360_22837.cpp: In function 'void pushup(int, int, int)':
0_0_38695360_22837.cpp:114:22: error: 'struct Node' has no member named 'v'
  114 |     auto &u = tr[rt].v, &l = tr[ls].v, &r = tr[rs].v;
      |                      ^
0_0_38695360_22837.cpp:116:22: error: 'l' was not declared in this scope; did you mean 'ls'?
  116 |     for (auto item : l) v[cnt++] = item;
      |                      ^
      |                      ls
0_0_38695360_22837.cpp:117:22: error: 'r' was not declared in this scope; did you mean 'rt'?
  117 |     for (auto item : r) v[cnt++] = item;
      |                      ^
      |                      rt
0_0_38695360_22837.cpp: In function 'void change(int, int)':
0_0_38695360_22837.cpp:139:11: error: 'struct Node' has no member named 'v'
  139 |     tr[u].v = {x};
      |           ^
0_0_38695360_22837.cpp: In function 'void query(int, int, int)':
0_0_38695360_22837.cpp:161:32: error: 'struct Node' has no member named 'v'
  161 |         for (auto item : tr[u].v) v[cnt++] = item;
      |                                ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 12:04:05, Gzip enabled