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>

int main()
{
    char g;char d;int y;
    cin>>g>>d>>y;
    if(g=='F')
    {
        if(d=='B' && y>=1 && y<=4)
        {
            cout<<"H1";
        }
        if(d=='M' && y>=1 && y<=3)
        {
            cout<<"H2";
        }

    }

    if(g=='M')
    {
        if(d=='B' && y>=1 && y<=2)
        {
            cout<<"H3";
        }
        if(d=='B' && y>=3 && y<=4)
        {
            cout<<"H4";
        }
        if(d=='M' && y>=1 && y<=3)
        {
            cout<<"H5";
        }
    
    }
}

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

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

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

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

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

    }
}

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

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

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

Grading criterion: Condition for H3
Rating A: correctly checks the condition for H3
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 main(){
    char gender;
    char prog;
    int year;

    cin >> gender >> prog >> year;

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

        else {
            cout << "H5";
        }
    }

    if (gender == 'F'){
        if (prog == 'B')
        cout << "H1 ";
        else 
        cout << "H2 ";
    }
}

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

struct person {
    char gender;
    char degree;
    int year;
};

person yy;

main_program{
cin>> yy.gender>>yy.degree>>yy.year;



if (yy.gender == 'F'){
if (yy.degree == 'B'){cout<<"H1";};
if (yy.degree == 'M'){cout<<"H2";};
};

if (yy.gender == 'M'){
if(yy.degree == 'M'){cout<<"H5";};

if(yy.degree == 'B'){
  if(yy.year == 1 || yy.year == 2){cout<<"H3";};
  if(yy.year == 3 || yy.year == 4){cout<<"H4";};
}


}
}

Grading criterion: Condition for H3
Rating A: correctly checks the condition for H3
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 main(){
    char g, c;
    int y;
    cin >> g >> c >> y;

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

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