my code is showing error when i am compiling on coding blocks. while it is working fine on netbeans ide
import java.util.Scanner;
public class MANMOHAN2 {
public static void main(String[] args) {
int i,j;
Scanner input=new Scanner(System.in);
int n=input.nextInt();
for(i=0;i<n;i++)
{
for(j=0;j<=i;j++)
{
if(j==0)
{
if(i==0) {
System.out.print("1");
}
else {
System.out.print(i);
}
}
else if(j==i) {
System.out.print(i);
}
else {
System.out.print("0");
}
}
System.out.println("");
}
}
}