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_38897533_19227.cpp:7:1: error: 'vector' does not name a type
    7 | vector<int> G[N * 2], vec[N * 2];
      | ^~~~~~
0_0_38897533_19227.cpp: In function 'int main()':
0_0_38897533_19227.cpp:25:40: error: 'vec' was not declared in this scope
   25 |         for (int i = 1; i <= top; i++) vec[i].clear(), G[i].clear();
      |                                        ^~~
0_0_38897533_19227.cpp:25:56: error: 'G' was not declared in this scope
   25 |         for (int i = 1; i <= top; i++) vec[i].clear(), G[i].clear();
      |                                                        ^
0_0_38897533_19227.cpp:27:72: error: 'vec' was not declared in this scope
   27 |             h[i] = lower_bound(flag + 1, flag + top + 1, h[i]) - flag, vec[h[i]].push_back(i);
      |                                                                        ^~~
0_0_38897533_19227.cpp:29:72: error: 'G' was not declared in this scope
   29 |             y[i] = lower_bound(flag + 1, flag + top + 1, y[i]) - flag, G[y[i]].push_back(i);
      |                                                                        ^
0_0_38897533_19227.cpp:31:36: error: 'G' was not declared in this scope
   31 |             for (const auto &lxl : G[i]) F[get(x[lxl])] += (z[lxl] * 2 - 1);
      |                                    ^
0_0_38897533_19227.cpp:32:36: error: 'vec' was not declared in this scope
   32 |             for (const auto &lxl : vec[i]) {
      |                                    ^~~
0_0_38897533_19227.cpp:34:20: error: 'v' was not declared in this scope
   34 |                 fa[v] = u;
      |                    ^
0_0_38897533_19227.cpp:39:36: error: 'G' was not declared in this scope
   39 |             for (const auto &lxl : G[i])
      |                                    ^
0_0_38897533_19227.cpp:45:36: error: 'G' was not declared in this scope
   45 |             for (const auto &lxl : G[i]) vis[get(x[lxl])] = 0;
      |                                    ^
0_0_38897533_19227.cpp:49:36: error: 'G' was not declared in this scope
   49 |             for (const auto &lxl : G[i]) F[get(x[lxl])] = 0;
      |                                    ^


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 11:22:12, Gzip enabled