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<iostream>
using namespace std;
int main()
{
    char gen,stu;
    int year;
    cin >> gen >> stu >> year;
    cout << endl;
    if(gen=='F')
    {
        if(stu=='B') cout << "H1";
        else if(stu=='M') cout << "H2";
    }
    else if(gen=='M')
    {
        if(stu=='B')
        {
            if(year==1 || year==2) cout << "H3";
            else if(year==3 || year==4) cout << "H4";
        }
        else if(stu=='M') {cout << "H5";}
    }
    return 0;
}

Grading criterion: Condition for H5
Rating A: correctly checks the condition for H5
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, programme, year;  // allotment using if-else conditions.
    cin >> gender >> programme >> year;
    if (gender=='F'){
        if (programme=='B') cout << "H1";
        else if (programme=='M') cout << "H2";
    }
    else if (gender=='M'){
        if (programme=='B'){
            if (year=='1'||year=='2') cout << "H3";
            else if (year=='3'||year=='4') cout << "H4";
        }
        else if (programme=='M') cout << "H5";
    }
}

Grading criterion: Condition for H5
Rating A: correctly checks the condition for H5
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,p;
    int y;
    cin >> g;
    cin >> p;
    cin >> y;
    if(g=='F'){
        if(p == 'B') cout << "H1";
        else cout << "H2";
    }
    else{
        if(p == 'B'){
            if(y == 1 || y == 2) cout << "H3";
            else cout << "H4";
        }
        else cout << "H5";
    }
}

Grading criterion: Condition for H5
Rating A: correctly checks the condition for H5
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,c;
	int y;
	cin>>g>>c>>y;
	if(g=='M') {
		if(c=='B') { 
			if(y==1 || y==2) cout<<"H3";
			if(y==3 || y==4) cout<<"H4";
		}
		if(c=='M') {
			cout<<"H5";
		}
	}
	if(g=='F') {
		if(c=='B') cout<<"H1";
		if(c=='M') cout<<"H2";
	}
}

Grading criterion: Condition for H5
Rating A: correctly checks the condition for H5
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,p;
    cin>>c>>p;
    int n;
    cin>>n;
    if(c=='F'){
        if(p=='B'){
            
            if( n<=4 && n>=1){
                cout<<"H1";
            }
        }
        if(p=='M'){
        if( n<=4 && n>=1){
            cout<<"H2";
        }
        }

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

    
}

Grading criterion: Condition for H5
Rating A: correctly checks the condition for H5
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;
cin>>gender;
char programme;
cin>>programme;
int year;cin>>year;
if(gender=='F'){
    if(programme=='B') cout<<"H1";
    if(programme=='M') cout<<"H2";
}if(gender=='M'){
    if(programme=='B'){ if( year==1||2) cout<<"H3";
    if(year==3||4) cout<<"H4";}
    if(programme=='M') cout<<"H5";
}}

Grading criterion: Condition for H5
Rating A: correctly checks the condition for H5
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() {
    int n;
    cin >> n;
    Female F;
    F = {n};

    if {(F && B)&&(1||2||3||4)}{
        cout << H1;
        else {(F && M)&&(1||2||3){
            cout << H2;
        }
        return 0;
        }

Grading criterion: Condition for H5
Rating A: correctly checks the condition for H5
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: C
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,d;
    int n;
    cin>>c;
    if(c=='F'){
        cin>>d;
        if(d=='B') cout<<"H1";
        else if (d=='M') cout<<"H2"; 
    }
    else if(c=='M'){
        cin>>d;
        if(d=='B'){
            cin>>n;
            if((n==1)||(n==2)) cout<<"H3";
            else if((n==3)||(n==4)) cout<<"H4";
        }
        else if(d=='M') cout<<"H5";
    }
}

Grading criterion: Condition for H5
Rating A: correctly checks the condition for H5
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 gender, course;
	int yos;
	cin >> gender >> course >> yos;
	if (gender =='F')
	{
		if (course =='B')
		{
			cout << "H1\n";
		}

		else if (course == 'M')
		{
			cout << "H2\n";
		}
	}
	
	else if (gender == 'M')
	{
		if (course == 'M')
		{
			cout << "H5\n";
		}

		else if (course == 'B')
		{
			if (yos == 1 || yos == 2)
			{
				cout << "H3\n";
			}

			else if (yos == 3 || yos == 4)
			{
				cout << "H4\n";
			}
		}
	}

	return 0;
}

Grading criterion: Condition for H5
Rating A: correctly checks the condition for H5
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;
    cin>>Gender;
    char Programme;
    cin>>Programme;
    int year;
    cin>>year;
    if(Gender=='F' && Programme=='B' && year==1 || year==2 || year==3 || year==4)
        {
            cout<<"H1";
        }
    else if(Gender=='F' && Programme=='M' && year==1 || year==2 || year==3)
        {
            cout<<"H2";
        }

    else if(Gender=='M' && Programme=='B' && year==1 || year==2)

        {
            cout<<"H3";
        }

    else if(Gender=='M' && Programme=='B' && year==3 || year==4)

        {
            cout<<"H4";
        }

    else if(Gender=='M' && Programme=='M' && year==1 || year==2 || year==3)

        {
            cout<<"H5";
        }

}

Grading criterion: Condition for H5
Rating A: correctly checks the condition for H5
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: C
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>
int main(){
char gender,programme;
int year;
cin>>gender>>programme>>year;
if(gender=='F'){
    if(programme=='B') cout<<"H1";
    else cout<<"H2";
}
else {
    if(programme=='B'){
        if(year==1 || year==2) cout<<"H3";
        else cout<<"H4";
    }
    else cout<<"H5";
}
}

Grading criterion: Condition for H5
Rating A: correctly checks the condition for H5
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>

int gen(char a)
{
    if( a == 'M')
    {
        return 1;
    }
    else
    {
        return 2;
    }
}

int pro(char b)
{
    if( b == 'B')
    {
        return 3;
    }
    else
    {
        return 4;
    }
}

main_program
{
    char g,p;
    int y;

    cin>>g;
    int m = gen(g);
    cin>>p;
    int n = pro(p);
    cin>>y;

    if(m == 2)
    {
        if(n == 3)
        {
            cout<<"H1";
        }
        else
        {
            cout<<"H2";
        }
    }
    else
    {
        if(n == 3)
        {
            if(y == 1 || y == 2)
            {
                cout<<"H3";
            }
            else
            {
                cout<<"H4";
            }
        }
        else
        {
            cout<<"H5";
        }
    }
}

Grading criterion: Condition for H5
Rating A: correctly checks the condition for H5
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A