Test: virtual_destructor.cpp virtual_destructor.cpp:3:16: error: expected class-name before '(' token 3 | virtual ~Plugin() {} | ^ virtual_destructor.cpp:6:6: error: 'string' in namespace 'std' does not name a type 6 | std::string getAppName() { | ^~~~~~ virtual_destructor.cpp:1:1: note: 'std::string' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | // Fixed virtual destructor virtual_destructor.cpp: In function 'void processEvents()': virtual_destructor.cpp:12:10: error: 'vector' is not a member of 'std' 12 | std::vector newEvents; | ^~~~~~ virtual_destructor.cpp:1:1: note: 'std::vector' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | // Fixed virtual destructor virtual_destructor.cpp:12:22: error: 'string' is not a member of 'std' 12 | std::vector newEvents; | ^~~~~~ virtual_destructor.cpp:12:22: note: 'std::string' is defined in header ''; did you forget to '#include '? virtual_destructor.cpp:12:30: error: 'newEvents' was not declared in this scope 12 | std::vector newEvents; | ^~~~~~~~~ virtual_destructor.cpp:13:20: error: 'events_' was not declared in this scope 13 | for (auto it = events_.begin(); it != events_.end(); ++it) { | ^~~~~~~ virtual_destructor.cpp:19:9: error: 'events_' was not declared in this scope 19 | events_.push_back(e); | ^~~~~~~ virtual_destructor.cpp: At global scope: virtual_destructor.cpp:24:1: error: 'size_t' does not name a type 24 | size_t available() const { | ^~~~~~ virtual_destructor.cpp:1:1: note: 'size_t' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | // Fixed virtual destructor virtual_destructor.cpp:30:6: error: 'string' in namespace 'std' does not name a type 30 | std::string formatMessage(const std::string& msg) { | ^~~~~~ virtual_destructor.cpp:30:1: note: 'std::string' is defined in header ''; did you forget to '#include '? 30 | std::string formatMessage(const std::string& msg) { | ^~~ virtual_destructor.cpp:36:1: error: ISO C++ forbids declaration of 'Point' with no type [-fpermissive] 36 | Point(double x, double y, double scale) | ^~~~~ virtual_destructor.cpp: In function 'int Point(double, double, double)': virtual_destructor.cpp:37:7: error: only constructors take member initializers 37 | : x_(x * scale), y_(y * scale), scale_(scale) {} | ^~ virtual_destructor.cpp:37:52: warning: no return statement in function returning non-void [-Wreturn-type] 37 | : x_(x * scale), y_(y * scale), scale_(scale) {} | ^ virtual_destructor.cpp: At global scope: virtual_destructor.cpp:40:1: error: expected unqualified-id before 'for' 40 | for (int i = 0; i < 5; i++) { | ^~~ virtual_destructor.cpp:40:17: error: 'i' does not name a type 40 | for (int i = 0; i < 5; i++) { | ^ virtual_destructor.cpp:40:24: error: 'i' does not name a type 40 | for (int i = 0; i < 5; i++) { | ^