Submission Failure

This is a very practical problem. Why is the class named “pails” working while submitted, but the other class named “XS” is not? They are literally the same.

pails.java

XS.java

Debug log

It’s because of the files you try to open: there is no file named “XS.in” or “XS.out” - the files you’re supposed to read and write are “pails.in” and “pails.out”.

I don’t think it actually has anything to do with the class name.

Well, both codes do input three integers(maybe you missed it on the first one because of indentation errors), but I don’t know what indentation rules there are in Java.

1 Like