Test: dangling_cstr.cpp dangling_cstr.cpp:1:38: error: 'string' in namespace 'std' does not name a type 1 | const char* formatMessage(const std::string& msg) { | ^~~~~~ dangling_cstr.cpp:1:1: note: 'std::string' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | const char* formatMessage(const std::string& msg) { dangling_cstr.cpp: In function 'const char* formatMessage(const int&)': dangling_cstr.cpp:2:17: error: 'string' in namespace 'std' does not name a type 2 | static std::string formatted; | ^~~~~~ dangling_cstr.cpp:2:12: note: 'std::string' is defined in header ''; did you forget to '#include '? 2 | static std::string formatted; | ^~~ dangling_cstr.cpp:3:5: error: 'formatted' was not declared in this scope 3 | formatted = "[LOG] " + msg; | ^~~~~~~~~