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_38569372_24696.cpp:7:1: error: 'vector' does not name a type
    7 | vector<int> g[maxn];
      | ^~~~~~
0_0_38569372_24696.cpp: In function 'void mk(int, int, int)':
0_0_38569372_24696.cpp:32:19: error: 'g' was not declared in this scope
   32 |         for(int i:g[x])
      |                   ^
0_0_38569372_24696.cpp: In function 'void clac(int, int, int)':
0_0_38569372_24696.cpp:43:19: error: 'g' was not declared in this scope
   43 |         for(int i:g[x])
      |                   ^
0_0_38569372_24696.cpp: In function 'void getans(int, int)':
0_0_38569372_24696.cpp:69:19: error: 'g' was not declared in this scope
   69 |         for(int i:g[x]){
      |                   ^
0_0_38569372_24696.cpp:73:19: error: 'g' was not declared in this scope
   73 |         for(int i:g[x])
      |                   ^
0_0_38569372_24696.cpp: In function 'int main()':
0_0_38569372_24696.cpp:91:33: error: 'g' was not declared in this scope
   91 |                                 g[i].push_back(j);
      |                                 ^


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-23 05:24:07, Gzip enabled