fork(1) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main() {
  5.  
  6. std::string s = "abcde";
  7. std::string::size_type i = s.find("g");
  8. if (i == std::string::npos) std::cout << "Not Found " << i << "\n";
  9.  
  10.  
  11.  
  12. // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Not Found 4294967295