Showing wrong answer ,please check

@Muskan-Gupta-598128740703036
Use arr[i][j]=s.nextChar(); in line 10

If your doubt is resolved please mark it as closed.

showing compilation error

@Muskan-Gupta-598128740703036
Line 10 to 13
for(int i=0;i<m;i++){
String st = s.next();
for(int j=0;j<n;j++){
arr[i][j]=st.charAt(j);
}
}

some test cases are again getting failed

can you correct it properly so that it would submit 100%.? :frowning:

sir , i am waiting for your reply

Hey @Muskan-Gupta-598128740703036
Sorry for the delay. I missed your doubt. Please use @Aarnav-Jindal-1059677350830863 if the delay is longer this way I can keep track of your doubts better.

I looked at your code and realised the issue was with input. You were not taking correct input. The matrix had no elements stored in them. See that by printing your matrix once.
Here is your modified code https://ide.codingblocks.com/s/192413. Some minor input related changes.

If your doubt is resolved please mark it as closed.