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))
|