CodeGraderBench/CodeGraderBench huggingface dataset:
Problem: In the college X hostel allocation system, students are assigned hostels based on their roll number, course year, programme, gender, etc.. In this problem, you shall implement a set of (imaginary) rules. We will pretend that there are only five hostels, numbered from h1 to h5, two genders, male and female, programme (bachelor’s and master’s), and year. Go through the hostel allocation rules given below:

Programme Details
- Bachelor's courses are for 4 years.
- Master's courses are for 3 years.

Hostel Allocation Rules:
1. If a candidate is female:
●	For Bachelor's any year, she will be allocated to H1.
●	For Master's any year, she will be allocated to H2.
2. If a candidate is male::
●	For Bachelor's 1st or 2nd year, he will be allocated to H3
●	For Bachelor's 3rd or 4th year: he will be allocated to H4
●	For Master's any year, he will be allocated to H5.

Input Format:
- A single line of input consisting of:
●	Gender as a single letter (F or M)
●	Programme (B or M) 
●	Course year. If the input to programme was B, then assume that the input for course year will be between 1 and 4, both inclusive, else the input will be between 1 and 3, both inclusive.

Output Format The allocated hostel. example: H1, H2, H3 etc.

Assumptions on Input The input values will always be valid

Student submission:
#include<simplecpp>
main_program {
    char gender, programme;
    int course_year;
    cin>>gender >>programme;
    cin >>course_year;
    if(gender=='F') {
        if(programme=='B') {
            if(course_year>=1 && course_year<=4) {
                cout<<"H1";
            }
        }
        else if(programme=='M') {
            if(course_year>=1 && course_year<=3) {
                cout<<"H2";
            }
        }
    }
    else if(gender=='M') {
        if(programme=='B') {
            if(course_year==1 || course_year==4) {
                cout<<"H3";
            }
            else if(course_year==3 || course_year==4) {
                cout<<"H4";
            }
        }
        else if(programme=='M') {
            if(course_year>=1 && course_year<=3) {
                cout<<"H5";
            }
        }
    }

}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In the college X hostel allocation system, students are assigned hostels based on their roll number, course year, programme, gender, etc.. In this problem, you shall implement a set of (imaginary) rules. We will pretend that there are only five hostels, numbered from h1 to h5, two genders, male and female, programme (bachelor’s and master’s), and year. Go through the hostel allocation rules given below:

Programme Details
- Bachelor's courses are for 4 years.
- Master's courses are for 3 years.

Hostel Allocation Rules:
1. If a candidate is female:
●	For Bachelor's any year, she will be allocated to H1.
●	For Master's any year, she will be allocated to H2.
2. If a candidate is male::
●	For Bachelor's 1st or 2nd year, he will be allocated to H3
●	For Bachelor's 3rd or 4th year: he will be allocated to H4
●	For Master's any year, he will be allocated to H5.

Input Format:
- A single line of input consisting of:
●	Gender as a single letter (F or M)
●	Programme (B or M) 
●	Course year. If the input to programme was B, then assume that the input for course year will be between 1 and 4, both inclusive, else the input will be between 1 and 3, both inclusive.

Output Format The allocated hostel. example: H1, H2, H3 etc.

Assumptions on Input The input values will always be valid

Student submission:
#include<iostream>
using namespace std;

int main()
{
    char gen,p;
    int course;
    cin>>gen>>p>>course;
    if(gen=='F')
    {
        if(p=='B' && course<5 && course>0)
        cout<<"H1";
        else if(p=='M'&& course<4 && course>0) cout<<"H2";
    }
    else if(gen=='M')
    {
        if(p=='B')
        {
            if(course==1 || course ==2)
                cout<<"H3";
            else if(course==3 || course ==4)
                cout<<"H4";
        }
        else if(p=='M'&& course<4 && course>0) cout<<"H5";
    }
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In the college X hostel allocation system, students are assigned hostels based on their roll number, course year, programme, gender, etc.. In this problem, you shall implement a set of (imaginary) rules. We will pretend that there are only five hostels, numbered from h1 to h5, two genders, male and female, programme (bachelor’s and master’s), and year. Go through the hostel allocation rules given below:

Programme Details
- Bachelor's courses are for 4 years.
- Master's courses are for 3 years.

Hostel Allocation Rules:
1. If a candidate is female:
●	For Bachelor's any year, she will be allocated to H1.
●	For Master's any year, she will be allocated to H2.
2. If a candidate is male::
●	For Bachelor's 1st or 2nd year, he will be allocated to H3
●	For Bachelor's 3rd or 4th year: he will be allocated to H4
●	For Master's any year, he will be allocated to H5.

Input Format:
- A single line of input consisting of:
●	Gender as a single letter (F or M)
●	Programme (B or M) 
●	Course year. If the input to programme was B, then assume that the input for course year will be between 1 and 4, both inclusive, else the input will be between 1 and 3, both inclusive.

Output Format The allocated hostel. example: H1, H2, H3 etc.

Assumptions on Input The input values will always be valid

Student submission:
#include <simplecpp>
main_program{
        char gender, course;
        int year;
        cin >> gender >> course >> year;
        if (gender=='F'){
                if (course=='B'){
                        cout<<"H1";
                }else if(course=='M'){
                        cout<<"H2";
                }
        }else if(gender=='M'){
                if (course=='B'){
                        if(year==1 || year==2){
                                cout<<"H3";
                        }else if(year==3 || year==4){
                                cout<<"H4";
                        }
                }else if(course=='M'){
                        cout<<"H5";
                }
        }
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In the college X hostel allocation system, students are assigned hostels based on their roll number, course year, programme, gender, etc.. In this problem, you shall implement a set of (imaginary) rules. We will pretend that there are only five hostels, numbered from h1 to h5, two genders, male and female, programme (bachelor’s and master’s), and year. Go through the hostel allocation rules given below:

Programme Details
- Bachelor's courses are for 4 years.
- Master's courses are for 3 years.

Hostel Allocation Rules:
1. If a candidate is female:
●	For Bachelor's any year, she will be allocated to H1.
●	For Master's any year, she will be allocated to H2.
2. If a candidate is male::
●	For Bachelor's 1st or 2nd year, he will be allocated to H3
●	For Bachelor's 3rd or 4th year: he will be allocated to H4
●	For Master's any year, he will be allocated to H5.

Input Format:
- A single line of input consisting of:
●	Gender as a single letter (F or M)
●	Programme (B or M) 
●	Course year. If the input to programme was B, then assume that the input for course year will be between 1 and 4, both inclusive, else the input will be between 1 and 3, both inclusive.

Output Format The allocated hostel. example: H1, H2, H3 etc.

Assumptions on Input The input values will always be valid

Student submission:
#include<simplecpp>
main_program{
        char c;
        cin >> c;
        if(c=='F'){
        char p;
        cin >> p;
        if(p=='B'){
                cout << "H1" ;
        }
        if(p=='M'){
                cout << "H2";
        }

        }
        if(c=='M'){
                char p;
                cin >> p;
        if(p=='B'){
                int n;
                cin >> n;
                if (p=='B'&&(n==1||n==2)){
                        cout << "H3";
                }
                if(p=='B' && (n==3||n==4)){
                        cout << "H4" ;
                }
        }
if(p=='M'){
        cout << "H5";
        }
        }
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In the college X hostel allocation system, students are assigned hostels based on their roll number, course year, programme, gender, etc.. In this problem, you shall implement a set of (imaginary) rules. We will pretend that there are only five hostels, numbered from h1 to h5, two genders, male and female, programme (bachelor’s and master’s), and year. Go through the hostel allocation rules given below:

Programme Details
- Bachelor's courses are for 4 years.
- Master's courses are for 3 years.

Hostel Allocation Rules:
1. If a candidate is female:
●	For Bachelor's any year, she will be allocated to H1.
●	For Master's any year, she will be allocated to H2.
2. If a candidate is male::
●	For Bachelor's 1st or 2nd year, he will be allocated to H3
●	For Bachelor's 3rd or 4th year: he will be allocated to H4
●	For Master's any year, he will be allocated to H5.

Input Format:
- A single line of input consisting of:
●	Gender as a single letter (F or M)
●	Programme (B or M) 
●	Course year. If the input to programme was B, then assume that the input for course year will be between 1 and 4, both inclusive, else the input will be between 1 and 3, both inclusive.

Output Format The allocated hostel. example: H1, H2, H3 etc.

Assumptions on Input The input values will always be valid

Student submission:
#include<simplecpp>
main_program{
    char gen,deg ;
    int yr;
    cin>>gen>>deg>>yr ;
    if(gen=='F'){
        if(deg=='B')cout<<"H1";
        else cout<<"H2";
    }
    if(gen=='M'){
        if(deg=='B' && (yr==1 || yr==2))cout<<"H3";
        if(deg=='B' && (yr==3 || yr==4))cout<<"H4";
        if(deg=='M')cout<<"H5";
    }
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In the college X hostel allocation system, students are assigned hostels based on their roll number, course year, programme, gender, etc.. In this problem, you shall implement a set of (imaginary) rules. We will pretend that there are only five hostels, numbered from h1 to h5, two genders, male and female, programme (bachelor’s and master’s), and year. Go through the hostel allocation rules given below:

Programme Details
- Bachelor's courses are for 4 years.
- Master's courses are for 3 years.

Hostel Allocation Rules:
1. If a candidate is female:
●	For Bachelor's any year, she will be allocated to H1.
●	For Master's any year, she will be allocated to H2.
2. If a candidate is male::
●	For Bachelor's 1st or 2nd year, he will be allocated to H3
●	For Bachelor's 3rd or 4th year: he will be allocated to H4
●	For Master's any year, he will be allocated to H5.

Input Format:
- A single line of input consisting of:
●	Gender as a single letter (F or M)
●	Programme (B or M) 
●	Course year. If the input to programme was B, then assume that the input for course year will be between 1 and 4, both inclusive, else the input will be between 1 and 3, both inclusive.

Output Format The allocated hostel. example: H1, H2, H3 etc.

Assumptions on Input The input values will always be valid

Student submission:
#include <simplecpp>
main_program{
        char gender, degree;
        int year;
        cin >> gender >> degree >> year;
        if (gender == 'F'){
                if(degree == 'B') cout << "H1";
                else if(degree == 'M') cout << "H2";
        }
        else if(gender == 'M'){
                if(degree == 'B'){
                        if(year == 1 || year == 2) cout << "H3";
                        else if(year == 3 || year == 4) cout << "H4";
                }
                else if(degree == 'M') cout << "H5";
        }
        cout << endl;
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In the college X hostel allocation system, students are assigned hostels based on their roll number, course year, programme, gender, etc.. In this problem, you shall implement a set of (imaginary) rules. We will pretend that there are only five hostels, numbered from h1 to h5, two genders, male and female, programme (bachelor’s and master’s), and year. Go through the hostel allocation rules given below:

Programme Details
- Bachelor's courses are for 4 years.
- Master's courses are for 3 years.

Hostel Allocation Rules:
1. If a candidate is female:
●	For Bachelor's any year, she will be allocated to H1.
●	For Master's any year, she will be allocated to H2.
2. If a candidate is male::
●	For Bachelor's 1st or 2nd year, he will be allocated to H3
●	For Bachelor's 3rd or 4th year: he will be allocated to H4
●	For Master's any year, he will be allocated to H5.

Input Format:
- A single line of input consisting of:
●	Gender as a single letter (F or M)
●	Programme (B or M) 
●	Course year. If the input to programme was B, then assume that the input for course year will be between 1 and 4, both inclusive, else the input will be between 1 and 3, both inclusive.

Output Format The allocated hostel. example: H1, H2, H3 etc.

Assumptions on Input The input values will always be valid

Student submission:
#include<simplecpp>
main_program{
    int a;
    char b,c;
    cin>>b;
    cin>>c;
    cin>>a;
    if(b=='F' && c=='B') cout<<"H1";
    if(b=='F' && c=='M')  cout<<"H2";
    if(b=='M' && c=='B') {
                           if(a>0 && a<3) cout<<"H3";
                           if(a>2 && a<5) cout<<"H4";
                         }
    if(b=='M' && c=='M') cout<<"H5";
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In the college X hostel allocation system, students are assigned hostels based on their roll number, course year, programme, gender, etc.. In this problem, you shall implement a set of (imaginary) rules. We will pretend that there are only five hostels, numbered from h1 to h5, two genders, male and female, programme (bachelor’s and master’s), and year. Go through the hostel allocation rules given below:

Programme Details
- Bachelor's courses are for 4 years.
- Master's courses are for 3 years.

Hostel Allocation Rules:
1. If a candidate is female:
●	For Bachelor's any year, she will be allocated to H1.
●	For Master's any year, she will be allocated to H2.
2. If a candidate is male::
●	For Bachelor's 1st or 2nd year, he will be allocated to H3
●	For Bachelor's 3rd or 4th year: he will be allocated to H4
●	For Master's any year, he will be allocated to H5.

Input Format:
- A single line of input consisting of:
●	Gender as a single letter (F or M)
●	Programme (B or M) 
●	Course year. If the input to programme was B, then assume that the input for course year will be between 1 and 4, both inclusive, else the input will be between 1 and 3, both inclusive.

Output Format The allocated hostel. example: H1, H2, H3 etc.

Assumptions on Input The input values will always be valid

Student submission:
#include<simplecpp>
main_program{
        char c1,c2;
        int i1;
        cin >> c1 >> c2 >> i1;
        if (c1=='F' && c2 =='B') cout << "H1";
        else if (c1=='F' && c2 =='M') cout << "H2";
        else if (c1=='M' && c2 =='M') cout << "H5";
        else if (c1=='M' && c2 =='B' && (i1==1 || i1 ==2)) cout << "H3";
        else if (c1=='M' && c2 =='B' && (i1==3 || i1 ==4)) cout << "H4";
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In the college X hostel allocation system, students are assigned hostels based on their roll number, course year, programme, gender, etc.. In this problem, you shall implement a set of (imaginary) rules. We will pretend that there are only five hostels, numbered from h1 to h5, two genders, male and female, programme (bachelor’s and master’s), and year. Go through the hostel allocation rules given below:

Programme Details
- Bachelor's courses are for 4 years.
- Master's courses are for 3 years.

Hostel Allocation Rules:
1. If a candidate is female:
●	For Bachelor's any year, she will be allocated to H1.
●	For Master's any year, she will be allocated to H2.
2. If a candidate is male::
●	For Bachelor's 1st or 2nd year, he will be allocated to H3
●	For Bachelor's 3rd or 4th year: he will be allocated to H4
●	For Master's any year, he will be allocated to H5.

Input Format:
- A single line of input consisting of:
●	Gender as a single letter (F or M)
●	Programme (B or M) 
●	Course year. If the input to programme was B, then assume that the input for course year will be between 1 and 4, both inclusive, else the input will be between 1 and 3, both inclusive.

Output Format The allocated hostel. example: H1, H2, H3 etc.

Assumptions on Input The input values will always be valid

Student submission:
#include<simplecpp>
main_program{  
       char input;cin>>input;
       if(input=='F'){
             char input;cin>>input;
             if(input=='B'){
                         int y;cin>>y;
                       cout<<"H1";
             }
             else if(input=='M') {int y;cin>>y;cout<<"H2";}
       }
       else if(input=='M'){char input;cin>>input;
                            if(input=='B'){ int y;cin>>y;
                            if(y==1 ||y==2) cout<<"H3";
                            else if(y==3 ||y==4) cout<<"H4";}
                            else if(input=='M'){ int y;cin>>y;
                                                    cout<<"H5";        }
                          
             
       }
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In the college X hostel allocation system, students are assigned hostels based on their roll number, course year, programme, gender, etc.. In this problem, you shall implement a set of (imaginary) rules. We will pretend that there are only five hostels, numbered from h1 to h5, two genders, male and female, programme (bachelor’s and master’s), and year. Go through the hostel allocation rules given below:

Programme Details
- Bachelor's courses are for 4 years.
- Master's courses are for 3 years.

Hostel Allocation Rules:
1. If a candidate is female:
●	For Bachelor's any year, she will be allocated to H1.
●	For Master's any year, she will be allocated to H2.
2. If a candidate is male::
●	For Bachelor's 1st or 2nd year, he will be allocated to H3
●	For Bachelor's 3rd or 4th year: he will be allocated to H4
●	For Master's any year, he will be allocated to H5.

Input Format:
- A single line of input consisting of:
●	Gender as a single letter (F or M)
●	Programme (B or M) 
●	Course year. If the input to programme was B, then assume that the input for course year will be between 1 and 4, both inclusive, else the input will be between 1 and 3, both inclusive.

Output Format The allocated hostel. example: H1, H2, H3 etc.

Assumptions on Input The input values will always be valid

Student submission:
#include<simplecpp>
main_program{
	char gender, course;
	int year;
	cin>>gender>>course>>year;
	if(gender=='F'){
		if(course=='B'){
			cout<<"H1";
		}
		else{
			cout<<"H2";
		}
	}
	else{
		if(course=='M'){
			cout<<"H5";
		}
		else{
			if(year<=2){
				cout<<"H3";
			}
			else{
				cout<<"H4";
			}
		}
	}
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In the college X hostel allocation system, students are assigned hostels based on their roll number, course year, programme, gender, etc.. In this problem, you shall implement a set of (imaginary) rules. We will pretend that there are only five hostels, numbered from h1 to h5, two genders, male and female, programme (bachelor’s and master’s), and year. Go through the hostel allocation rules given below:

Programme Details
- Bachelor's courses are for 4 years.
- Master's courses are for 3 years.

Hostel Allocation Rules:
1. If a candidate is female:
●	For Bachelor's any year, she will be allocated to H1.
●	For Master's any year, she will be allocated to H2.
2. If a candidate is male::
●	For Bachelor's 1st or 2nd year, he will be allocated to H3
●	For Bachelor's 3rd or 4th year: he will be allocated to H4
●	For Master's any year, he will be allocated to H5.

Input Format:
- A single line of input consisting of:
●	Gender as a single letter (F or M)
●	Programme (B or M) 
●	Course year. If the input to programme was B, then assume that the input for course year will be between 1 and 4, both inclusive, else the input will be between 1 and 3, both inclusive.

Output Format The allocated hostel. example: H1, H2, H3 etc.

Assumptions on Input The input values will always be valid

Student submission:
#include <simplecpp>
main_program {
    char g, d;
    int y;
    cin >> g >> d >> y;
    if (g=='F') {
        if (d=='M') { cout << "H2"; }
        else if (d=='B') { cout << "H1"; }
    }
    if (g=='M') {
        if (d=='M') { cout << "H5"; }
        else if (d=='B') {
            if (y==1 || y==2) { cout << "H3"; }
            else if (y==3 || y==4) {cout << "H4"; }
        }
    }
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In the college X hostel allocation system, students are assigned hostels based on their roll number, course year, programme, gender, etc.. In this problem, you shall implement a set of (imaginary) rules. We will pretend that there are only five hostels, numbered from h1 to h5, two genders, male and female, programme (bachelor’s and master’s), and year. Go through the hostel allocation rules given below:

Programme Details
- Bachelor's courses are for 4 years.
- Master's courses are for 3 years.

Hostel Allocation Rules:
1. If a candidate is female:
●	For Bachelor's any year, she will be allocated to H1.
●	For Master's any year, she will be allocated to H2.
2. If a candidate is male::
●	For Bachelor's 1st or 2nd year, he will be allocated to H3
●	For Bachelor's 3rd or 4th year: he will be allocated to H4
●	For Master's any year, he will be allocated to H5.

Input Format:
- A single line of input consisting of:
●	Gender as a single letter (F or M)
●	Programme (B or M) 
●	Course year. If the input to programme was B, then assume that the input for course year will be between 1 and 4, both inclusive, else the input will be between 1 and 3, both inclusive.

Output Format The allocated hostel. example: H1, H2, H3 etc.

Assumptions on Input The input values will always be valid

Student submission:
#include<simplecpp>
main_program
{
    char a,b;
    int c;
    cin>>a>>b>>c;
    if (a=='F')
    {
        if(b=='B')
        {cout<<"H1";}
        else if(b=='M')
        {cout<<"H2";}
    }
    else if (a=='M')
    {
        if(b=='B')
        {
            if(c==1 || c==2)
            {cout<<"H3";}
            else if(c==3 || c==4)
            {cout<<"H4";}
        }
        else if (b=='M')
        {cout<<"H5";}
    }
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A