Challenges - fundamental and patterns

my code is running prefectly in eclipse…but in coding block complier it shows error…here is my code

public static void main(String args[]) {
Scanner Sc = new Scanner(System.in);
int n = Sc.nextInt();
int nst =1;
int val =1;
if(n<=1000){
for(int row =1;row<=n;row++)
{
// work for numbers
if(row==1)
{
System.out.print(“1”);
}
else {
for(int cst=1;cst<=nst;cst++) {
if(row==2) {
val=1;
}
if(cst==1 || cst ==nst)
{
System.out.print(val);
}
else
{
System.out.print(“0”);
}
}
}

		// preparation
		System.out.println();
		nst++;
		val++;
	}
	}

Hi @mayanktiwari6957,
The code is working fine for me … i hope you selected Java as language from the toggle. If the error persists try refreshing the page.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.