Ad
  • Custom User Avatar

    Input : []int{40, 44, 48, 51, 52, 54, 55, 58, 67, 73}

    MyOutput: 40-48,51,52,54,55,58,67,73
    Expected: 40,44,48,51,52,54,55,58,67,73

    As i understand 40 - 44 - 48 . Should be join 40-48 ( 40, 44, 48 - 3 number )

    Am i miss understanding anything ?

  • Custom User Avatar

    Hi VermillionAzure

    Seem anything wrong with test case setup by default. I write function return false ( default one ) and get error while trying to test
    bool accept_string(std::string str) { return false }

    -isystem /runner/frameworks/cpp/  error: expected ';' after struct
    }
     ^
     ;
    1 error generated.
    

    Thanks
    TTin