Why im getting error in this code editor. When i solved it in eclipse i didn't get any error? What's my mistake here

import java.util.*;
public class Main {
public static void main(String args[]) {

	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	
	boolean isPrime = true;
	
	for(int i =2 ; i*i<=N; i++) {
		if(N%i==0) {
			isPrime=false;
			System.out.println("Not Prime");
			break;
		}
		
		
	}
	
    if(N<2){
            isPrime=false;
	System.out.println("Prime");

}

}

}

@LakshmiPrasanna0303,
https://ide.codingblocks.com/s/185296 I have corrected your code. The error line has been corrected and error commented.

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.