Ad
  • Default User Avatar

    Yes.
    Since Get_Sum is called after the solution, the random tests can still be bypassed with an overloaded solution changing its arguments by reference, but for a 7 kyu with a sufficient number of fixed tests it's probably OK.
    stdio.h should be included for printf.
    The random tests should initialize RNG with srand.