What does the error
"Function "<unnamed::time_t>"" is not a type name in Visual Studio mean?
Errors like this on types and functions which are part of the standard libraries point to a wrong project setting. Got to the project properties, open the General section and review the Windows SDK-Version. It is most probably wrong.
See this Post on Stackoverflow.