0_0_38900867_13353.cpp: In function 'void add_sub(int, int, int, double)':
0_0_38900867_13353.cpp:31:25: error: 'max' was not declared in this scope
31 | t[id].subt[rt].mx = max(love,t[id].subt[rt].mx);
| ^~~
0_0_38900867_13353.cpp: In function 'double sear(int, int, int, int)':
0_0_38900867_13353.cpp:53:17: error: 'max' was not declared in this scope
53 | else return max(sear(id,rt<<1,ll,mid), sear(id,rt<<1|1,mid+1,rr));
| ^~~
0_0_38900867_13353.cpp: In function 'double query(int, int, int, int, int)':
0_0_38900867_13353.cpp:62:17: error: 'max' was not declared in this scope
62 | else return max(query(id<<1,l,mid,ll,rr), query(id<<1|1,mid+1,r,ll,rr));
| ^~~
0_0_38900867_13353.cpp: In function 'int main()':
0_0_38900867_13353.cpp:66:11: error: 'scanf' was not declared in this scope
66 | while(scanf("%d",&n) && n){
| ^~~~~
0_0_38900867_13353.cpp:84:26: error: 'swap' was not declared in this scope
84 | if(h1>h2)swap(h1,h2);//trickŁĄ
| ^~~~
0_0_38900867_13353.cpp:85:26: error: 'swap' was not declared in this scope
85 | if(y1>y2)swap(y1,y2);
| ^~~~
0_0_38900867_13353.cpp:87:32: error: 'printf' was not declared in this scope
87 | if(ans == -1.0)printf("-1\n");
| ^~~~~~
0_0_38900867_13353.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | #define N 210
0_0_38900867_13353.cpp:88:22: error: 'printf' was not declared in this scope
88 | else printf("%.1lf\n",ans);
| ^~~~~~
0_0_38900867_13353.cpp:88:22: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
|