Your question is not clear.
What exactly do your teacher mean with "?? syntax
Ask him to show you exactly what is the part of your code with such a problem.
Note: your code will not compile unless you prefix it with
using namespace std;