/in/foo.cc: In function 'int main()':
/in/foo.cc:11:15: warning: array subscript is above array bounds [-Warray-bounds]
if(n/x[10005]>=0) a=(1+n/x[10005])*y[10005];
~~~~~~~^
/in/foo.cc:11:45: warning: array subscript is above array bounds [-Warray-bounds]
if(n/x[10005]>=0) a=(1+n/x[10005])*y[10005];
~~~~~~~^
/in/foo.cc:12:33: warning: array subscript is above array bounds [-Warray-bounds]
else a=(1+n/x[10005])*(y[10005]+1);
~~~~~~~^
/in/foo.cc:13:16: warning: array subscript is above array bounds [-Warray-bounds]
if(n/x2[10005]>=0) b=(1+n/x2[10005])*y2[10005];
~~~~~~~~^
/in/foo.cc:13:48: warning: array subscript is above array bounds [-Warray-bounds]
if(n/x2[10005]>=0) b=(1+n/x2[10005])*y2[10005];
~~~~~~~~^
/in/foo.cc:14:35: warning: array subscript is above array bounds [-Warray-bounds]
else b=(1+n/x2[10005])*(y2[10005]+1);
~~~~~~~~^
/in/foo.cc:15:16: warning: array subscript is above array bounds [-Warray-bounds]
if(n/x3[10005]>=0) c=(1+n/x3[10005])*y3[10005];
~~~~~~~~^
/in/foo.cc:15:48: warning: array subscript is above array bounds [-Warray-bounds]
if(n/x3[10005]>=0) c=(1+n/x3[10005])*y3[10005];
~~~~~~~~^
/in/foo.cc:16:35: warning: array subscript is above array bounds [-Warray-bounds]
else c=(1+n/x3[10005])*(y3[10005]+1);
~~~~~~~~^