'identifier' : illegal token on right side of '::'
The token on the right side of the scope resolution operator (::) was not legal.
Only a member of a class (or structure or union) can be on the right side of the scope resolution operator if a class name is on the left side. Otherwise, any global identifier can be on the right side.