Here are sample outputs for the solution to each part of the problem: (The data for courses, sections and students is pulled from a repository, and this data may not reflect the data being used for your assignments.)
% input file R 1 C 10101 S 993 S 2117 C 15134 R 209 S 1 C 15134 S 193 S 12 % solution: 1 35 5111 [Sections 993, 2117 full] 209 193 1 12 [Section 5112 cancelled due to conflict]