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_24294694_11393.cpp:12:1: error: 'queue' does not name a type
 queue<int> q;
 ^
0_0_24294694_11393.cpp: In function 'void DFS(int, int)':
0_0_24294694_11393.cpp:18:21: error: 'FI' was not declared in this scope
     FI(p[top].size()){
                     ^
0_0_24294694_11393.cpp: In function 'bool BFS()':
0_0_24294694_11393.cpp:26:19: error: no matching function for call to 'fill(bool [1005], bool)'
     fill(vis,false);
                   ^
0_0_24294694_11393.cpp:26:19: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
                 from 0_0_24294694_11393.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:732:5: note: template<class _ForwardIterator, class _Tp> void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&)
     fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:732:5: note:   template argument deduction/substitution failed:
0_0_24294694_11393.cpp:26:19: note:   deduced conflicting types for parameter '_ForwardIterator' ('bool*' and 'bool')
     fill(vis,false);
                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_24294694_11393.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:398:3: note: void std::fill(std::_Bit_iterator, std::_Bit_iterator, const bool&)
   fill(_Bit_iterator __first, _Bit_iterator __last, const bool& __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:398:3: note:   candidate expects 3 arguments, 2 provided
0_0_24294694_11393.cpp:27:15: error: no matching function for call to 'fill(int [1005], int)'
     fill(num,0);
               ^
0_0_24294694_11393.cpp:27:15: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
                 from 0_0_24294694_11393.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:732:5: note: template<class _ForwardIterator, class _Tp> void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&)
     fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:732:5: note:   template argument deduction/substitution failed:
0_0_24294694_11393.cpp:27:15: note:   deduced conflicting types for parameter '_ForwardIterator' ('int*' and 'int')
     fill(num,0);
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_24294694_11393.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:398:3: note: void std::fill(std::_Bit_iterator, std::_Bit_iterator, const bool&)
   fill(_Bit_iterator __first, _Bit_iterator __last, const bool& __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:398:3: note:   candidate expects 3 arguments, 2 provided
0_0_24294694_11393.cpp:30:15: error: 'FI' was not declared in this scope
     FI(depth+1){
               ^
0_0_24294694_11393.cpp: In function 'int main()':
0_0_24294694_11393.cpp:39:15: error: 'S' was not declared in this scope
      while(S(n)!=EOF)
               ^
0_0_24294694_11393.cpp:41:15: error: 'FI' was not declared in this scope
         FI(n+1)   p[i].clear();
               ^


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-29 20:51:02, Gzip enabled