Instead of saying "why is this not working" perhaps you should say "I expect this to happen, but this is happening instead when I enter this input." Or is it compiling? Do you get an error? How are we to know with your incomplete code snippet and vague question?
Please provide as much relevant information as possible when you ask questions (including, if possible, a complete compilable code snippet that reproduces the issue.)
Error (active) no operator "==" matches these operands . I have a problem with he condition in the brackets and dont know why. When I put cin>>var1 outdise the brackets everything is fine but i m lookin now a YT video and this same command work.