0_0_30352581_6744.cpp:1:1: error: 'import' does not name a type
import java.util.*;
^
0_0_30352581_6744.cpp:5:9: error: expected ':' before 'static'
public static void main(String[] args)
^
0_0_30352581_6744.cpp:5:26: error: 'String' has not been declared
public static void main(String[] args)
^
0_0_30352581_6744.cpp:5:35: error: expected ',' or '...' before 'args'
public static void main(String[] args)
^
0_0_30352581_6744.cpp:24:1: error: expected ';' after class definition
}
^
0_0_30352581_6744.cpp: In static member function 'static void Main::main(int*)':
0_0_30352581_6744.cpp:7:3: error: 'Scanner' was not declared in this scope
Scanner cin=new Scanner(System.in);
^
0_0_30352581_6744.cpp:8:9: error: 'cin' was not declared in this scope
while(cin.hasNext())
^
0_0_30352581_6744.cpp:11:13: error: 'm' was not declared in this scope
if(n==0&&m==0) break;
^
0_0_30352581_6744.cpp:16:24: error: 'm' was not declared in this scope
if(flag==0 && pre<=m && m<=a) {System.out.print(m+" ");flag=1;}
^
0_0_30352581_6744.cpp:16:36: error: 'System' was not declared in this scope
if(flag==0 && pre<=m && m<=a) {System.out.print(m+" ");flag=1;}
^
0_0_30352581_6744.cpp:18:5: error: 'System' was not declared in this scope
System.out.print(a+(i==n && flag==1?"\n":" "));
^
0_0_30352581_6744.cpp:21:16: error: 'System' was not declared in this scope
if(flag==0) System.out.println(m);
^
0_0_30352581_6744.cpp:21:35: error: 'm' was not declared in this scope
if(flag==0) System.out.println(m);
^
|