Ad
  • Custom User Avatar

    There is this warning when compiling this solution:

    solution.c:10:1: warning: control may reach end of non-void function [-Wreturn-type]
    }
    ^
    1 warning generated.
    

    This solution is not valid, it introduces UB into the program.