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_26134714_7509.cpp:6:28: error: 'less' was not declared in this scope
 typedef tree<int,null_type,less< int >,rb_tree_tag,tree_order_statistics_node_update> rbtree;
                            ^
0_0_26134714_7509.cpp:6:28: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iterator:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/pb_ds/tree_policy.hpp:45,
                 from 0_0_26134714_7509.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:367:12: note:   'std::less'
     struct less : public binary_function<_Tp, _Tp, bool>
            ^
0_0_26134714_7509.cpp:6:38: error: template argument 3 is invalid
 typedef tree<int,null_type,less< int >,rb_tree_tag,tree_order_statistics_node_update> rbtree;
                                      ^
0_0_26134714_7509.cpp:6:39: error: expected unqualified-id before ',' token
 typedef tree<int,null_type,less< int >,rb_tree_tag,tree_order_statistics_node_update> rbtree;
                                       ^
0_0_26134714_7509.cpp:6:51: error: invalid type in declaration before ',' token
 typedef tree<int,null_type,less< int >,rb_tree_tag,tree_order_statistics_node_update> rbtree;
                                                   ^
0_0_26134714_7509.cpp:6:85: error: expected initializer before '>' token
 typedef tree<int,null_type,less< int >,rb_tree_tag,tree_order_statistics_node_update> rbtree;
                                                                                     ^


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 14:10:58, Gzip enabled