C1814: Arithmetic or pointer-expression expected

[ERROR]

Description

The expression had an illegal type!.

Tips

Expressions after a ! operator and expressions in conditions must be of arithmetic or pointer type.