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_21972888_16589.cpp:11:9: error: 'tree' does not name a type
 typedef tree<pii, null_type, less<pii>, rb_tree_tag, tree_order_statistics_node_update> RBTree;
         ^
0_0_21972888_16589.cpp: In function 'void solve_cdq(int, int)':
0_0_21972888_16589.cpp:40:2: error: 'RBTree' was not declared in this scope
  RBTree cur_set;
  ^
0_0_21972888_16589.cpp:48:4: error: 'cur_set' was not declared in this scope
    cur_set.insert(pii(events[j++].y, cnt++));
    ^
0_0_21972888_16589.cpp:49:17: error: '__gnu_cxx::__alloc_traits<std::allocator<Event> >::value_type' has no member named 'qcnt'
   if (events[i].qcnt >= 0)
                 ^
0_0_21972888_16589.cpp:50:24: error: '__gnu_cxx::__alloc_traits<std::allocator<Event> >::value_type' has no member named 'qcnt'
    num_stars[events[i].qcnt] += events[i].wt * cur_set.order_of_key(pii(events[i].y, -1));
                        ^
0_0_21972888_16589.cpp:50:48: error: 'cur_set' was not declared in this scope
    num_stars[events[i].qcnt] += events[i].wt * cur_set.order_of_key(pii(events[i].y, -1));
                                                ^
0_0_21972888_16589.cpp: In function 'void solve()':
0_0_21972888_16589.cpp:55:24: error: no matching function for call to 'std::vector<std::pair<int, int> >::vector(int&, int)'
  vector<pii> ans(cnt, 0);
                        ^
0_0_21972888_16589.cpp:55:24: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from 0_0_21972888_16589.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:401:9: note: template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
         vector(_InputIterator __first, _InputIterator __last,
         ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:401:9: note:   template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:373:7: note: std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::pair<int, int> >]
       vector(initializer_list<value_type> __l,
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:373:7: note:   no known conversion for argument 1 from 'int' to 'std::initializer_list<std::pair<int, int> >'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:348:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::pair<int, int> >]
       vector(vector&& __rv, const allocator_type& __m)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:348:7: note:   no known conversion for argument 1 from 'int' to 'std::vector<std::pair<int, int> >&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:339:7: note: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&, const allocator_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::pair<int, int> >]
       vector(const vector& __x, const allocator_type& __a)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:339:7: note:   no known conversion for argument 1 from 'int' to 'const std::vector<std::pair<int, int> >&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:335:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >]
       vector(vector&& __x) noexcept
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:335:7: note:   candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:318:7: note: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >]
       vector(const vector& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:318:7: note:   candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:289:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::pair<int, int> >]
       vector(size_type __n, const value_type& __value,
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:289:7: note:   no known conversion for argument 2 from 'int' to 'const value_type& {aka const std::pair<int, int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:277:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::pair<int, int> >]
       vector(size_type __n, const allocator_type& __a = allocator_type())
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:277:7: note:   no known conversion for argument 2 from 'int' to 'const allocator_type& {aka const std::allocator<std::pair<int, int> >&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:264:7: note: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::pair<int, int> >]
       vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:264:7: note:   candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:253:7: note: std::vector<_Tp, _Alloc>::vector() [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >]
       vector()
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:253:7: note:   candidate expects 0 arguments, 2 provided
0_0_21972888_16589.cpp:63:12: error: no match for 'operator+=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}' and 'int')
     ans[i] += 1;
            ^
0_0_21972888_16589.cpp:65:17: error: cannot convert 'std::pair<int, int>' to 'int' in initialization
  for (int val : ans)
                 ^


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-06-30 11:08:19, Gzip enabled