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 a;
    int b;
    int c;
    int d;
    int e;
    int f;
    int x;
    int y;
    int z;
    cin >> a >> b >> c;
    cin >> d >> e >> f;
    x = (( a == 1 && d == 1 )? 1:0);
    y = ((b == 1 || e == 1)? 1: 0);
    z = (( c==1 || f == 1)? 1: 0);
    if (bool (x && y && z)){
        cout << "compatible" << endl;
    }
    else {
        cout << "not compatible" << endl;
    }
}

Grading criterion: Printing compatible / not compatible correctly
Rating A: Correctly prints compatible or not compatible based on combining all the conditions above

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>

int main(){
    int new1;
    int deb1;
    int opt1;
    int new2;
    int deb2;
    int opt2;

    cin >> new1 >> deb1 >> opt1 >> new2 >> deb2 >> opt2;

    if( (new1 && new2) && (deb1 || deb2) && (opt1 || opt2) ){
        cout << "compatible";
    }else{
        cout << "not compatible";
    }
}

Grading criterion: Printing compatible / not compatible correctly
Rating A: Correctly prints compatible or not compatible based on combining all the conditions above

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
{
    short int n=0;
    for(int i=1;i<=6; i++)
    {
        int j;
        cin >> j;
        n=n << 1;
        n=n+j;
    }
    cout << n << endl ;
    if(n==39||n==46||n==53||n==60||n==55||n==47||n==61||n==62||n==63)
         cout << "compatible" << endl;
    else
         cout << "not compatible" << endl;
}
/*
     OR  (But the code below requires so many int or bool variables they occupy much space)
#include<simplecpp>
main_program
{
    int new_code_skill1, new_code_skill2, debug_skill1, debug_skill2, opt_skill1, opt_skill2 ;
    cin >> new_code_skill1 >> debug_skill1 >> opt_skill1 ;
    cin >> new_code_skill2 >> debug_skill2 >> opt_skill2 ;
    if(new_code_skill1==new_code_skill2)
    {
        if(debug_skill1==1 || debug_skill2==1)
        {
            if(opt_skill1==1 || opt_skill2==1)
                cout << "compatible" << endl;
            else 
                cout << "not compatible" << endl;
        }
        else 
             cout << "not compatible" << endl;
    }
    else 
        cout << "not compatible" << endl;
}
*/

Grading criterion: Printing compatible / not compatible correctly
Rating A: Correctly prints compatible or not compatible based on combining all the conditions above

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 x,y;
    cin>> x>>y;
    int l = x%10;
    int k= y%10;
    if(l == k || l != k){
        cout<<"";
    }
    int w = x/10;
    int q = y/10;
    int m = w%10;
    int n = q%10;
  if (m == n || m != n){
        cout<< "";
    }
    int d = x/100;
 int f = y/100;
 
 if( (d%10) == (f%10) ){
         cout<< "compatible";
 }
 
 else {
         cout<< "not compatible";
 }


    }

Grading criterion: Printing compatible / not compatible correctly
Rating A: Correctly prints compatible or not compatible based on combining all the conditions above

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: C
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>
int main(){
    int a;
    int b;
    cin>>a>>b;
    if main(0){
        a==111;
        b==111;
        cout<<"yes";
}
    else if main(){
        a==111;
        b==110;
        cout<< "yes"
    }
    else if main(){
        a==110;
        b==111;
        cout<< "yes"
    }
    else if main(){
        a==110;
        b==110;
        cout<< "no"
    }
    else if main(){
        a==111;
        b==110
        cout<< "yes"
    }

Grading criterion: Printing compatible / not compatible correctly
Rating A: Correctly prints compatible or not compatible based on combining all the conditions above

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: C
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 compatible(){
    int skillvalueA,skillvalueB, skillvaluea,skillvalueb;
  cin>> skillvaluea;
    repeat(2){
        cin>>skillvalueA;
    }
cin>>skillvalueb;
    repeat(2){
        cin>> skillvalueB;
    }
    return skillvaluea&skillvalueb && skillvalueA^skillvalueB ;

    
}
main_program{
    if(compatible()) cout<<"compatible";
    else cout<<"not compatible";
}

Grading criterion: Printing compatible / not compatible correctly
Rating A: Correctly prints compatible or not compatible based on combining all the conditions above

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;
     if(a&&b?1:0)
     if(a||b?1:0)
     else(a||b?1:0)
}

Grading criterion: Printing compatible / not compatible correctly
Rating A: Correctly prints compatible or not compatible based on combining all the conditions above

Rating B: some issue
Rating C: major issue
Rating D: 0
Assigned grade: C
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 a,b,c,d,e,f ;
    cin >> a >> b >> c >> d >> e >> f ;
    if ( (a&&d) && (b||e) && (c||f)) cout << "compatible";
    else cout << "not compatible";
}

Grading criterion: Printing compatible / not compatible correctly
Rating A: Correctly prints compatible or not compatible based on combining all the conditions above

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 new_a, debug_a, optimize_a;
    cin>>new_a>>debug_a>>optimize_a;
    int new_b, debug_b, optimize_b;
    cin>>new_b>>debug_b>>optimize_b;

    bool status_new = False;
    bool status_debug = False;
    bool status_optimize = False;

    if((new_a==1) && (new_b==1)){
        status_new = True;
    }

    if((debug_a ==1) | (debug_b==1)){
        status_debug = True;
    }
    
    if((optimize_a ==1) | (optimize_b ==1)){
        status_optimize = True;
    }
    if(status_new==True && status_debug==True && status_optimize==True){
        cout<<"compatible"<<endl;
    }
    else{
        cout<<"not compatible"<<endl;
    }

}

Grading criterion: Printing compatible / not compatible correctly
Rating A: Correctly prints compatible or not compatible based on combining all the conditions above

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 a,b,c,d,e,f;
    cin>>a>>b>>c;
    cin>>d>>e>>f;
    if(((a+d)==2)&&(((b+e)==1)||((b+e)==2))&&(((c+f)==1)||((c+f)==2))){
        cout<<"compatible";
    }else{
        cout<<"not compatible";
    }
}

Grading criterion: Printing compatible / not compatible correctly
Rating A: Correctly prints compatible or not compatible based on combining all the conditions above

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 a,l;
    bool b,m;
    bool c,n;
    cin>>a>>b>>c;
    cin>>l>>m>>n;
    if(a&&l==1){
        if(b||m==1){
            if(c||n==1){
                cout<<"compatible";
            }
        }
    } else{
        cout<<"not compatible";
    }
}

Grading criterion: Printing compatible / not compatible correctly
Rating A: Correctly prints compatible or not compatible based on combining all the conditions above

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 x1,y1,z1;
    cin>>x1>>y1>>z1;
     bool x2,y2,z2;
    cin>>x2>>y2>>z2;
    
    if((x1&&x2)&&(y1||y2)&&(z1||z2)){
   cout<<"compatible";
    }
   else {
    cout<<"not compatible";
   }
    
}

Grading criterion: Printing compatible / not compatible correctly
Rating A: Correctly prints compatible or not compatible based on combining all the conditions above

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