0_0_37318696_26198.cpp:1:1: error: 'import' does not name a type
import java.util.Scanner;
^
0_0_37318696_26198.cpp:3:10: error: expected ':' before 'static'
public static void main(String[] args) {
^
0_0_37318696_26198.cpp:3:27: error: 'String' has not been declared
public static void main(String[] args) {
^
0_0_37318696_26198.cpp:3:36: error: expected ',' or '...' before 'args'
public static void main(String[] args) {
^
0_0_37318696_26198.cpp:28:2: error: expected ';' after class definition
}
^
0_0_37318696_26198.cpp: In static member function 'static void Main::main(int*)':
0_0_37318696_26198.cpp:4:10: error: 'Scanner' was not declared in this scope
Scanner x = new Scanner(System.in);
^
0_0_37318696_26198.cpp:5:16: error: 'x' was not declared in this scope
while(x.hasNext()) {
^
0_0_37318696_26198.cpp:8:18: error: 'boolean' was not declared in this scope
boolean flag = false;
^
0_0_37318696_26198.cpp:14:44: error: 'flag' was not declared in this scope
if(z*z*z+q*q*q+r*r*r==i&& flag==false) {
^
0_0_37318696_26198.cpp:16:22: error: 'System' was not declared in this scope
System.out.print(i);
^
0_0_37318696_26198.cpp:18:22: error: 'System' was not declared in this scope
System.out.print(" " +i);
^
0_0_37318696_26198.cpp:21:17: error: 'flag' was not declared in this scope
if(flag==false) {
^
0_0_37318696_26198.cpp:22:18: error: 'System' was not declared in this scope
System.out.println("no");
^
0_0_37318696_26198.cpp:24:15: error: 'System' was not declared in this scope
System.out.println();
^
|