Q:What is the compiler the judge is using and what are the compiler options?
A:The online judge system is running on Debian Linux. We are using GNU GCC/G++ for C/C++ compile,
Free Pascal for pascal compile and
openjdk-7-jdk for Java. The compile options are:
C: | gcc Main.c -o Main -fno-asm -Wall -lm --static -std=c99 -DONLINE_JUDGE |
C++: | g++ Main.cc -o Main -fno-asm -Wall -lm --static -std=c++11 -DONLINE_JUDGE |
Pascal: | fpc Main.pas -oMain -O1 -Co -Cr -Ct -Ci |
Java: |
javac -J-Xms32m -J-Xmx256m Main.java
*Java has 2 more seconds and 512M more memory when running and judging. |
Our compiler software version:
gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
glibc 2.3.6
Free Pascal Compiler version 2.4.0-2 [2010/03/06] for i386
java version "1.7"
#include <iostream> using namespace std; int main(){ int a,b; while(cin >> a >> b) cout << a+b << endl; return 0; }Here is a sample solution for problem 1000 using C:
#include <stdio.h> int main(){ int a,b; while(scanf("%d %d",&a, &b) != EOF) printf("%d\n",a+b); return 0; }Here is a sample solution for problem 1000 using PASCAL:
program p1001(Input,Output); var a,b:Integer; begin while not eof(Input) do begin Readln(a,b); Writeln(a+b); end; end.
import java.util.*; public class Main{ public static void main(String args[]){ Scanner cin = new Scanner(System.in); int a, b; while (cin.hasNext()){ a = cin.nextInt(); b = cin.nextInt(); System.out.println(a + b); } } }
Pending : The judge is so busy that it can't judge your submit at the moment, usually you just need to wait a minute and your submit will be judged.
Pending Rejudge: The test datas has been updated, and the submit will be judged again and all of these submission was waiting for the Rejudge.
Compiling : The judge is compiling your source code.
Running & Judging: Your code is running and being judging by our Online Judge.
Accepted : OK! Your program is correct!.
Presentation Error : Your output format is not exactly the same as the judge's output, although your answer to the problem is correct. Check your output for spaces, blank lines,etc against the problem output specification.
Wrong Answer : Correct solution not reached for the inputs. The inputs and outputs that we use to test the programs are not public (it is recomendable to get accustomed to a true contest dynamic ;-).
Time Limit Exceeded : Your program tried to run during too much time.
Memory Limit Exceeded : Your program tried to use more memory than the judge default settings.
Output Limit Exceeded: Your program tried to write too much information. This usually occurs if it goes into a infinite loop. Currently the output limit is 1M bytes.
Runtime Error : All the other Error on the running phrase will get Runtime Error, such as 'segmentation fault','floating point exception','used forbidden functions', 'tried to access forbidden memories' and so on.
Compile Error : The compiler (gcc/g++/gpc) could not compile your ANSI program. Of course, warning messages are not error messages. Click the link at the judge reply to see the actual error message.
HUSTOJ 16.12.02 |