Can you post the full error code and what line it occurs on?
C2064 means you're using an expression as a function when you shouldn't, and I can't tell from just what you've posted where the error is.
Do you have another member in class login, or admin that is named 'time'?
This would create a naming conflict, the compiler doesn't know if you mean 'time' the member variable, or 'time' the function.
try changing line 14 to
time_t orario = std::time(0);
That way you specify the use of the time function in the std namespace.
Last edited on