why is string not declared in scope January 1, 2022 by admin You have to use std::string since it’s in the std namespace.