Code error, in eclipse the output is coming correct , but its not compiling here. Showing error

import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn= new Scanner(System.in);
int N = scn.nextInt();
int val=1;
for(int i =1; i<N;i++){
for(int j=1;j<=i;j++){
if(i==1||i==2){
val=1;
System.out.print(val);
}else{
if(j==1||i==j){
System.out.print(val);
}else{
System.out.print(“0”);
}
}
}
System.out.println();
val++;
}

}

}