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;
^
|