Why is the if statement failed? C++

1:

Should be >= 1

2

Should be <=

maybe you have more unsafe things in your code, but test it and let us know about any output

hope it helps
cheers!

1 Like