+ 1
Errors when trying to check conditions in if statement
(SEE CODE) i am getting the errors, "identifier p1 is undefined" and "struct Player type name is not allowed. Please help https://code.sololearn.com/c7vvqV0Tu0gS/#cpp
3 Respostas
+ 1
You need to check wether the type of p1 is Player, this is done ysing typeid function located in typeinfo library. And p1 should not be initialized in an if statement.
https://code.sololearn.com/cZ9GV9IVWOQI/?ref=app
0
its still says identifier p1 undefined
0
Try to get it from another person then.