problems solved in C