CodeGraderBench/CodeGraderBench huggingface dataset:
Problem: In this problem, you need to check if a given finite sequence appears as a sub-sequence in the Fibonacci sequence. A finite sequence is said to be a Fibonacci sub-sequence if it is contained in the Fibonacci sequence in the same relative order but not necessarily consecutively. 
For example, the finite sequence 2, 5, 8 is a Fibonacci sub-sequence.  But 2, 8, 5 is not. Write a C++ program to accept an integer M followed by a finite sequence of M numbers. Your task is to determine if this finite sequence is a Fibonacci sub-sequence. You should output the following:
●	true or false
○	true: if the given finite sequence is a Fibonacci sub-sequence. E.g. on inputs “3 3 8 13”  and “3 3 5 8”
○	false  otherwise
Input Format An integer M followed by M integers

Assumptions on Input
●	Assume that the integer M will be between 1 and 19, both inclusive 
●	Assume that the sub-sequence numbers will be between 0 and 5000, both inclusive

Student submission:
#include<simplecpp>
main_program{
    int M;
    int a=0,b=1;
    bool t=true;
    cin>>M;
    int x;
    repeat(M){
        if(t){
            t=false;
            cin>>x;
            while(a<=x){
                if (a==x){t=true;}
                b+=a;
                a=b-a;
            }
        }
    }
    cout<<(t?"true":"false");
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In this problem, you need to check if a given finite sequence appears as a sub-sequence in the Fibonacci sequence. A finite sequence is said to be a Fibonacci sub-sequence if it is contained in the Fibonacci sequence in the same relative order but not necessarily consecutively. 
For example, the finite sequence 2, 5, 8 is a Fibonacci sub-sequence.  But 2, 8, 5 is not. Write a C++ program to accept an integer M followed by a finite sequence of M numbers. Your task is to determine if this finite sequence is a Fibonacci sub-sequence. You should output the following:
●	true or false
○	true: if the given finite sequence is a Fibonacci sub-sequence. E.g. on inputs “3 3 8 13”  and “3 3 5 8”
○	false  otherwise
Input Format An integer M followed by M integers

Assumptions on Input
●	Assume that the integer M will be between 1 and 19, both inclusive 
●	Assume that the sub-sequence numbers will be between 0 and 5000, both inclusive

Student submission:
#include<simplecpp>
main_program{
    int n;
    bool re;
    cin>>n;
    int k[n],a;
    int x[20];
    x[0]=0;
    x[1]=1;
    for(int i=2;i<20;++i){x[i]=x[i-1]+x[i-2];}
    for(int i=0;i<n;++i){cin>>k[i];}
    int p=0;
    for(int i=0;i<n;++i){
        for(int s=p;s<20;++s){
            if(x[s]==k[i]){re=1;}
            if(x[s]==k[i])break;
            if(s==19){re=0;}

        }if(re==0)break;p=p+1;
    }if(re==0){cout<<"false";}
    else cout<<"true";
    }

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In this problem, you need to check if a given finite sequence appears as a sub-sequence in the Fibonacci sequence. A finite sequence is said to be a Fibonacci sub-sequence if it is contained in the Fibonacci sequence in the same relative order but not necessarily consecutively. 
For example, the finite sequence 2, 5, 8 is a Fibonacci sub-sequence.  But 2, 8, 5 is not. Write a C++ program to accept an integer M followed by a finite sequence of M numbers. Your task is to determine if this finite sequence is a Fibonacci sub-sequence. You should output the following:
●	true or false
○	true: if the given finite sequence is a Fibonacci sub-sequence. E.g. on inputs “3 3 8 13”  and “3 3 5 8”
○	false  otherwise
Input Format An integer M followed by M integers

Assumptions on Input
●	Assume that the integer M will be between 1 and 19, both inclusive 
●	Assume that the sub-sequence numbers will be between 0 and 5000, both inclusive

Student submission:
#include<simplecpp>
bool check(int n)
{
    int a[30];
    a[0]=0;
    a[1]=1;
    for(int i=2;i<=30;i++)
    a[i]=a[i-1]+a[i-2];
    for(int i=0;i<=30;i++)
    {
        if(a[i]==n)
        return true;
    }
    return false;
}
main_program
{
    int m,r=0,last=0,s=0;
    cin>>m;
    bool flag;
    for(int i=1;i<=m;i++)
    {
        s=last;
        last=r;
        cin>>r;
        flag=check(r);
        if(last>=r&&(last!=1&&r!=1&&m<3))
        flag=false;
        if(s==r&&last==r&&last!=0)
        flag=false;
    if(!flag)
    break;}
if(flag)cout<<"true";
else cout<<"false";}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In this problem, you need to check if a given finite sequence appears as a sub-sequence in the Fibonacci sequence. A finite sequence is said to be a Fibonacci sub-sequence if it is contained in the Fibonacci sequence in the same relative order but not necessarily consecutively. 
For example, the finite sequence 2, 5, 8 is a Fibonacci sub-sequence.  But 2, 8, 5 is not. Write a C++ program to accept an integer M followed by a finite sequence of M numbers. Your task is to determine if this finite sequence is a Fibonacci sub-sequence. You should output the following:
●	true or false
○	true: if the given finite sequence is a Fibonacci sub-sequence. E.g. on inputs “3 3 8 13”  and “3 3 5 8”
○	false  otherwise
Input Format An integer M followed by M integers

Assumptions on Input
●	Assume that the integer M will be between 1 and 19, both inclusive 
●	Assume that the sub-sequence numbers will be between 0 and 5000, both inclusive

Student submission:
#include<simplecpp>
main_program{
    int M,d,count=0;
    bool p=true;
    cin>>M;
    
    for(int i=1;i<=M;i++){
        cin>>d;
        int a=0,b=1,c;
        while(true){
            
            c=a+b;
            if(d==c||d==a||d==b){
                
                p=true;
                
                break;
                
            }
            else {
                a=b;
                b=c;
                p=false;
                count++;
                if(count>50)break;
            };

        };
    };
    if(p==true)cout<<"true";
    else cout<<"false";
    
};

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In this problem, you need to check if a given finite sequence appears as a sub-sequence in the Fibonacci sequence. A finite sequence is said to be a Fibonacci sub-sequence if it is contained in the Fibonacci sequence in the same relative order but not necessarily consecutively. 
For example, the finite sequence 2, 5, 8 is a Fibonacci sub-sequence.  But 2, 8, 5 is not. Write a C++ program to accept an integer M followed by a finite sequence of M numbers. Your task is to determine if this finite sequence is a Fibonacci sub-sequence. You should output the following:
●	true or false
○	true: if the given finite sequence is a Fibonacci sub-sequence. E.g. on inputs “3 3 8 13”  and “3 3 5 8”
○	false  otherwise
Input Format An integer M followed by M integers

Assumptions on Input
●	Assume that the integer M will be between 1 and 19, both inclusive 
●	Assume that the sub-sequence numbers will be between 0 and 5000, both inclusive

Student submission:
#include<simplecpp>
int fibonacci(int n){
    int n0=0,n1=1;
    for(int i=0;i<n-1;i++){
        (i%2==0)?n0+=n1:n1+=n0;
    }
    return (n%2==0)?n0:n1;
}
int main(){
    int n,m=0;
    cin>>n;
    for(int i=0;i<n;i++){
        int x;
        cin>>x;
        while(m<20){
            if(fibonacci(m)==x){
                m++;
                break;    
            }
            m++;
        }
        
    }
    (m==20)?cout<<"false":cout<<"true";
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In this problem, you need to check if a given finite sequence appears as a sub-sequence in the Fibonacci sequence. A finite sequence is said to be a Fibonacci sub-sequence if it is contained in the Fibonacci sequence in the same relative order but not necessarily consecutively. 
For example, the finite sequence 2, 5, 8 is a Fibonacci sub-sequence.  But 2, 8, 5 is not. Write a C++ program to accept an integer M followed by a finite sequence of M numbers. Your task is to determine if this finite sequence is a Fibonacci sub-sequence. You should output the following:
●	true or false
○	true: if the given finite sequence is a Fibonacci sub-sequence. E.g. on inputs “3 3 8 13”  and “3 3 5 8”
○	false  otherwise
Input Format An integer M followed by M integers

Assumptions on Input
●	Assume that the integer M will be between 1 and 19, both inclusive 
●	Assume that the sub-sequence numbers will be between 0 and 5000, both inclusive

Student submission:
#include<simplecpp>

bool fib(int n) {
        int a = (-1);
        int b = 1;
        int k = n;
        while (k >= -1) {
                int tmp = b;
                b = a + b;
                a = tmp;
                if ( b == n ) {
                        return true;
                }
                k--;
        }
        return false;
}

main_program {
        int M;
        cin >> M;
        int x = 0;
        int count =0;
        int k = M;
        int a = 0;
        while (M > 0) {
                int n;
                cin >> n;
                if (fib (n) == true) {
                        count++;
                        if (n <= x && n > 1) {
                                break;
                        }
                        if (n == 1) {
                                a++;
                        if (a == 3) break;
                        }
                        x = n;
                }
                M--;
        }
        if (x = 1 && a == 3) cout << "false";
        else if (count == k) cout << "true" << endl;
        else cout << "false" << endl;
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A
Problem: In this problem, you need to check if a given finite sequence appears as a sub-sequence in the Fibonacci sequence. A finite sequence is said to be a Fibonacci sub-sequence if it is contained in the Fibonacci sequence in the same relative order but not necessarily consecutively. 
For example, the finite sequence 2, 5, 8 is a Fibonacci sub-sequence.  But 2, 8, 5 is not. Write a C++ program to accept an integer M followed by a finite sequence of M numbers. Your task is to determine if this finite sequence is a Fibonacci sub-sequence. You should output the following:
●	true or false
○	true: if the given finite sequence is a Fibonacci sub-sequence. E.g. on inputs “3 3 8 13”  and “3 3 5 8”
○	false  otherwise
Input Format An integer M followed by M integers

Assumptions on Input
●	Assume that the integer M will be between 1 and 19, both inclusive 
●	Assume that the sub-sequence numbers will be between 0 and 5000, both inclusive

Student submission:
#include<simplecpp>
int main() {
   int m,d;
   cin>>m;
    int N[500]={};
    int a=0,b=1,c=1;
    for(int i=0;i<500;i++) {
        int tmp=b;b=a+b;c=c+tmp;a=tmp;
         N[i]=c;
    }
     for( int j=0;j<m;j++) {
        cin>>d;
        for(int k=0;k<m;k++) {
            if(d==N[k]) {
              continue;
            } else {cout<<"false";
         break;} 
        }
      cout<<"true";
      }
   
   
   }

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: B
Problem: In this problem, you need to check if a given finite sequence appears as a sub-sequence in the Fibonacci sequence. A finite sequence is said to be a Fibonacci sub-sequence if it is contained in the Fibonacci sequence in the same relative order but not necessarily consecutively. 
For example, the finite sequence 2, 5, 8 is a Fibonacci sub-sequence.  But 2, 8, 5 is not. Write a C++ program to accept an integer M followed by a finite sequence of M numbers. Your task is to determine if this finite sequence is a Fibonacci sub-sequence. You should output the following:
●	true or false
○	true: if the given finite sequence is a Fibonacci sub-sequence. E.g. on inputs “3 3 8 13”  and “3 3 5 8”
○	false  otherwise
Input Format An integer M followed by M integers

Assumptions on Input
●	Assume that the integer M will be between 1 and 19, both inclusive 
●	Assume that the sub-sequence numbers will be between 0 and 5000, both inclusive

Student submission:
#include <simplecpp>

main_program{
        int n,y=1,i=0;
        cin >>n;
        bool fibo = true;
        int a1=0,a2=1,a3=1,x;
        while (fibo==true && i<n && y>=a3 ){
                cin >>y;  
                if ( i==0 &&(y==0||y==1)){
                        i++;
                        continue;
                }
                if (y==a3){
                        i++;
                        continue;}
                while (y>a3){
                        x=a3;
                        a3=a3+a2;
                        a1=a2;
                        a2=x;
                        if (a3>y){
                                fibo = false;
                                break;}
                        if (y==a3){
                                i++;
                                continue;
                        }
                }
        }
        cout << (fibo == true ? "true":"false");
}

Grading criterion: Output
Rating A: correctly prints the output
Rating B: Some issue
Rating C: Major issue
Rating D: 0
Assigned grade: A