fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int checkTime(const char* timeToCheck) {
  5. std::string timea = std::string(timeToCheck + 5, 3);
  6.  
  7. cout << timea;
  8.  
  9. return 0;
  10. }
  11.  
  12. int main() {
  13. std::string a = "1234567890";
  14.  
  15. checkTime(a.c_str());
  16.  
  17. // your code goes here
  18. return 0;
  19. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
678