Submission
Status:
Compilation Error
Score: 0
User: meme_boi2
Problemset: คาราเมล
Language: cpp
Time: 0.000 second
Submitted On: 2024-12-03 11:08:21
#include <bits/stdc++.h>
using namespace std;
bool isInCaramel(char c, vector<char> &mat){
bool chk = false;
for(auto i: mat){
if (i == c){
chk = true;
break;
}
}
return chk;
}
int main(){
cin.tie(nullptr)->sync_with_stdio(0);
vector <char> mat = {'C','a','R','M','e','L'};
int n;
cin >> n;
while(n--){
char c;
cin >> c;
if(isInCaramel(c, mat)) cout << "true\n";
else cout << "false\n";
}
}