fork download
  1. #include <iostream>
  2. #include <iostream>
  3. #include <string>
  4. #include <vector>
  5. #include <algorithm>
  6. #include <numeric>
  7. using namespace std;
  8.  
  9. int main() {
  10. int sz=3;
  11. std::vector<string> v{ "a","aa","aaa","aaaa","bbbbb"};
  12. auto wc = find_if(v.begin(), v.end(), [sz](const string &c){return c.size()>=sz;});
  13. //cout<<wc<<endl;
  14. // your code goes here
  15. return 0;
  16. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
Standard output is empty