I was trying to solve "Labyrinth" problem (#38). I wrote the solution in Java, and saved it as Labyrinth.java . It ran smoothly in my machine.
However, when I submitted the file, it showed the following error:
Main.java:4: class Labyrinth is public, should be declared in a file named Labyrinth.java
public class Labyrinth {
^
1 error
I wonder what's causing this? (as when I submitted, I've attached Labyrinth.java file)