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_25566701_18896.cpp:95:47: error: 'deque' does not name a type
   template<typename _Tp, typename _Sequence = deque<_Tp> >
                                               ^
0_0_25566701_18896.cpp:95:52: error: expected '>' before '<' token
   template<typename _Tp, typename _Sequence = deque<_Tp> >
                                                    ^
0_0_25566701_18896.cpp: In constructor 'std::queue<_Tp, _Sequence>::queue(_Sequence&&)':
0_0_25566701_18896.cpp:146:11: error: 'move' is not a member of 'std'
       : c(std::move(__c)) { }
           ^
0_0_25566701_18896.cpp: In member function 'void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&)':
0_0_25566701_18896.cpp:221:21: error: 'move' is not a member of 'std'
       { c.push_back(std::move(__x)); }
                     ^
0_0_25566701_18896.cpp: In member function 'void std::queue<_Tp, _Sequence>::emplace(_Args&& ...)':
0_0_25566701_18896.cpp:226:19: error: 'forward' is not a member of 'std'
  { c.emplace_back(std::forward<_Args>(__args)...); }
                   ^
0_0_25566701_18896.cpp:226:37: error: expected primary-expression before '>' token
  { c.emplace_back(std::forward<_Args>(__args)...); }
                                     ^
0_0_25566701_18896.cpp: In member function 'void std::queue<_Tp, _Sequence>::swap(std::queue<_Tp, _Sequence>&)':
0_0_25566701_18896.cpp:252:13: error: 'std::swap' has not been declared
  using std::swap;
             ^
0_0_25566701_18896.cpp: At global scope:
0_0_25566701_18896.cpp:368:47: error: 'vector' does not name a type
   template<typename _Tp, typename _Sequence = vector<_Tp>,
                                               ^
0_0_25566701_18896.cpp:368:53: error: expected '>' before '<' token
   template<typename _Tp, typename _Sequence = vector<_Tp>,
                                                     ^
0_0_25566701_18896.cpp:391:7: error: '_Compare' does not name a type
       _Compare   comp;
       ^
0_0_25566701_18896.cpp:405:28: error: '_Compare' does not name a type
       priority_queue(const _Compare& __x,
                            ^
0_0_25566701_18896.cpp:411:28: error: '_Compare' does not name a type
       priority_queue(const _Compare& __x = _Compare(),
                            ^
0_0_25566701_18896.cpp:446:16: error: '_Compare' does not name a type
          const _Compare& __x,
                ^
0_0_25566701_18896.cpp:457:16: error: '_Compare' does not name a type
          const _Compare& __x = _Compare(),
                ^
0_0_25566701_18896.cpp:544:59: error: 'comp' was not declared in this scope
       noexcept(noexcept(swap(c, __pq.c)) && noexcept(swap(comp, __pq.comp)))
                                                           ^
0_0_25566701_18896.cpp:411:53: error: there are no arguments to '_Compare' that depend on a template parameter, so a declaration of '_Compare' must be available [-fpermissive]
       priority_queue(const _Compare& __x = _Compare(),
                                                     ^
0_0_25566701_18896.cpp:411:53: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_25566701_18896.cpp:457:41: error: there are no arguments to '_Compare' that depend on a template parameter, so a declaration of '_Compare' must be available [-fpermissive]
          const _Compare& __x = _Compare(),
                                         ^
0_0_25566701_18896.cpp: In constructor 'std::priority_queue<_Tp, _Sequence>::priority_queue(const int&, const _Sequence&)':
0_0_25566701_18896.cpp:407:17: error: class 'std::priority_queue<_Tp, _Sequence>' does not have any field named 'comp'
       : c(__s), comp(__x)
                 ^
0_0_25566701_18896.cpp:408:9: error: 'make_heap' is not a member of 'std'
       { std::make_heap(c.begin(), c.end(), comp); }
         ^
0_0_25566701_18896.cpp:408:44: error: 'comp' was not declared in this scope
       { std::make_heap(c.begin(), c.end(), comp); }
                                            ^
0_0_25566701_18896.cpp: In constructor 'std::priority_queue<_Tp, _Sequence>::priority_queue(const int&, _Sequence&&)':
0_0_25566701_18896.cpp:413:11: error: 'move' is not a member of 'std'
       : c(std::move(__s)), comp(__x)
           ^
0_0_25566701_18896.cpp:413:28: error: class 'std::priority_queue<_Tp, _Sequence>' does not have any field named 'comp'
       : c(std::move(__s)), comp(__x)
                            ^
0_0_25566701_18896.cpp:414:9: error: 'make_heap' is not a member of 'std'
       { std::make_heap(c.begin(), c.end(), comp); }
         ^
0_0_25566701_18896.cpp:414:44: error: 'comp' was not declared in this scope
       { std::make_heap(c.begin(), c.end(), comp); }
                                            ^
0_0_25566701_18896.cpp: In constructor 'std::priority_queue<_Tp, _Sequence>::priority_queue(_InputIterator, _InputIterator, const int&, const _Sequence&)':
0_0_25566701_18896.cpp:448:12: error: class 'std::priority_queue<_Tp, _Sequence>' does not have any field named 'comp'
  : c(__s), comp(__x)
            ^
0_0_25566701_18896.cpp:452:4: error: 'make_heap' is not a member of 'std'
    std::make_heap(c.begin(), c.end(), comp);
    ^
0_0_25566701_18896.cpp:452:39: error: 'comp' was not declared in this scope
    std::make_heap(c.begin(), c.end(), comp);
                                       ^
0_0_25566701_18896.cpp: In constructor 'std::priority_queue<_Tp, _Sequence>::priority_queue(_InputIterator, _InputIterator, const int&, _Sequence&&)':
0_0_25566701_18896.cpp:459:6: error: 'move' is not a member of 'std'
  : c(std::move(__s)), comp(__x)
      ^
0_0_25566701_18896.cpp:459:23: error: class 'std::priority_queue<_Tp, _Sequence>' does not have any field named 'comp'
  : c(std::move(__s)), comp(__x)
                       ^
0_0_25566701_18896.cpp:463:4: error: 'make_heap' is not a member of 'std'
    std::make_heap(c.begin(), c.end(), comp);
    ^
0_0_25566701_18896.cpp:463:39: error: 'comp' was not declared in this scope
    std::make_heap(c.begin(), c.end(), comp);
                                       ^
0_0_25566701_18896.cpp: In member function 'void std::priority_queue<_Tp, _Sequence>::push(const value_type&)':
0_0_25566701_18896.cpp:502:2: error: 'push_heap' is not a member of 'std'
  std::push_heap(c.begin(), c.end(), comp);
  ^
0_0_25566701_18896.cpp:502:37: error: 'comp' was not declared in this scope
  std::push_heap(c.begin(), c.end(), comp);
                                     ^
0_0_25566701_18896.cpp: In member function 'void std::priority_queue<_Tp, _Sequence>::push(std::priority_queue<_Tp, _Sequence>::value_type&&)':
0_0_25566701_18896.cpp:509:14: error: 'move' is not a member of 'std'
  c.push_back(std::move(__x));
              ^
0_0_25566701_18896.cpp:510:2: error: 'push_heap' is not a member of 'std'
  std::push_heap(c.begin(), c.end(), comp);
  ^
0_0_25566701_18896.cpp:510:37: error: 'comp' was not declared in this scope
  std::push_heap(c.begin(), c.end(), comp);
                                     ^
0_0_25566701_18896.cpp: In member function 'void std::priority_queue<_Tp, _Sequence>::emplace(_Args&& ...)':
0_0_25566701_18896.cpp:517:19: error: 'forward' is not a member of 'std'
    c.emplace_back(std::forward<_Args>(__args)...);
                   ^
0_0_25566701_18896.cpp:517:37: error: expected primary-expression before '>' token
    c.emplace_back(std::forward<_Args>(__args)...);
                                     ^
0_0_25566701_18896.cpp:518:4: error: 'push_heap' is not a member of 'std'
    std::push_heap(c.begin(), c.end(), comp);
    ^
0_0_25566701_18896.cpp:518:39: error: 'comp' was not declared in this scope
    std::push_heap(c.begin(), c.end(), comp);
                                       ^
0_0_25566701_18896.cpp: In member function 'void std::priority_queue<_Tp, _Sequence>::pop()':
0_0_25566701_18896.cpp:537:2: error: 'pop_heap' is not a member of 'std'
  std::pop_heap(c.begin(), c.end(), comp);
  ^
0_0_25566701_18896.cpp:537:36: error: 'comp' was not declared in this scope
  std::pop_heap(c.begin(), c.end(), comp);
                                    ^
0_0_25566701_18896.cpp: In member function 'void std::priority_queue<_Tp, _Sequence>::swap(std::priority_queue<_Tp, _Sequence>&)':
0_0_25566701_18896.cpp:548:7: error: 'comp' was not declared in this scope
  swap(comp, __pq.comp);
       ^
0_0_25566701_18896.cpp: At global scope:
0_0_25566701_18896.cpp:558:49: error: wrong number of template arguments (3, should be 2)
     swap(priority_queue<_Tp, _Sequence, _Compare>& __x,
                                                 ^
0_0_25566701_18896.cpp:370:11: error: provided for 'template<class _Tp, class _Sequence> class std::priority_queue'
     class priority_queue
           ^
0_0_25566701_18896.cpp:559:42: error: wrong number of template arguments (3, should be 2)
   priority_queue<_Tp, _Sequence, _Compare>& __y)
                                          ^
0_0_25566701_18896.cpp:370:11: error: provided for 'template<class _Tp, class _Sequence> class std::priority_queue'
     class priority_queue
           ^
0_0_25566701_18896.cpp:560:27: error: request for member 'swap' in '__x', which is of non-class type 'int'
     noexcept(noexcept(__x.swap(__y)))
                           ^
0_0_25566701_18896.cpp: In function 'void std::swap(int&, int&)':
0_0_25566701_18896.cpp:561:11: error: request for member 'swap' in '__x', which is of non-class type 'int'
     { __x.swap(__y); }
           ^
0_0_25566701_18896.cpp: At global scope:
0_0_255667


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-27 18:12:46, Gzip enabled