It says Expression must have bool type ( or be convertible to bool)
I have copied the same code from a vedio in but it doesn’t throw any error to them it to me it does.
I don’t understand why whenever i use for loop in either in Mapping or in List in C++ it ends up throwing this error.
New contributor
user25598762 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.