There is no such thing as “OpType” neither in C nor in the C++ language. It is a name that can be declared by the program. If such name is declared by the program, then its meaning depends on that declaration. If such name isn’t declared, then the name cannot be used.
If you attempt to use an undeclared identifier, you will get errors such as the ones that you quoted. The solution is to either not use the name, or to declare the name in a way that is compatible with how you use the name.
solved What is “OpType” in C/C++ programing [closed]