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_21853433_2186.cpp:20:1: error: 'vector' does not name a type
 vector<int>G[maxn],g[maxn];
 ^
0_0_21853433_2186.cpp:21:1: error: 'stack' does not name a type
 stack<int>S;
 ^
0_0_21853433_2186.cpp: In function 'void init()':
0_0_21853433_2186.cpp:28:15: error: 'Fill' was not declared in this scope
     Fill(dfn,0); Fill(low,0);
               ^
0_0_21853433_2186.cpp:31:9: error: 'G' was not declared in this scope
         G[i].clear();
         ^
0_0_21853433_2186.cpp:32:9: error: 'g' was not declared in this scope
         g[i].clear();
         ^
0_0_21853433_2186.cpp: In function 'void tarjan(int)':
0_0_21853433_2186.cpp:40:5: error: 'S' was not declared in this scope
     S.push(u);
     ^
0_0_21853433_2186.cpp:41:20: error: 'G' was not declared in this scope
     for(int i=0; i<G[u].size(); i++){
                    ^
0_0_21853433_2186.cpp:45:41: error: 'min' was not declared in this scope
             low[u] = min(low[u],low[nex]);
                                         ^
0_0_21853433_2186.cpp:45:41: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_21853433_2186.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note:   'std::min'
     min(initializer_list<_Tp> __l, _Compare __comp)
     ^
0_0_21853433_2186.cpp:48:41: error: 'min' was not declared in this scope
             low[u] = min(low[u],dfn[nex]);
                                         ^
0_0_21853433_2186.cpp:48:41: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_21853433_2186.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note:   'std::min'
     min(initializer_list<_Tp> __l, _Compare __comp)
     ^
0_0_21853433_2186.cpp: In function 'void solve()':
0_0_21853433_2186.cpp:68:9: error: 'G' was not declared in this scope
         G[u].push_back(v);
         ^
0_0_21853433_2186.cpp:73:23: error: 'G' was not declared in this scope
         for(int j=0;j<G[i].size();j++){
                       ^
0_0_21853433_2186.cpp:76:17: error: 'g' was not declared in this scope
                 g[bel[i]].push_back(bel[to]);
                 ^
0_0_21853433_2186.cpp:82:5: error: 'queue' was not declared in this scope
     queue<int > q;
     ^
0_0_21853433_2186.cpp:82:5: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_21853433_2186.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:96:11: note:   'std::queue'
     class queue
           ^
0_0_21853433_2186.cpp:82:11: error: expected primary-expression before 'int'
     queue<int > q;
           ^
0_0_21853433_2186.cpp:86:13: error: 'q' was not declared in this scope
             q.push(i);
             ^
0_0_21853433_2186.cpp:91:16: error: 'q' was not declared in this scope
         while(!q.empty()){
                ^
0_0_21853433_2186.cpp:94:27: error: 'g' was not declared in this scope
             for(int i=0;i<g[tmp].size();i++){
                           ^


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-12-05 10:27:14, Gzip enabled