[Solved] function in c++ why my compiler didn’t recognize the error() [closed]


There is no error function in the C++ standard library. Your compiler doesn’t “recognize” this function because it doesn’t exist.

Why do you think there should be such a function?

If you want to print an error message in C++, the usual method is to use the cerr stream:

std::cerr << "couldn't read double in 'some_function()'\n";

2

solved function in c++ why my compiler didn’t recognize the error() [closed]