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_39381802_8732.cpp:10:1: error: 'vector' does not name a type
   10 | vector<pair<int, int>> edges;
      | ^~~~~~
0_0_39381802_8732.cpp:11:1: error: 'vector' does not name a type
   11 | vector<Edge> graph[16];
      | ^~~~~~
0_0_39381802_8732.cpp: In function 'bool check(int)':
0_0_39381802_8732.cpp:23:28: error: 'graph' was not declared in this scope; did you mean 'isgraph'?
   23 |         for(int i = 0; i < graph[now].size(); i++){
      |                            ^~~~~
      |                            isgraph
0_0_39381802_8732.cpp: In function 'bool dfs(int, int, int, int)':
0_0_39381802_8732.cpp:46:16: error: 'edges' was not declared in this scope
   46 |     int from = edges[step].first;
      |                ^~~~~
0_0_39381802_8732.cpp: In function 'int main()':
0_0_39381802_8732.cpp:81:13: error: 'graph' was not declared in this scope; did you mean 'isgraph'?
   81 |             graph[i].clear();
      |             ^~~~~
      |             isgraph
0_0_39381802_8732.cpp:83:9: error: 'edges' was not declared in this scope
   83 |         edges.clear();
      |         ^~~~~
0_0_39381802_8732.cpp:90:13: error: 'graph' was not declared in this scope; did you mean 'isgraph'?
   90 |             graph[from].push_back(Edge(to, i));
      |             ^~~~~
      |             isgraph


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 08:36:27, Gzip enabled