this is part of a code for a switch statement. i keep getting parse error for the line with std::cin>>quit;

Code:
     case 3:
          char quit = 'y';
          std::cout<<"Are you sure (y\n): "
          std::cin>>quit;
          if(quit == 'y')
                    {
                    std::cout<<"Goodbye"<<std::endl;
                    }
           system("pause");         
           return 0;
    }  
}