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_39596299_12437.cpp:1:2: error: stray '#' in program
    1 | v#include<bits/stdc++.h>
      |  ^
0_0_39596299_12437.cpp:1:1: error: 'v' does not name a type
    1 | v#include<bits/stdc++.h>
      | ^
0_0_39596299_12437.cpp:7:1: error: 'vector' does not name a type
    7 | vector<node>v[100010];
      | ^~~~~~
0_0_39596299_12437.cpp:13:1: error: 'set' does not name a type
   13 | set<int>s;
      | ^~~
0_0_39596299_12437.cpp: In function 'void dfs(long long int, long long int)':
0_0_39596299_12437.cpp:19:24: error: 'v' was not declared in this scope
   19 |         for(int i=0; i<v[x].size(); i++) {
      |                        ^
0_0_39596299_12437.cpp: In function 'long long int lca(long long int, long long int)':
0_0_39596299_12437.cpp:27:28: error: 'swap' was not declared in this scope
   27 |         if(deep[a]<deep[b])swap(a,b);
      |                            ^~~~
0_0_39596299_12437.cpp: In function 'int main()':
0_0_39596299_12437.cpp:48:9: error: 'ios' has not been declared
   48 |         ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
      |         ^~~
0_0_39596299_12437.cpp:48:33: error: 'cin' was not declared in this scope
   48 |         ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
      |                                 ^~~
0_0_39596299_12437.cpp:48:44: error: 'cout' was not declared in this scope
   48 |         ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
      |                                            ^~~~
0_0_39596299_12437.cpp:53:17: error: 's' was not declared in this scope
   53 |                 s.clear();
      |                 ^
0_0_39596299_12437.cpp:57:40: error: 'v' was not declared in this scope
   57 |                 for(int i=1; i<=n; i++)v[i].clear();
      |                                        ^
0_0_39596299_12437.cpp:61:25: error: 'v' was not declared in this scope
   61 |                         v[u].push_back({vv,w});
      |                         ^


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 06:46:30, Gzip enabled