CodeGraderBench/CodeGraderBench huggingface dataset:
Problem: A multinational company wants to form a team consisting of two programmers for an upcoming project. The team selection depends on three distinct skills:

1. New Code
2. Debugging
3. Optimizing

Each programmer has a value of either 0 or 1 for each skill:
- 1 indicates the programmer is skilled in that area.
- 0 indicates the programmer is not skilled in that area.

Compatibility Condition:

Two programmers A and B are considered compatible if all the following conditions are satisfied:

1. Both programmers must be good at new code.
   (Both A and B must have a value of 1 for "new code".)

2. At least one programmer must be good at debugging.
   (Either A or B must have a value of 1 for "debugging".)

3. At least one programmer must be good at optimizing.
   (Either A or B must have a value of 1 for "optimizing".)

Write a C++ program to take the skill values of two programmers as input and determine whether they are compatible.

If they are compatible, print:
compatible

Otherwise, print:
not compatible

Note:
- Output must be in lowercase.
- Do not print any extra messages or prompts.

Input:
Six integers representing the skills of two programmers:
A_new A_debug A_opt B_new B_debug B_opt

Output:
Print "compatible" if conditions are satisfied, otherwise print "not compatible".

Student submission:
#include <simplecpp>
main_program{
    int A1,A2,A3;
    cin >> A1 >> A2 >> A3;
    int B1,B2,B3;
    cin >> B1>>B2>>B3;
    bool s1,s2,s3;
    s1=A1&&B1;
    s2=A2||B2;
    s3=A3||B3;
    bool c;
    c=s1 && s2 && s3;
    if(c){
        cout << "compatible"<<endl;
    }
    else{
        cout<<"not compatible"<<endl;
    }
}

Grading criterion: Declaration of variables
Rating A: Correctly declares the six variables

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: A
Problem: A multinational company wants to form a team consisting of two programmers for an upcoming project. The team selection depends on three distinct skills:

1. New Code
2. Debugging
3. Optimizing

Each programmer has a value of either 0 or 1 for each skill:
- 1 indicates the programmer is skilled in that area.
- 0 indicates the programmer is not skilled in that area.

Compatibility Condition:

Two programmers A and B are considered compatible if all the following conditions are satisfied:

1. Both programmers must be good at new code.
   (Both A and B must have a value of 1 for "new code".)

2. At least one programmer must be good at debugging.
   (Either A or B must have a value of 1 for "debugging".)

3. At least one programmer must be good at optimizing.
   (Either A or B must have a value of 1 for "optimizing".)

Write a C++ program to take the skill values of two programmers as input and determine whether they are compatible.

If they are compatible, print:
compatible

Otherwise, print:
not compatible

Note:
- Output must be in lowercase.
- Do not print any extra messages or prompts.

Input:
Six integers representing the skills of two programmers:
A_new A_debug A_opt B_new B_debug B_opt

Output:
Print "compatible" if conditions are satisfied, otherwise print "not compatible".

Student submission:
#include <simplecpp>

main_program{
    bool a1,a2,a3,b1,b2,b3,c1,c2,c3;
    cin>>a1>>a2>>a3;
    cin>>b1>>b2>>b3;

    c1=((a1==1) && (b1==1));
    c2=((a2==1) || (b2==1));
    c3=((a3==1) || (b3==1));

    if (c1 && c2 && c3){
        cout<<"compatible";
    }
    else {
        cout<<"not compatible";
    }
}

Grading criterion: Declaration of variables
Rating A: Correctly declares the six variables

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: A
Problem: A multinational company wants to form a team consisting of two programmers for an upcoming project. The team selection depends on three distinct skills:

1. New Code
2. Debugging
3. Optimizing

Each programmer has a value of either 0 or 1 for each skill:
- 1 indicates the programmer is skilled in that area.
- 0 indicates the programmer is not skilled in that area.

Compatibility Condition:

Two programmers A and B are considered compatible if all the following conditions are satisfied:

1. Both programmers must be good at new code.
   (Both A and B must have a value of 1 for "new code".)

2. At least one programmer must be good at debugging.
   (Either A or B must have a value of 1 for "debugging".)

3. At least one programmer must be good at optimizing.
   (Either A or B must have a value of 1 for "optimizing".)

Write a C++ program to take the skill values of two programmers as input and determine whether they are compatible.

If they are compatible, print:
compatible

Otherwise, print:
not compatible

Note:
- Output must be in lowercase.
- Do not print any extra messages or prompts.

Input:
Six integers representing the skills of two programmers:
A_new A_debug A_opt B_new B_debug B_opt

Output:
Print "compatible" if conditions are satisfied, otherwise print "not compatible".

Student submission:
#include<simplecpp>

main_program{
    int a,b,c,d,e,f;
    cin >> a >> b >> c >> d >> e >>f;
    int g = b + e, h = c + f,i = a*d;
    if (i == 1 && g > 0 && h > 0){cout << "compatible";}
    else {cout << "not compatible";}


}

Grading criterion: Declaration of variables
Rating A: Correctly declares the six variables

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: A
Problem: A multinational company wants to form a team consisting of two programmers for an upcoming project. The team selection depends on three distinct skills:

1. New Code
2. Debugging
3. Optimizing

Each programmer has a value of either 0 or 1 for each skill:
- 1 indicates the programmer is skilled in that area.
- 0 indicates the programmer is not skilled in that area.

Compatibility Condition:

Two programmers A and B are considered compatible if all the following conditions are satisfied:

1. Both programmers must be good at new code.
   (Both A and B must have a value of 1 for "new code".)

2. At least one programmer must be good at debugging.
   (Either A or B must have a value of 1 for "debugging".)

3. At least one programmer must be good at optimizing.
   (Either A or B must have a value of 1 for "optimizing".)

Write a C++ program to take the skill values of two programmers as input and determine whether they are compatible.

If they are compatible, print:
compatible

Otherwise, print:
not compatible

Note:
- Output must be in lowercase.
- Do not print any extra messages or prompts.

Input:
Six integers representing the skills of two programmers:
A_new A_debug A_opt B_new B_debug B_opt

Output:
Print "compatible" if conditions are satisfied, otherwise print "not compatible".

Student submission:
#include <simplecpp>
main_program{
int a,b,c,d,e,f;
cin >> a >> b >> c;
cin >> d >> e >> f;

int k = a && d;
int n = b || e;
int m = c || f;

if (k ==1 && n ==1 && m==1){
    cout <<"compatible";
}
else{
    cout<< "not compatible";
}
}

Grading criterion: Declaration of variables
Rating A: Correctly declares the six variables

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: A
Problem: A multinational company wants to form a team consisting of two programmers for an upcoming project. The team selection depends on three distinct skills:

1. New Code
2. Debugging
3. Optimizing

Each programmer has a value of either 0 or 1 for each skill:
- 1 indicates the programmer is skilled in that area.
- 0 indicates the programmer is not skilled in that area.

Compatibility Condition:

Two programmers A and B are considered compatible if all the following conditions are satisfied:

1. Both programmers must be good at new code.
   (Both A and B must have a value of 1 for "new code".)

2. At least one programmer must be good at debugging.
   (Either A or B must have a value of 1 for "debugging".)

3. At least one programmer must be good at optimizing.
   (Either A or B must have a value of 1 for "optimizing".)

Write a C++ program to take the skill values of two programmers as input and determine whether they are compatible.

If they are compatible, print:
compatible

Otherwise, print:
not compatible

Note:
- Output must be in lowercase.
- Do not print any extra messages or prompts.

Input:
Six integers representing the skills of two programmers:
A_new A_debug A_opt B_new B_debug B_opt

Output:
Print "compatible" if conditions are satisfied, otherwise print "not compatible".

Student submission:
#include<simplecpp>
main_program{
    char a,b,c,d,e,f;
    cin>>a;cin>>b;cin>>c;
    
    cin>>d;cin>>e;cin>>f;

    if((a=='0') || (d=='0')){cout<<"not compatible";}
    else if((b=='1')||(e=='1')){
        if((c=='1')||(f=='1')){cout<<"compatible";}
        else cout<<"not compatible";
    }
}

Grading criterion: Declaration of variables
Rating A: Correctly declares the six variables

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: A
Problem: A multinational company wants to form a team consisting of two programmers for an upcoming project. The team selection depends on three distinct skills:

1. New Code
2. Debugging
3. Optimizing

Each programmer has a value of either 0 or 1 for each skill:
- 1 indicates the programmer is skilled in that area.
- 0 indicates the programmer is not skilled in that area.

Compatibility Condition:

Two programmers A and B are considered compatible if all the following conditions are satisfied:

1. Both programmers must be good at new code.
   (Both A and B must have a value of 1 for "new code".)

2. At least one programmer must be good at debugging.
   (Either A or B must have a value of 1 for "debugging".)

3. At least one programmer must be good at optimizing.
   (Either A or B must have a value of 1 for "optimizing".)

Write a C++ program to take the skill values of two programmers as input and determine whether they are compatible.

If they are compatible, print:
compatible

Otherwise, print:
not compatible

Note:
- Output must be in lowercase.
- Do not print any extra messages or prompts.

Input:
Six integers representing the skills of two programmers:
A_new A_debug A_opt B_new B_debug B_opt

Output:
Print "compatible" if conditions are satisfied, otherwise print "not compatible".

Student submission:
#include<simplecpp>
main_program{
    int a,b,c,d,e,f;
    cin>>a>>b>>c;
    cin>>d>>e>>f;
    if(a==1 && d==1){
        if((b==1 || e==1) && c==1 || f==1){
            cout<<"compatible"<<endl;
        }
        else{
            cout<<"not compatible"<<endl;
        }
    }
    if(a!=1 || d!=1){
        cout<<"not compatible"<<endl;
    }
}

Grading criterion: Declaration of variables
Rating A: Correctly declares the six variables

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: A
Problem: A multinational company wants to form a team consisting of two programmers for an upcoming project. The team selection depends on three distinct skills:

1. New Code
2. Debugging
3. Optimizing

Each programmer has a value of either 0 or 1 for each skill:
- 1 indicates the programmer is skilled in that area.
- 0 indicates the programmer is not skilled in that area.

Compatibility Condition:

Two programmers A and B are considered compatible if all the following conditions are satisfied:

1. Both programmers must be good at new code.
   (Both A and B must have a value of 1 for "new code".)

2. At least one programmer must be good at debugging.
   (Either A or B must have a value of 1 for "debugging".)

3. At least one programmer must be good at optimizing.
   (Either A or B must have a value of 1 for "optimizing".)

Write a C++ program to take the skill values of two programmers as input and determine whether they are compatible.

If they are compatible, print:
compatible

Otherwise, print:
not compatible

Note:
- Output must be in lowercase.
- Do not print any extra messages or prompts.

Input:
Six integers representing the skills of two programmers:
A_new A_debug A_opt B_new B_debug B_opt

Output:
Print "compatible" if conditions are satisfied, otherwise print "not compatible".

Student submission:
#include<simplecpp>
bool CompCon(int a,int b,int c,int d,int e,int f)
{
    
    if (a&&d!=1){return false;}
    else if ((a&&d)==1)
    {
        if ((b||e)!=1)
        {
            if ((c||f)!=1){return false;}
            return false;
        }
        else return true;
    }
}
int main()
{
    int a;int b;int c;int d;int e;int f;
    cin>>a>>b>>c>>d>>e>>f;
    if(CompCon(a,b,c,d,e,f)){cout<<"compatible"<<endl;}
    else {cout<<"not compatible"<<endl;}
}

Grading criterion: Declaration of variables
Rating A: Correctly declares the six variables

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: A
Problem: A multinational company wants to form a team consisting of two programmers for an upcoming project. The team selection depends on three distinct skills:

1. New Code
2. Debugging
3. Optimizing

Each programmer has a value of either 0 or 1 for each skill:
- 1 indicates the programmer is skilled in that area.
- 0 indicates the programmer is not skilled in that area.

Compatibility Condition:

Two programmers A and B are considered compatible if all the following conditions are satisfied:

1. Both programmers must be good at new code.
   (Both A and B must have a value of 1 for "new code".)

2. At least one programmer must be good at debugging.
   (Either A or B must have a value of 1 for "debugging".)

3. At least one programmer must be good at optimizing.
   (Either A or B must have a value of 1 for "optimizing".)

Write a C++ program to take the skill values of two programmers as input and determine whether they are compatible.

If they are compatible, print:
compatible

Otherwise, print:
not compatible

Note:
- Output must be in lowercase.
- Do not print any extra messages or prompts.

Input:
Six integers representing the skills of two programmers:
A_new A_debug A_opt B_new B_debug B_opt

Output:
Print "compatible" if conditions are satisfied, otherwise print "not compatible".

Student submission:
#include <simplecpp>
main_program {
        int a,b,c,d,e,f;
        cin>>a>>b>>c>>d>>e>>f;
        if(a==1 && d==1) {
                if(b==1 || e==1) {
                        if(c==1 || f==1) {
                                cout<< "compatible";
                        } else {
                                cout<< "not compatible";
                        }
                } else {
                        cout<< "not compatible";
                }
        } else {
                cout<< "not compatible";
        }
}

Grading criterion: Declaration of variables
Rating A: Correctly declares the six variables

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: A
Problem: A multinational company wants to form a team consisting of two programmers for an upcoming project. The team selection depends on three distinct skills:

1. New Code
2. Debugging
3. Optimizing

Each programmer has a value of either 0 or 1 for each skill:
- 1 indicates the programmer is skilled in that area.
- 0 indicates the programmer is not skilled in that area.

Compatibility Condition:

Two programmers A and B are considered compatible if all the following conditions are satisfied:

1. Both programmers must be good at new code.
   (Both A and B must have a value of 1 for "new code".)

2. At least one programmer must be good at debugging.
   (Either A or B must have a value of 1 for "debugging".)

3. At least one programmer must be good at optimizing.
   (Either A or B must have a value of 1 for "optimizing".)

Write a C++ program to take the skill values of two programmers as input and determine whether they are compatible.

If they are compatible, print:
compatible

Otherwise, print:
not compatible

Note:
- Output must be in lowercase.
- Do not print any extra messages or prompts.

Input:
Six integers representing the skills of two programmers:
A_new A_debug A_opt B_new B_debug B_opt

Output:
Print "compatible" if conditions are satisfied, otherwise print "not compatible".

Student submission:
#include<simplecpp>
main_program {
        int newCodeA;
        int newCodeB;
        int debugA;
        int debugB;
        int optA;
        int optB;
        int newCode;
        int debug;
        int opt;

        cin >> newCodeA >> debugA >> optA;
        cin >> newCodeB >> debugB >> optB;

        if(newCodeA==1 && newCodeB==1){
                newCode = 1;
        }
        else {
                newCode = 0;
        }
        if((debugA==1 && debugB==1) || debugA!=debugB){
                debug = 1;
        }
        else {
                debug =0;
        }

        if((optA==1 && optB==1) || optA!=optB){
                opt = 1;
        }
        else {
                opt = 0;
        }


        if(newCode==1 && debug==1 && opt==1){
                cout << "compatible";
        }
        else {
                cout << "not compatible";
        }
}

Grading criterion: Declaration of variables
Rating A: Correctly declares the six variables

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: A
Problem: A multinational company wants to form a team consisting of two programmers for an upcoming project. The team selection depends on three distinct skills:

1. New Code
2. Debugging
3. Optimizing

Each programmer has a value of either 0 or 1 for each skill:
- 1 indicates the programmer is skilled in that area.
- 0 indicates the programmer is not skilled in that area.

Compatibility Condition:

Two programmers A and B are considered compatible if all the following conditions are satisfied:

1. Both programmers must be good at new code.
   (Both A and B must have a value of 1 for "new code".)

2. At least one programmer must be good at debugging.
   (Either A or B must have a value of 1 for "debugging".)

3. At least one programmer must be good at optimizing.
   (Either A or B must have a value of 1 for "optimizing".)

Write a C++ program to take the skill values of two programmers as input and determine whether they are compatible.

If they are compatible, print:
compatible

Otherwise, print:
not compatible

Note:
- Output must be in lowercase.
- Do not print any extra messages or prompts.

Input:
Six integers representing the skills of two programmers:
A_new A_debug A_opt B_new B_debug B_opt

Output:
Print "compatible" if conditions are satisfied, otherwise print "not compatible".

Student submission:
#include<simplecpp>

main_program{

    int n1,n2,n3;
    cin>>n1>>n2>>n3;
    int m1,m2,m3;;
    cin>>m1>>m2>>m3;
    if(n1!=1 || n2!=1)
    {
        cout<<"not compatible";
    }
    else
    {
        if(n2==1 || m2==1)
        {
            if(n3==1 || m3==1)
            cout<<"compatible";
            else
            cout<<"not compatible";
        }
        else
        cout<<"not compatible";
    }



}

Grading criterion: Declaration of variables
Rating A: Correctly declares the six variables

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: A
Problem: A multinational company wants to form a team consisting of two programmers for an upcoming project. The team selection depends on three distinct skills:

1. New Code
2. Debugging
3. Optimizing

Each programmer has a value of either 0 or 1 for each skill:
- 1 indicates the programmer is skilled in that area.
- 0 indicates the programmer is not skilled in that area.

Compatibility Condition:

Two programmers A and B are considered compatible if all the following conditions are satisfied:

1. Both programmers must be good at new code.
   (Both A and B must have a value of 1 for "new code".)

2. At least one programmer must be good at debugging.
   (Either A or B must have a value of 1 for "debugging".)

3. At least one programmer must be good at optimizing.
   (Either A or B must have a value of 1 for "optimizing".)

Write a C++ program to take the skill values of two programmers as input and determine whether they are compatible.

If they are compatible, print:
compatible

Otherwise, print:
not compatible

Note:
- Output must be in lowercase.
- Do not print any extra messages or prompts.

Input:
Six integers representing the skills of two programmers:
A_new A_debug A_opt B_new B_debug B_opt

Output:
Print "compatible" if conditions are satisfied, otherwise print "not compatible".

Student submission:
#include<simplecpp>
main_program
{
    int a,b,c,d,e,f,newcode=0,debug=0,opti=0;
    cin>>a;
    cin>>b;
    cin>>c;
    cin>>d;
    cin>>e;
    cin>>f;

    if((a==1)&&(d==1)) 
    {
        newcode=1;
    }
    else {newcode=0;}

    if((b==1)||(e==1)) {debug=1;}
    else {debug=0;}

    if((c==1)||(f==1)) {opti=1;}
    else {opti=0;}

    if((newcode==1)&&(debug==1)&&(opti==1)) {cout<<"compatible";}
    else {cout<<"not compatible";}

    
}

Grading criterion: Declaration of variables
Rating A: Correctly declares the six variables

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: A
Problem: A multinational company wants to form a team consisting of two programmers for an upcoming project. The team selection depends on three distinct skills:

1. New Code
2. Debugging
3. Optimizing

Each programmer has a value of either 0 or 1 for each skill:
- 1 indicates the programmer is skilled in that area.
- 0 indicates the programmer is not skilled in that area.

Compatibility Condition:

Two programmers A and B are considered compatible if all the following conditions are satisfied:

1. Both programmers must be good at new code.
   (Both A and B must have a value of 1 for "new code".)

2. At least one programmer must be good at debugging.
   (Either A or B must have a value of 1 for "debugging".)

3. At least one programmer must be good at optimizing.
   (Either A or B must have a value of 1 for "optimizing".)

Write a C++ program to take the skill values of two programmers as input and determine whether they are compatible.

If they are compatible, print:
compatible

Otherwise, print:
not compatible

Note:
- Output must be in lowercase.
- Do not print any extra messages or prompts.

Input:
Six integers representing the skills of two programmers:
A_new A_debug A_opt B_new B_debug B_opt

Output:
Print "compatible" if conditions are satisfied, otherwise print "not compatible".

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

int main(){
    int l,m,n;
    int a;
    int b;
    int c;
    int z;
    int y;
    int w;

    cout << "programmer A for new code press 1"<<endl;
    cout << "if you do not have any skill press 0"<<endl;
    cin >> a;
    cout << "programmer B for new code press 1"<<endl;
    cout << "if you do not have any skill press 0"<<endl;
    cin >> z;
    if (a ==1 && z ==1){
       l = 1 ;
        
    } else {
        l = 0;
    }
    cout << "programmer A for debugging press 2"<<endl;
    cout << "if you do not have any skill press 0"<<endl;
    cin >> b;
    cout << "programmer B debugging press 2"<<endl;
    cout << "if you do not have any skill press 0"<<endl;
    cin >> y;
    if (b ==2 && y ==2){
        m = 1;
        
    } else {
        m = 0;
    }
    
    cout << "programmer A for optimizing press 3"<<endl;
    cout << "if you do not have any skill press 0"<<endl;
    cin >> c;
    cout << "programmer B for optimizing press 3"<<endl;
    cout << "if you do not have any skill press 0"<<endl;
    cin >> w;
    if (c ==3 && w ==3){
        n = 1;

    } else {
        n = 0;
    }
    if (l ==1 && m == 1 && n ==1 ){
        cout << "compatible";
    } else {
        cout << "not compatible ";
    }
    
    return 0;
}

Grading criterion: Declaration of variables
Rating A: Correctly declares the six variables

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: A