C++ compiler error c4430 “c++ doesnt support default int”

It has nothing to do with your typedef. The problem is that you haven’t given a return type for main:

int main()
{
  // ...
}

A function must have a return type. The main function must return int.

Leave a Comment