The program is having many mistakes, firstly you are dividing the two numbers and then assigning them the values . So when the program encounters the statement of quotient , it will do something like 0/0. which is an error.similarly for remainder. also you are not printing the outputs . a statement like cout<<"quotient: " will print whatever is wriiten in quotes. removing quotes shall give the answer.