fork download
  1.  
  2. #include <iostream>
  3. #include <inttypes.h>
  4.  
  5. using namespace std;
  6.  
  7. size_t strlen(const char* in){
  8. size_t i = 0;
  9. while(*(in+i)!='\0')
  10. i++;
  11. return i;
  12. }
  13.  
  14. int main() {
  15. // your code goes here
  16. cout<<strlen("hello world");
  17. return 0;
  18. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
11