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_21940351_24028.cpp:10:1: error: 'multiset' does not name a type
 multiset<int>st;
 ^
0_0_21940351_24028.cpp: In function 'int main()':
0_0_21940351_24028.cpp:13:5: error: 'ios' has not been declared
     ios::sync_with_stdio(false);
     ^
0_0_21940351_24028.cpp:15:5: error: 'cin' was not declared in this scope
     cin>>T;
     ^
0_0_21940351_24028.cpp:18:9: error: 'st' was not declared in this scope
         st.clear();
         ^
0_0_21940351_24028.cpp:24:9: error: 'll' was not declared in this scope
         ll res=0;
         ^
0_0_21940351_24028.cpp:25:19: error: 'sort' was not declared in this scope
         sort(s,s+n);
                   ^
0_0_21940351_24028.cpp:32:17: error: 'res' was not declared in this scope
                 res+=s[i].r-s[i].l;
                 ^
0_0_21940351_24028.cpp:37:13: error: 'res' was not declared in this scope
             res+=s[i].r-*it;//把这个区间的结束点接上上个结束点,不需要注意起点在哪
             ^
0_0_21940351_24028.cpp:41:9: error: 'cout' was not declared in this scope
         cout<<ans<<' '<<res<<endl;
         ^
0_0_21940351_24028.cpp:41:25: error: 'res' was not declared in this scope
         cout<<ans<<' '<<res<<endl;
                         ^
0_0_21940351_24028.cpp:41:30: error: 'endl' was not declared in this scope
         cout<<ans<<' '<<res<<endl;
                              ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 18:34:34, Gzip enabled