/in/foo.cc: In function 'int main()':
/in/foo.cc:13:22: warning: too many arguments for format [-Wformat-extra-args]
{scanf("%d",&x,y,k);}
^
/in/foo.cc:22:13: warning: left operand of comma operator has no effect [-Wunused-value]
if (i-d<x,i+d<y)
~~~^~
/in/foo.cc:13:10: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
{scanf("%d",&x,y,k);}
~~~~~^~~~~~~~~~~~~
/in/foo.cc:13:10: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
/in/foo.cc:23:9: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
ans++;
~~~^~