Use descriptive names that explain what variables hold: studentCount instead of sc or x. Short names like i are fine for loop counters. C++ programmers use camelCase (myVariable) or snake_case (my_variable).
Pick one style and stick with it throughout your code. Avoid single-letter names except for loops. Reading studentCount is clearer than reading sc. Spend two seconds typing for clarity.