This code is working fine in ecllipse but during submisssion shows run error

this code is working fine even on CB compiler but during submission it shows an run error . may please ectify my code??

your approach looks good but while printing the array column wise i denotes column and j denotes row so correct condition should be i<arr[0].length and similarly the conditions of j should be modified


refer this code for the modified conditions