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_38804101_14973.cpp:1:9: error: 'pair' does not name a type
    1 | typedef pair<int,int> P;
      |         ^~~~
0_0_38804101_14973.cpp:6:1: error: 'vector' does not name a type
    6 | vector<int> G[maxn];
      | ^~~~~~
0_0_38804101_14973.cpp: In function 'void dfs(int, bool)':
0_0_38804101_14973.cpp:11:17: error: 'G' was not declared in this scope
   11 |     for(auto c: G[node]){
      |                 ^
0_0_38804101_14973.cpp: In function 'int main()':
0_0_38804101_14973.cpp:17:11: error: 'cin' was not declared in this scope
   17 |     int T;cin>>T;
      |           ^~~
0_0_38804101_14973.cpp:20:36: error: 'G' was not declared in this scope
   20 |         for(int i = 0;i <= n; ++i) G[i].clear();
      |                                    ^
0_0_38804101_14973.cpp:21:9: error: 'me' was not declared in this scope; did you mean 'm'?
   21 |         me(vis);
      |         ^~
      |         m
0_0_38804101_14973.cpp:22:13: error: 'i' was not declared in this scope
   22 |         rep(i,0,m){
      |             ^
0_0_38804101_14973.cpp:22:9: error: 'rep' was not declared in this scope
   22 |         rep(i,0,m){
      |         ^~~
0_0_38804101_14973.cpp:27:16: error: 'P' was not declared in this scope
   27 |         vector<P> vec;
      |                ^
0_0_38804101_14973.cpp:27:9: error: 'vector' was not declared in this scope
   27 |         vector<P> vec;
      |         ^~~~~~
0_0_38804101_14973.cpp:27:19: error: 'vec' was not declared in this scope
   27 |         vector<P> vec;
      |                   ^~~
0_0_38804101_14973.cpp:34:9: error: 'bitset' was not declared in this scope
   34 |         bitset<maxn> b;
      |         ^~~~~~
0_0_38804101_14973.cpp:34:22: error: 'b' was not declared in this scope
   34 |         bitset<maxn> b;
      |                      ^
0_0_38804101_14973.cpp:41:9: error: 'LL' was not declared in this scope
   41 |         LL ans = 0;
      |         ^~
0_0_38804101_14973.cpp:44:17: error: 'ans' was not declared in this scope
   44 |                 ans = max(ans,1ll*(n-i)*i-m);
      |                 ^~~
0_0_38804101_14973.cpp:44:23: error: 'max' was not declared in this scope; did you mean 'maxn'?
   44 |                 ans = max(ans,1ll*(n-i)*i-m);
      |                       ^~~
      |                       maxn
0_0_38804101_14973.cpp:47:9: error: 'cout' was not declared in this scope
   47 |         cout<<ans<<endl;
      |         ^~~~
0_0_38804101_14973.cpp:47:15: error: 'ans' was not declared in this scope
   47 |         cout<<ans<<endl;
      |               ^~~
0_0_38804101_14973.cpp:47:20: error: 'endl' was not declared in this scope
   47 |         cout<<ans<<endl;
      |                    ^~~~


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-25 12:54:34, Gzip enabled