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_39523923_9658.cpp: In function 'int main()':
0_0_39523923_9658.cpp:51:12: error: 'scanf' was not declared in this scope
   51 |     while(~scanf("%d",&n)&&n)
      |            ^~~~~
0_0_39523923_9658.cpp:1:18: error: 'memset' was not declared in this scope
    1 | #define mem(a,b) memset(a,b,sizeof(a))
      |                  ^~~~~~
0_0_39523923_9658.cpp:53:9: note: in expansion of macro 'mem'
   53 |         mem(t,0);
      |         ^~~
0_0_39523923_9658.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | #define mem(a,b) memset(a,b,sizeof(a))
0_0_39523923_9658.cpp:63:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   63 |         sort(X,X+num);//用于离散化
      |         ^~~~
      |         short
0_0_39523923_9658.cpp:65:15: error: 'unique' was not declared in this scope
   65 |         int m=unique(X,X+num)-X;
      |               ^~~~~~
0_0_39523923_9658.cpp:69:19: error: 'lower_bound' was not declared in this scope
   69 |             int l=lower_bound(X,X+m,e[i].l)-X;//找出离散化以后的值
      |                   ^~~~~~~~~~~
0_0_39523923_9658.cpp:74:9: error: 'printf' was not declared in this scope
   74 |         printf("Test case #%d\nTotal explored area: %.2lf\n\n",q++,ans);
      |         ^~~~~~
0_0_39523923_9658.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | #define mem(a,b) memset(a,b,sizeof(a))


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-22 06:35:17, Gzip enabled