fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. vector<int> Vectorina(const string& a, const string& U)
  7. {
  8. vector<int> V;
  9. for(auto i1 = a.begin(), i2 = U.begin();
  10. i1 != a.end() && i2 != U.end();
  11. V.push_back(*i1++ == *i2++));
  12. return V;
  13. }
  14.  
  15. int main() {
  16.  
  17. for(auto c: Vectorina("asdfghjiklh",
  18. "wedtyujkilo"))
  19. cout << c;
  20. }
Success #stdin #stdout 0s 4388KB
stdin
Standard input is empty
stdout
00100010010