whats wrong in this code and why its showing me wrong answer

import java.util.*;

class chef
{
public static void main(String[] args) {
int a,b,c;
Scanner sc=new Scanner(System.in);
try{
a=sc.nextInt();
b=sc.nextInt();
c=sc.nextInt();
int res1=(int)(-b+Math.sqrt(bb-4ac))/(2a);
int res2=(int)(-b-Math.sqrt(bb-4ac))/(2a);

     System.out.println(res1);
     System.out.println(res2);
}
catch(Exception e)
{
     ;
}

}

}