Test: iterator_invalidation.cpp iterator_invalidation.cpp:16:22: error: stray '\' in program 16 | size_t i = 0;\n while (i < events_.size()) {\n std::cout << "Event: " << events_[i] << std::endl;\n\n // Add derived event during iteration\n if (events_[i] == "user_login") {\n events_.push_back("log_analytics");\n }\n i++;\n } | ^ iterator_invalidation.cpp:16:60: error: stray '\' in program 16 | size_t i = 0;\n while (i < events_.size()) {\n std::cout << "Event: " << events_[i] << std::endl;\n\n // Add derived event during iteration\n if (events_[i] == "user_login") {\n events_.push_back("log_analytics");\n }\n i++;\n } | ^ iterator_invalidation.cpp:16:124: error: stray '\' in program 16 | size_t i = 0;\n while (i < events_.size()) {\n std::cout << "Event: " << events_[i] << std::endl;\n\n // Add derived event during iteration\n if (events_[i] == "user_login") {\n events_.push_back("log_analytics");\n }\n i++;\n } | ^ iterator_invalidation.cpp:16:126: error: stray '\' in program 16 | size_t i = 0;\n while (i < events_.size()) {\n std::cout << "Event: " << events_[i] << std::endl;\n\n // Add derived event during iteration\n if (events_[i] == "user_login") {\n events_.push_back("log_analytics");\n }\n i++;\n } | ^ iterator_invalidation.cpp:39:2: error: expected '}' at end of input 39 | } | ^ iterator_invalidation.cpp:6:18: note: to match this '{' 6 | class EventQueue { | ^ iterator_invalidation.cpp: In member function 'void EventQueue::addEvent(const std::string&)': iterator_invalidation.cpp:9:9: error: 'events_' was not declared in this scope; did you mean 'event'? 9 | events_.push_back(event); | ^~~~~~~ | event iterator_invalidation.cpp: In member function 'void EventQueue::processEvents()': iterator_invalidation.cpp:16:23: error: 'n' was not declared in this scope 16 | size_t i = 0;\n while (i < events_.size()) {\n std::cout << "Event: " << events_[i] << std::endl;\n\n // Add derived event during iteration\n if (events_[i] == "user_login") {\n events_.push_back("log_analytics");\n }\n i++;\n } | ^ iterator_invalidation.cpp:19:22: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 19 | int getEventCount() const { | ^~ iterator_invalidation.cpp:19:22: note: remove parentheses to default-initialize a variable 19 | int getEventCount() const { | ^~ | -- iterator_invalidation.cpp:19:22: note: or replace parentheses with braces to value-initialize a variable iterator_invalidation.cpp:19:31: error: a function-definition is not allowed here before '{' token 19 | int getEventCount() const { | ^ iterator_invalidation.cpp:23:1: error: expected primary-expression before 'private' 23 | private: | ^~~~~~~ iterator_invalidation.cpp: In member function 'int EventQueue::main()': iterator_invalidation.cpp:35:44: error: 'class EventQueue' has no member named 'getEventCount' 35 | std::cout << "Total events: " << queue.getEventCount() << std::endl; | ^~~~~~~~~~~~~ iterator_invalidation.cpp: At global scope: iterator_invalidation.cpp:39:2: error: expected unqualified-id at end of input 39 | } | ^