My Bottom of pipe program not working!



Hi Forum,

I am trying to write a program to get the Bottom of pipe.
I am facing issues , please refer to pics

Also i tried this

but gives error Warning: Operator ‘/’ cannot be applied to operands of type ‘array’ and ‘int’

Thank you