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_38321835_7864.cpp: In function 'int main()':
0_0_38321835_7864.cpp:15:17: error: missing template arguments before 'in'
     std::vector in(n+1, std::vector<int>());
                 ^
0_0_38321835_7864.cpp:20:7: error: 'in' was not declared in this scope
       in[b].push_back(a);
       ^
0_0_38321835_7864.cpp:33:16: error: 'in' was not declared in this scope
       orep(it, in[vv].cbegin(), in[vv].cend()) {
                ^
0_0_38321835_7864.cpp:5:35: note: in definition of macro 'orep'
 #define orep(i,l,r) for(auto i = (l); i < (r); ++i)
                                   ^
0_0_38321835_7864.cpp:35:62: error: no matching function for call to 'std::queue<st>::push(<brace-enclosed initializer list>)'
         if (out[*it] == 0 && !used[*it]) { q.push({*it, pp+1}); }
                                                              ^
0_0_38321835_7864.cpp:35:62: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_38321835_7864.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:215:7: note: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = st; _Sequence = std::deque<st, std::allocator<st> >; std::queue<_Tp, _Sequence>::value_type = st]
       push(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:215:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const st&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:220:7: note: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = st; _Sequence = std::deque<st, std::allocator<st> >; std::queue<_Tp, _Sequence>::value_type = st]
       push(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:220:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<st>::value_type&& {aka st&&}'


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-02 03:31:34, Gzip enabled