To Amir Hossein Sharifzadeh,

You should always name your class as Main (case sensitive, not main or MAIN) as online judge will put your code into the file named Main.java

i.e. you should write the following class

public class Main {

}

Parker

On 2012/12/6 5:50, Morgan Bauer wrote:
Exactly what it says? Your file is named Main.java, and the compiler
want's it to be named Bartjens.java.
~mhb


On Wed, Dec 5, 2012 at 3:38 PM, Amir Hossein Sharifzadeh
<amirsharifza...@gmail.com> wrote:
Is there anyone who has submitted problems in uva onlinejudge or ACM-ICPC
Live Archive?
I wrote a problem of the ACM ICPC World finals in Java without any problem.
But I frequently receive the following error:
Compilation error for submission

Main.java:9: class Bartjens is public, should be declared in a file named
Bartjens.java
public class Bartjens {
        ^
1 error

--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To post to this group, send email to google-code@googlegroups.com.
To unsubscribe from this group, send email to
google-code+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "Google 
Code Jam" group.
To post to this group, send email to google-code@googlegroups.com.
To unsubscribe from this group, send email to 
google-code+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to