0_0_18398079_26129.cpp:1:1: error: 'import' does not name a type
import java.util.*;
^
0_0_18398079_26129.cpp:3:9: error: expected ':' before 'static'
public static void main(String args[]){
^
0_0_18398079_26129.cpp:3:26: error: 'String' has not been declared
public static void main(String args[]){
^
0_0_18398079_26129.cpp:33:1: error: expected ';' after class definition
}
^
0_0_18398079_26129.cpp: In static member function 'static void Main::main(int*)':
0_0_18398079_26129.cpp:4:4: error: 'Scanner' was not declared in this scope
Scanner sc = new Scanner(System.in);
^
0_0_18398079_26129.cpp:5:10: error: 'sc' was not declared in this scope
while(sc.hasNext()){
^
0_0_18398079_26129.cpp:7:15: error: declaration of 'a' as multidimensional array must have bounds for all dimensions except the first
int a[][] = new int[n][];
^
0_0_18398079_26129.cpp:7:30: error: expected primary-expression before ']' token
int a[][] = new int[n][];
^
0_0_18398079_26129.cpp:10:8: error: 'a' was not declared in this scope
a[i]=new int[i+1];
^
0_0_18398079_26129.cpp:19:22: error: 'a' was not declared in this scope
for(int i=0;i<a.length;i++){
^
0_0_18398079_26129.cpp:21:12: error: 'System' was not declared in this scope
System.out.print(a[i][j]);
^
0_0_18398079_26129.cpp:29:10: error: 'System' was not declared in this scope
System.out.println() ;
^
|