코드카타- 옹알이(2) #include #include using namespace std;bool startsWith(const string& s, const string& p) { if (s.size() parts = {"aya", "ye", "woo", "ma"}; string prev = ""; while (!s.empty()) { string matched = ""; // TODO: parts 중 s가 시작하는 조각 찾기 for (const auto& p : parts) { if (startsWith(s, p)) { matched = p; break; ..