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_37029407_28643.cpp: In function 'void push_up(int)':
0_0_37029407_28643.cpp:18:19: error: 'sort' was not declared in this scope
     sort(a+l1,a+r1);
                   ^
0_0_37029407_28643.cpp:35:29: error: 'abs' was not declared in this scope
             if(abs(a[i]-a[s])<=k&&i!=s)ant++;
                             ^
0_0_37029407_28643.cpp: In function 'int main()':
0_0_37029407_28643.cpp:2:13: error: 'ios' has not been declared
 #define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
             ^
0_0_37029407_28643.cpp:66:5: note: in expansion of macro 'IOS'
     IOS;
     ^
0_0_37029407_28643.cpp:2:41: error: 'cin' was not declared in this scope
 #define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
                                         ^
0_0_37029407_28643.cpp:66:5: note: in expansion of macro 'IOS'
     IOS;
     ^
0_0_37029407_28643.cpp:2:52: error: 'cout' was not declared in this scope
 #define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
                                                    ^
0_0_37029407_28643.cpp:66:5: note: in expansion of macro 'IOS'
     IOS;
     ^
0_0_37029407_28643.cpp:73:28: error: 'endl' was not declared in this scope
         if(l==r)cout<<'0'<<endl;
                            ^
0_0_37029407_28643.cpp:74:34: error: 'endl' was not declared in this scope
         else cout<<query(1,l,r)<<endl;
                                  ^


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-29 19:15:35, Gzip enabled