[HomeWork1.c] Made some fixes, initialized all variables, added asserts