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_14869531_3886.cpp:8:10: error: 'null_mapped_type' was not declared in this scope
 tree<int,null_mapped_type,less<int>,rb_tree_tag,tree_order_statistics_node_update > t;
          ^
0_0_14869531_3886.cpp:8:83: error: template argument 2 is invalid
 tree<int,null_mapped_type,less<int>,rb_tree_tag,tree_order_statistics_node_update > t;
                                                                                   ^
0_0_14869531_3886.cpp:8:86: error: invalid type in declaration before ';' token
 tree<int,null_mapped_type,less<int>,rb_tree_tag,tree_order_statistics_node_update > t;
                                                                                      ^
0_0_14869531_3886.cpp:9:10: error: 'null_mapped_type' was not declared in this scope
 tree<int,null_mapped_type,less<int>,rb_tree_tag,tree_order_statistics_node_update >::iterator it;
          ^
0_0_14869531_3886.cpp:9:83: error: template argument 2 is invalid
 tree<int,null_mapped_type,less<int>,rb_tree_tag,tree_order_statistics_node_update >::iterator it;
                                                                                   ^
0_0_14869531_3886.cpp:9:95: error: expected initializer before 'it'
 tree<int,null_mapped_type,less<int>,rb_tree_tag,tree_order_statistics_node_update >::iterator it;
                                                                                               ^
0_0_14869531_3886.cpp: In function 'int main()':
0_0_14869531_3886.cpp:17:11: error: request for member 'clear' in 't', which is of non-class type 'int'
         t.clear();
           ^
0_0_14869531_3886.cpp:23:19: error: request for member 'insert' in 't', which is of non-class type 'int'
                 t.insert(x);
                   ^
0_0_14869531_3886.cpp:25:34: error: request for member 'find_by_order' in 't', which is of non-class type 'int'
                 printf("%d\n",*t.find_by_order(que.size()/2));
                                  ^
0_0_14869531_3886.cpp:28:19: error: request for member 'erase' in 't', which is of non-class type 'int'
                 t.erase(x);
                   ^


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-25 17:23:30, Gzip enabled