#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main (void){
vector<int> e = {10,20,30,40,50};
for (int i = 0; i <= 99; i++){
if (find(e.begin(), e.end(), i) != e.end()) cout << i << " "; // utilização do find
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8dmVjdG9yPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluICh2b2lkKXsKCiAgICAgICB2ZWN0b3I8aW50PiBlID0gezEwLDIwLDMwLDQwLDUwfTsgICAgICAgCgogICAgICAgZm9yIChpbnQgaSA9IDA7IGkgPD0gOTk7IGkrKyl7CiAgICAgICAgICAgIGlmIChmaW5kKGUuYmVnaW4oKSwgZS5lbmQoKSwgaSkgIT0gZS5lbmQoKSkgY291dCA8PCBpIDw8ICIgIjsgLy8gdXRpbGl6YcOnw6NvIGRvIGZpbmQKICAgICAgIH0KfQ==