horses.cpp: In function 'void upd(int, int)':
horses.cpp:15:21: warning: declaration of 'x' shadows a global declaration [-Wshadow]
void upd(int i,int x){
^
horses.cpp:12:4: note: shadowed declaration is here
ll x[500005],y[500005];
^
horses.cpp: In function 'void update(int, int)':
horses.cpp:32:24: warning: declaration of 'x' shadows a global declaration [-Wshadow]
void update(int i,int x){
^
horses.cpp:12:4: note: shadowed declaration is here
ll x[500005],y[500005];
^
horses.cpp: In function 'll modpow(ll, ll)':
horses.cpp:40:20: warning: declaration of 'n' shadows a global declaration [-Wshadow]
ll modpow(ll x,ll n){
^
horses.cpp:11:5: note: shadowed declaration is here
int n,m;
^
horses.cpp:40:20: warning: declaration of 'x' shadows a global declaration [-Wshadow]
ll modpow(ll x,ll n){
^
horses.cpp:12:4: note: shadowed declaration is here
ll x[500005],y[500005];
^
horses.cpp: In function 'int main()':
horses.cpp:58:15: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
upd(i+1,x[i]);
^
horses.cpp:83:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<vq.size();j++){
^
horses.cpp:92:36: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
upd(b+1,c*modpow(x[b],mod-2)%mod);
^
horses.cpp:102:35: warning: declaration of 'it' shadows a previous local [-Wshadow]
set<pair<int,ll> >::iterator it = S.lower_bound(mp(b,x[b]));
^
horses.cpp:70:32: note: shadowed declaration is here
set<pair<int,ll> >::iterator it = S.end(); --it;
^
horses.cpp:111:34: warning: declaration of 'it' shadows a previous local [-Wshadow]
set<pair<int,ll> >::iterator it = S.lower_bound(mp(b,x[b]));
^
horses.cpp:70:32: note: shadowed declaration is here
set<pair<int,ll> >::iterator it = S.end(); --it;
^
horses.cpp:51:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
horses.cpp:54:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&x[i]);
^
horses.cpp:62:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&y[i]);
^
horses.cpp:66:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
^
horses.cpp:90:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int a,b,c; scanf("%d%d%d",&a,&b,&c);
^
/tmp/ccyTytn5.o: In function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'
/tmp/ccwrw6hn.o:horses.cpp:(.text.startup+0x0): first defined here
/tmp/ccyTytn5.o: In function `main':
grader.c:(.text.startup+0x282): undefined reference to `init(int, int*, int*)'
grader.c:(.text.startup+0x75e): undefined reference to `updateX(int, int)'
grader.c:(.text.startup+0xae1): undefined reference to `updateY(int, int)'
collect2: error: ld returned 1 exit status