horses.cpp: In function 'void build(long long int, long long int, long long int)':
horses.cpp:11:5: warning: declaration of 'md' shadows a global declaration [-Wshadow]
11 | ll md=(st+ed)/2;
| ^~
horses.cpp:7:26: note: shadowed declaration is here
7 | ll n,x[500005],y[500005],md=1e9+7,nw,fight;
| ^~
horses.cpp: In function 'void update(long long int, long long int, long long int, long long int, long long int)':
horses.cpp:33:43: warning: declaration of 'val' shadows a global declaration [-Wshadow]
33 | void update(ll tree,ll st,ll ed,ll idx,ll val)
| ^
horses.cpp:8:17: note: shadowed declaration is here
8 | ll seg[2000005],val,str,ans,last,mul[2000005],big;
| ^~~
horses.cpp:35:5: warning: declaration of 'md' shadows a global declaration [-Wshadow]
35 | ll md=(st+ed)/2;
| ^~
horses.cpp:7:26: note: shadowed declaration is here
7 | ll n,x[500005],y[500005],md=1e9+7,nw,fight;
| ^~
horses.cpp: In function 'long long int query(long long int, long long int, long long int, long long int, long long int)':
horses.cpp:64:5: warning: declaration of 'md' shadows a global declaration [-Wshadow]
64 | ll md=(st+ed)/2;
| ^~
horses.cpp:7:26: note: shadowed declaration is here
7 | ll n,x[500005],y[500005],md=1e9+7,nw,fight;
| ^~
horses.cpp: In function 'long long int query2(long long int, long long int, long long int, long long int, long long int)':
horses.cpp:71:5: warning: declaration of 'md' shadows a global declaration [-Wshadow]
71 | ll md=(st+ed)/2;
| ^~
horses.cpp:7:26: note: shadowed declaration is here
7 | ll n,x[500005],y[500005],md=1e9+7,nw,fight;
| ^~
horses.cpp: In function 'long long int solve()':
horses.cpp:93:6: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
93 | if(str>1e9)
| ^~~
horses.cpp:120:5: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
120 | if(str>1e9)
| ^~~
horses.cpp: In function 'long long int updateX(long long int, long long int)':
horses.cpp:162:23: warning: declaration of 'val' shadows a global declaration [-Wshadow]
162 | ll updateX(ll pos, ll val) {
| ^
horses.cpp:8:17: note: shadowed declaration is here
8 | ll seg[2000005],val,str,ans,last,mul[2000005],big;
| ^~~
horses.cpp: In function 'long long int updateY(long long int, long long int)':
horses.cpp:189:23: warning: declaration of 'val' shadows a global declaration [-Wshadow]
189 | ll updateY(ll pos, ll val) {
| ^
horses.cpp:8:17: note: shadowed declaration is here
8 | ll seg[2000005],val,str,ans,last,mul[2000005],big;
| ^~~
/usr/bin/ld: /tmp/cc1YKNZt.o: in function `main':
grader.c:(.text.startup+0xaa): undefined reference to `init(int, int*, int*)'
/usr/bin/ld: grader.c:(.text.startup+0x113): undefined reference to `updateX(int, int)'
/usr/bin/ld: grader.c:(.text.startup+0x16d): undefined reference to `updateY(int, int)'
collect2: error: ld returned 1 exit status