Compiler Error C2628
'type1' followed by 'type2' is illegal (did you forget a ';'?)
A semicolon may be missing.
The following sample generates C2628:
// C2628.cpp
class CMyClass {}
int main(){} // C2628 error
Possible resolution:
// C2628b.cpp
class CMyClass {};
int main(){}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for