[SOLVED] UVa Online Runtime Error

If you’re trying to submit a solution to a problem to UVa online competition: http://uva.onlinejudge.org and you’re getting this error Runtime Error.
The reason could be due to many facts. Make sure to:
The Java programs submitted must be in a single source code (not .class) file. Nevertheless, you can add as many classes as you need in this file. All the classes in this file must not be within any package.

  • All programs must begin in a static main method in a Main class.
  • Do not use public classes: even Main must be non public to avoid compile error.
  • Use buffered I/O to avoid time limit exceeded due to excessive flushing.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s