/in/foo.cc: In function 'int main()':
/in/foo.cc:70:12: warning: unused variable 'mp' [-Wunused-variable]
int mi,ma,mp=-inf,mo=inf,l=0,r,mid,ans,maxa;
^~
/in/foo.cc:70:20: warning: unused variable 'mo' [-Wunused-variable]
int mi,ma,mp=-inf,mo=inf,l=0,r,mid,ans,maxa;
^~
/in/foo.cc:70:41: warning: unused variable 'maxa' [-Wunused-variable]
int mi,ma,mp=-inf,mo=inf,l=0,r,mid,ans,maxa;
^~~~
/in/foo.cc:93:8: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d",ans);
~~~~~~^~~~~~~~~~
/in/foo.cc:30:20: warning: 'ma' may be used uninitialized in this function [-Wmaybe-uninitialized]
return x/gcd(x,y)*y;
^
/in/foo.cc:70:9: note: 'ma' was declared here
int mi,ma,mp=-inf,mo=inf,l=0,r,mid,ans,maxa;
^~
/in/foo.cc:85:7: warning: 'mi' may be used uninitialized in this function [-Wmaybe-uninitialized]
r=lcm(-mi,ma);
~~~^~~~~~~~