horses.cpp: In member function 'void Interval_Tree::update(int, int, int, int)':
horses.cpp:26:40: warning: declaration of 'u' shadows a global declaration [-Wshadow]
26 | void update(int id,int l,int r,int u)
| ~~~~^
horses.cpp:22:29: note: shadowed declaration is here
22 | int x[100005],y[100005],n,i,u,q,type,pos,val;
| ^
horses.cpp: In member function 'pt Interval_Tree::get(int, int, int, int, int)':
horses.cpp:34:35: warning: declaration of 'u' shadows a global declaration [-Wshadow]
34 | pt get(int id,int l,int r,int u,int v)
| ~~~~^
horses.cpp:22:29: note: shadowed declaration is here
22 | int x[100005],y[100005],n,i,u,q,type,pos,val;
| ^
horses.cpp: In function 'long long int Cal()':
horses.cpp:49:13: warning: declaration of 'u' shadows a global declaration [-Wshadow]
49 | int u=*it;
| ^
horses.cpp:22:29: note: shadowed declaration is here
22 | int x[100005],y[100005],n,i,u,q,type,pos,val;
| ^
horses.cpp:50:33: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
50 | ll k=IT.get(1,1,n,u,last-1).y;
| ~~~~^~
horses.cpp:57:12: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
57 | if(ma>round(1e9)) break;
| ^~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:62:14: warning: declaration of 'n' shadows a global declaration [-Wshadow]
62 | int init(int n,int _x[],int _y[])
| ~~~~^
horses.cpp:22:25: note: shadowed declaration is here
22 | int x[100005],y[100005],n,i,u,q,type,pos,val;
| ^
horses.cpp:72:15: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
72 | return Cal();
| ~~~^~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:74:17: warning: declaration of 'u' shadows a global declaration [-Wshadow]
74 | int updateX(int u,int k)
| ~~~~^
horses.cpp:22:29: note: shadowed declaration is here
22 | int x[100005],y[100005],n,i,u,q,type,pos,val;
| ^
horses.cpp:81:15: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
81 | return Cal();
| ~~~^~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:83:17: warning: declaration of 'u' shadows a global declaration [-Wshadow]
83 | int updateY(int u,int k)
| ~~~~^
horses.cpp:22:29: note: shadowed declaration is here
22 | int x[100005],y[100005],n,i,u,q,type,pos,val;
| ^
horses.cpp:88:15: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
88 | return Cal();
| ~~~^~