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 g,c;int y;
	cin >> g>> c>> y;cout << "H";
	if (g=='F'){
		if (c=='B' && y>=1 && y<=4) {cout << "1";}
		else if (c=='M' && y>=1 && y<=3) {cout << "2";};}
	else if (g=='M'){
		if (c=='B'){
			if (y==1 || y==2){cout << "3";}
			else if (y==3 || y==4){cout << "4";}}
		else if (c=='M' && y<=3 && y>=1){cout << "5";}}}

Grading criterion: Accepting input
Rating A: correctly accepts two characters and one integer as input
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, programme; int year;
    string result;
    cin>>gender>>programme>>year;
    if(gender=='F'){
        (programme == 'B')?result = "H1":result = "H2";
    }
    else{
        (programme == 'M')?result = "H5":(year == 1 || year == 2)?result = "H3":result = "H4";
    }
    cout<<result;
}

Grading criterion: Accepting input
Rating A: correctly accepts two characters and one integer as input
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 n;
	cin>>a>>b;
	cin>>n;
	if(a=='F'){
		if(b=='B'){
			cout<<"H1";
		}
		if(b=='M'){
			cout<<"H2";
		}
	}
	if(a=='M'){
		if(b=='M'){
			cout<<"H5";
		}
		if(b=='B' && (n==1 || n==2)){
			cout<<"H3";
		}
		if(b=='B' && (n==3 || n==4)){
			cout<<"H4";
		}
	}
}

Grading criterion: Accepting input
Rating A: correctly accepts two characters and one integer as input
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;
    int year;
    cin>>gender>>programme>>year;

    if(gender=='F'&&programme=='B') cout<<"H1";
    if(gender=='F'&&programme=='M') cout<<"H2";
    if(gender=='M'&&programme=='B'&&year==1) cout<<"H3";
    if(gender=='M'&&programme=='B'&&year==2) cout<<"H3";
    if(gender=='M'&&programme=='B'&&year==3) cout<<"H4";
    if(gender=='M'&&programme=='B'&&year==4) cout<<"H4";
    if(gender=='M'&&programme=='M') cout<<"H5";
}

Grading criterion: Accepting input
Rating A: correctly accepts two characters and one integer as input
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 course;
    cin>>course;
    int year;
    cin>>year;
    if(gender=='F' && course=='B'){
        cout<<"H1";
    }
        else if(gender=='F'&& course=='M'){
            cout<<"H2";
        }
        else if(gender=='M'&& course=='B'){
            if(year==1 || year==2) cout<<"H3";
            else cout<<"H4";
        }
        else if (gender=='M'&& course=='M'){
            cout<<"H5";
        }
    }

Grading criterion: Accepting input
Rating A: correctly accepts two characters and one integer as input
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')
    cout<<"H1";
    else if(gender=='F' && programme=='M')
    cout<<"H2";
    else if(gender=='M' && programme=='B'){
        if(year==1||year==2)
        cout<<"H3";
        else if(year==3||year==4)cout<<"H4";
    }
    
    else if(gender=='M' && programme=='M')
    cout<<"H5";
    else{cout<<"invalid entry.ignoring";}
}

Grading criterion: Accepting input
Rating A: correctly accepts two characters and one integer as input
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 n;
    char a,b;
    cin>>a>>b>>n;
    if(a=='F'){
        if(b=='B'&&n<=4&&n>=1){
            cout<<"H1"<<endl;
        }else if(b=='M'&&n<=3&&n>=1){
            cout<<"H2"<<endl;
        }
    }else if(a=='M'){
        if(b=='B'){
            if(n==1||n==2){
                cout<<"H3"<<endl;
            }else if(n==3||n==4){
                cout<<"H4"<<endl;
            }
        }else if(b=='M'&&n<=3&&n>=1){
            cout<<"H5"<<endl;
        }
    }
}

Grading criterion: Accepting input
Rating A: correctly accepts two characters and one integer as input
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;
    char p;
    int y;
    cin>>g>>p>>y;
    if(g=='F'){
        if(p=='B'){
            cout<<"H1";
        }
        else if(p=='M')
        cout<<"H2";
    }
    else if(g=='M'){
        if(p=='B'){
            if(y==1||y==2){
                cout<<"H3";
            }
            else if(y==3||y==4){
                cout<<"H4";
            }
        }
        else if(p=='M'){
            cout<<"H5";
        }
    }
}

Grading criterion: Accepting input
Rating A: correctly accepts two characters and one integer as input
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>

int main(){
    char G; char P; int y;
    std::cin >> G >> P >> y;
    if(!(G == 'M' || G == 'F') && !(P == 'B' || P == 'M')){
        return -1;
    }
    if(P == 'B' && !(y >= 1 && y <= 4)){
        return -1;
    }
    if(P == 'M' && !(y >= 1 && y <= 3)){
        return -1;
    }
    if(G == 'F'){
        if(P == 'B'){
            std::cout << "H1";
        }
        else if(P == 'M'){
            std::cout << "H2";
        }
    }
    if(G == 'M'){
        if(P == 'B'){
            if(y == 1 || y == 2){
                std::cout << "H3";
            }
            else if(y == 3 || y == 4){
                std::cout << "H4";
            }
        }
        if(P == 'M'){
            std::cout << "H5";
        }
    }
}

Grading criterion: Accepting input
Rating A: correctly accepts two characters and one integer as input
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, prog;
    int year;
    cin>>gender>>prog>>year;

    if (gender == 'F')
    {
        if (prog == 'B')
        {
            cout<<"H1";
        }
        else
        {
            cout<<"H2";
        }
    }
    else
    {
        if( prog == 'B')
        {
            if (year == 1 || year == 2)
            {
                cout<<"H3";
            }
            else 
            {
                cout<<"H4";
            }
        }
        else
        {
            cout<<"H5";
        }
    }
}

Grading criterion: Accepting input
Rating A: correctly accepts two characters and one integer as input
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 std::cin; using std::cout;using std::endl;

int main(){
char g,c; int y;
cin >> g >> c >> y;

if (g=='F'){if(c=='B'){cout << "H1";} else {cout << "H2";}}
else if (c=='M'){cout << "H5";}
else if (y==1 || y==2){cout << "H3";}
else if (y==3||y==4){cout << "H4";}
}

Grading criterion: Accepting input
Rating A: correctly accepts two characters and one integer as input
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 F,B,M;
char a,b;
int c;
cin >> a >> b >> c;
if (a=='F' && b=='B' ) {cout << "H1";}
 else if (a=='F' && b=='M'  ) {cout << "H2";}
 else if (a=='M' && b=='B' &&  c==1 ) {cout << "H3";}
 else if (a=='M'&& b=='B' &&  c==2) {cout << "H3";}
else if (a=='M' && b=='B' && c==3 ) {cout << "H4";}
else if (a=='M' && b=='B' && c==4) {cout << "H4";}
 else if (a=='M' && b=='M' && c==1 ) {cout << "H5";}
 else if (a=='M' && b=='M' && c==2) {cout << "H5";}
 else if (a=='M' && b=='M' && c==3) {cout << "H5";}}

Grading criterion: Accepting input
Rating A: correctly accepts two characters and one integer as input
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A