[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.

Leave a Reply

Your email address will not be published. Required fields are marked *