Job 17472

Owner
Dancila Nicolae-Ovidiu
Problem
A+B
Source
0.18KB
Result
Compile error (Non-zero exit status: 1)

Compiler output

prog.java:1: error: class, interface, or enum expected
	public static void main(String[] args) {
	              ^
prog.java:3: error: class, interface, or enum expected
		int a = scanner.nextInt();
		^
prog.java:4: error: class, interface, or enum expected
		int b = scanner.nextInt();
		^
prog.java:6: error: class, interface, or enum expected
		System.out.println(a + b);
		^
prog.java:7: error: class, interface, or enum expected
	}
	^
5 errors
javac failed: errno= return=256 at /usr/local/bin/gruntmaster-compile line 23.

Questions?

Sponsors Gold