Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool fnd = false;
- for (auto it = sup[0].begin(); it != sup[i].end(); it++) {
- bool h1 = true;
- for (i = 1; i < k; i++) {
- if (sup[i].find(*it) == sup[i].end()) {
- h1 = false;
- break;
- }
- else {
- continue;
- }
- }
- if (h1) {
- fnd = true;
- break;
- }
- else {
- continue;
- }
- }
- if (fnd) {
- s += "1";
- }
- else {
- s += "0";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement