Job 13182

Owner
Szekely Robert
Problem
Bitcount
Source
0.12KB
Result
Compile error (Non-zero exit status: 1)

Compiler output

prog.java:1: error: class, interface, or enum expected
public static int numberofbits(int no) {
              ^
prog.java:3: error: class, interface, or enum expected
		for (count = 0; no > 0; ++count)
		^
prog.java:3: error: class, interface, or enum expected
		for (count = 0; no > 0; ++count)
		                ^
prog.java:3: error: class, interface, or enum expected
		for (count = 0; no > 0; ++count)
		                        ^
prog.java:5: error: class, interface, or enum expected
		return count;
		^
prog.java:6: error: class, interface, or enum expected
	}
	^
6 errors
javac failed: errno= return=256 at /usr/local/bin/gruntmaster-compile line 23.

Questions?

Sponsors Gold