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_25025280_6725.cpp:9:1: error: expected initializer before 'stack'
 stack<int> sta;
 ^
0_0_25025280_6725.cpp: In function 'void Tarjanbcc(int, int)':
0_0_25025280_6725.cpp:25:14: error: 'Wcnt' was not declared in this scope
  Wflag[curr]=Wcnt;sta.push(curr);
              ^
0_0_25025280_6725.cpp:25:19: error: 'sta' was not declared in this scope
  Wflag[curr]=Wcnt;sta.push(curr);
                   ^
0_0_25025280_6725.cpp:26:24: error: 'Index' was not declared in this scope
  dfn[curr]=low[curr]=++Index;
                        ^
0_0_25025280_6725.cpp:39:6: error: 'bcc_cnt' was not declared in this scope
      bcc_cnt++;
      ^
0_0_25025280_6725.cpp:40:33: error: expected primary-expression before 'continue'
      if(sta.top()==v) sta.pop(),continue;
                                 ^
0_0_25025280_6725.cpp: In function 'bool Pd(const int&, const int&)':
0_0_25025280_6725.cpp:57:10: error: no match for 'operator=' (operand types are 'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' and '<unresolved overloaded function type>')
   for(ite=bcc[x].begin;ite<bcc[x].end;ite++)
          ^
0_0_25025280_6725.cpp:57:10: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60:0,
                 from 0_0_25025280_6725.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:242:12: note: std::_Rb_tree_const_iterator<int>& std::_Rb_tree_const_iterator<int>::operator=(const std::_Rb_tree_const_iterator<int>&)
     struct _Rb_tree_const_iterator
            ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:242:12: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const std::_Rb_tree_const_iterator<int>&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:242:12: note: std::_Rb_tree_const_iterator<int>& std::_Rb_tree_const_iterator<int>::operator=(std::_Rb_tree_const_iterator<int>&&)
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:242:12: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::_Rb_tree_const_iterator<int>&&'
0_0_25025280_6725.cpp:57:27: error: no match for 'operator<' (operand types are 'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' and '<unresolved overloaded function type>')
   for(ite=bcc[x].begin;ite<bcc[x].end;ite++)
                           ^
0_0_25025280_6725.cpp:57:27: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
                 from 0_0_25025280_6725.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:220:5: note: template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
     operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:220:5: note:   template argument deduction/substitution failed:
0_0_25025280_6725.cpp:57:35: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::pair<_T1, _T2>'
   for(ite=bcc[x].begin;ite<bcc[x].end;ite++)
                                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
                 from 0_0_25025280_6725.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:298:5: note: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
     operator<(const reverse_iterator<_Iterator>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:298:5: note:   template argument deduction/substitution failed:
0_0_25025280_6725.cpp:57:35: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::reverse_iterator<_Iterator>'
   for(ite=bcc[x].begin;ite<bcc[x].end;ite++)
                                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
                 from 0_0_25025280_6725.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:348:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
     operator<(const reverse_iterator<_IteratorL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:348:5: note:   template argument deduction/substitution failed:
0_0_25025280_6725.cpp:57:35: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::reverse_iterator<_Iterator>'
   for(ite=bcc[x].begin;ite<bcc[x].end;ite++)
                                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
                 from 0_0_25025280_6725.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1072:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&)
     operator<(const move_iterator<_IteratorL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1072:5: note:   template argument deduction/substitution failed:
0_0_25025280_6725.cpp:57:35: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::move_iterator<_Iterator>'
   for(ite=bcc[x].begin;ite<bcc[x].end;ite++)
                                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
                 from 0_0_25025280_6725.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1078:5: note: template<class _Iterator> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
     operator<(const move_iterator<_Iterator>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1078:5: note:   template argument deduction/substitution failed:
0_0_25025280_6725.cpp:57:35: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::move_iterator<_Iterator>'
   for(ite=bcc[x].begin;ite<bcc[x].end;ite++)
                                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60:0,
                 from 0_0_25025280_6725.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:980:5: note: template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> bool std::operator<(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)
     operator<(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:980:5: note:   template argument deduction/substitution failed:
0_0_25025280_6725.cpp:57:35: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>'
   for(ite=bcc[x].begin;ite<bcc[x].end;ite++)
                                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:61:0,
                 from 0_0_25025280_6725.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:810:5: note: template<class _Key, class _Compare, class _Alloc> bool std::operator<(const std::set<_Key, _Compare, _Alloc>&, const std::set<_Key, _Compare, _Alloc>&)
     operator<(const set<_Key, _Compare, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:810:5: note:   template argument deduction/substitution failed:
0_0_25025280_6725.cpp:57:35: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::set<_Key, _Compare, _Alloc>'
   for(ite=bcc[x].begin;ite<bcc[x].end;ite++)
                                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:62:0,
                 from 0_0_25025280_6725.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:794:5: note: template<class _Key, class _Compare, class _Alloc> bool std::operator<(const std::multiset<_Key, _Compare, _Alloc>&, const std::multiset<_Key, _Compare, _Alloc>&)
     operator<(const multiset<_Key, _Compare, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:794:5: note:   template argument deduction/substitution f


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-04 05:18:23, Gzip enabled