Can you tell me why this error is coming?
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int a = scn.nextInt();
int b,c;
if(a==1||a==2){
System.out.print("-1");
}else if(a%2==0){
b=((aa)/4)-1;
c=((aa)/4)+1;
}else if(a%2!=0){
b=((aa)-1)/2;
c=((aa)+1)/2;
}
if(b>c){
System.out.print(c+" “+b);
}else
System.out.print(b+” "+c);
}
}
Compiling failed with exitcode 1, compiler output:
Main.java:16: error: variable b might not have been initialized
if(b>c){
^
Main.java:16: error: variable c might not have been initialized
if(b>c){
^
2 errors