Submission

Status:

Compilation Error

Score: 0

User: Cmoss9

Problemset: คาราเมล

Language: cpp

Time: 0.000 second

Submitted On: 2025-03-01 14:37:24

#include <bits/stdc++.h>
using namespace std;

bool isInCaramel(char C) {
    string name = "CaRaMeL";
    for (int i = 0;i<name.size();i++) {
        if (C == name[i]) return true;
    }
    return false;
}

int main () {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int round;
    cin >> round;
    char list[round];
    vector <bool> inorout;
    for (int i = 0;i<round;i++) {
        cin >> list[i];
        inorout.push_back(isInCaramel(list[i]));
    }
    for (int i = 0;i<round;i++) {
        cout << string(inorout[i]) << '\n';
    }
}