Compiler output
prog.java:1: error: class, interface, or enum expected
public static void main(String[] args) {
^
prog.java:5: error: class, interface, or enum expected
int n = scanner.nextInt();
^
prog.java:6: error: class, interface, or enum expected
int m = scanner.nextInt();
^
prog.java:7: error: class, interface, or enum expected
int x = scanner.nextInt();
^
prog.java:9: error: class, interface, or enum expected
int [][] initialMatrix = new int [n][m];
^
prog.java:11: error: class, interface, or enum expected
for(int i =0;i<n;i++){
^
prog.java:11: error: class, interface, or enum expected
for(int i =0;i<n;i++){
^
prog.java:11: error: class, interface, or enum expected
for(int i =0;i<n;i++){
^
prog.java:12: error: class, interface, or enum expected
for(int j=0;j<m;j++){
^
prog.java:12: error: class, interface, or enum expected
for(int j=0;j<m;j++){
^
prog.java:14: error: class, interface, or enum expected
}
^
prog.java:19: error: class, interface, or enum expected
int finalI = 0;
^
prog.java:20: error: class, interface, or enum expected
int finalJ = 0;
^
prog.java:22: error: class, interface, or enum expected
for(int i =0;i<n;i++){
^
prog.java:22: error: class, interface, or enum expected
for(int i =0;i<n;i++){
^
prog.java:22: error: class, interface, or enum expected
for(int i =0;i<n;i++){
^
prog.java:26: error: class, interface, or enum expected
for(int j=0;j<m;j++){
^
prog.java:26: error: class, interface, or enum expected
for(int j=0;j<m;j++){
^
prog.java:26: error: class, interface, or enum expected
for(int j=0;j<m;j++){
^
prog.java:30: error: class, interface, or enum expected
int initVal = initialMatrix[i][j];
^
prog.java:32: error: class, interface, or enum expected
for(int k=0;k<x;k++){
^
prog.java:32: error: class, interface, or enum expected
for(int k=0;k<x;k++){
^
prog.java:32: error: class, interface, or enum expected
for(int k=0;k<x;k++){
^
prog.java:34: error: class, interface, or enum expected
}
^
prog.java:36: error: class, interface, or enum expected
for(int k=0;k<x;k++){
^
prog.java:36: error: class, interface, or enum expected
for(int k=0;k<x;k++){
^
prog.java:38: error: class, interface, or enum expected
for(int q=0;q<x;q++){
^
prog.java:38: error: class, interface, or enum expected
for(int q=0;q<x;q++){
^
prog.java:41: error: class, interface, or enum expected
}
^
prog.java:49: error: class, interface, or enum expected
for(int i =0;i<n*x;i++){
^
prog.java:49: error: class, interface, or enum expected
for(int i =0;i<n*x;i++){
^
prog.java:50: error: class, interface, or enum expected
for(int j=0;j<m*x;j++){
^
prog.java:50: error: class, interface, or enum expected
for(int j=0;j<m*x;j++){
^
prog.java:52: error: class, interface, or enum expected
}
^
prog.java:54: error: class, interface, or enum expected
}
^
35 errors
javac failed: errno= return=256 at /usr/local/bin/gruntmaster-compile line 23.