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_30766625_550.cpp: In function 'int main()':
0_0_30766625_550.cpp:15:27: error: 'scanf' was not declared in this scope
  while(~scanf("%d%d",&n,&q)){
                           ^
0_0_30766625_550.cpp:23:22: error: 'sort' was not declared in this scope
    sort(t[i]+1,t[i]+n);
                      ^
0_0_30766625_550.cpp:29:18: error: 'sort' was not declared in this scope
    sort(u+1,u+n+1);
                  ^
0_0_30766625_550.cpp:32:33: error: 'upper_bound' was not declared in this scope
     ans+=upper_bound(u+1,u+n+1,w)-lower_bound(u+1,u+n+1,w);
                                 ^
0_0_30766625_550.cpp:32:58: error: 'lower_bound' was not declared in this scope
     ans+=upper_bound(u+1,u+n+1,w)-lower_bound(u+1,u+n+1,w);
                                                          ^
0_0_30766625_550.cpp:37:39: error: 'upper_bound' was not declared in this scope
     int t1=upper_bound(t[i]+1,t[i]+n,w)-t[i]-1,
                                       ^
0_0_30766625_550.cpp:39:13: error: 't2' was not declared in this scope
     ans+=t1-t2;
             ^
0_0_30766625_550.cpp:41:66: error: 'lower_bound' was not declared in this scope
     ans+=upper_bound(t[i]+1,t[i]+n,w)-lower_bound(t[i]+1,t[i]+n,w);
                                                                  ^
0_0_30766625_550.cpp:43:21: error: 'printf' was not declared in this scope
    printf("%d\n",ans);
                     ^


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-12-12 15:43:23, Gzip enabled