fork download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main() {
  6. string s = "fcft";
  7. cout << s.find('f', s.find('f+1'));
  8. return 0;
  9. }
Success #stdin #stdout 0s 4268KB
stdin
Standard input is empty
stdout
18446744073709551615