Submission

Status:
Compilation Error

Score: 0

User: meme_boi2

Problemset: คาราเมล

Language: cpp

Time: 0.000 second

Submitted On: 2024-12-03 11:12:31

#include <bits/stdc++.h>
using namespace std;
vector <char> mat = {'C','a','R','M','e','L'};
bool isInCaramel(char c){
    bool chk = false;
    for(auto i: mat){
        if (i == c){
            chk = true;
            break;
        }
    }
    return chk;
}
int main(){
 //   cin.tie(nullptr)->sync_with_stdio(0);
    int n;
    cin >> n;
    while(n--){
        char c;
        cin >> c;
        if(isInCaramel(c)) cout << "true\n";
        else cout << "false\n";
    }
}