CodeGraderBench/CodeGraderBench huggingface dataset:
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin>>n;
	if(n<0 && n%2 ==0)
	{
		float r = n/2.0;
		cout<<r;
	}
	else if(n<0)
		cout<< n*n;
	else if(n >0 && n%2 == 0)
	{
		float a = n/3.0;
		cout<<a;
	}
	else if(n >0)
		cout<< n*n*n;
	else
		cout<<"00";
}

Grading criterion: (some expression calculation, looks like for checking use of if conditions)
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
    int n;
    cin>>n;
    if(n==0) cout<<"00";
    else if (n<0){
        if(n%2==0) cout<<(n/2.0);
        else cout<<(n*n);
    }
    else if(n>0){
        if(n%2==0) cout<<(n/3.0);
        else cout<<(n*n*n);
    }
}

Grading criterion: (some expression calculation, looks like for checking use of if conditions)
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin >> n;
	
	double b;
	if(n<0 && n%2==0){
		b = n/2;
		cout << b;
	} else if(n<0 && n%2!=0){
		long int d = n*n;
		cout << d;
	} else if(n>0 && n%2==0){
		b = n/3.0;
		cout << b;	
	} else if(n>0 && n%2!=0){
		long int c = n*n*n;
		cout << c;
	} else if(n==0){
		cout << 0<< 0;
	}
}

Grading criterion: (some expression calculation, looks like for checking use of if conditions)
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{

	int n;
	cin>>n;
	long double ans;

	if ( n == 0 ){
		cout<<"00";
	}

	else if (( n > 0 ) && ( n % 2 == 0)) {
		ans = n/3.0;
		cout<<ans;
	}

	else if (( n > 0 ) && ( n % 2 != 0)) {
		ans = n * n * n;
		cout<<ans;
	}

	else if (( n < 0 ) && ( n % 2 == 0 )){
		ans = n/2;
		cout<<ans;
	}

	else if (( n < 0 ) && ( n % 2 != 0 )){
		ans = n * n;
		cout<<ans;
	}
}

Grading criterion: (some expression calculation, looks like for checking use of if conditions)
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{

	int n;
	cin>>n;

	if(n>0){
	
	if(n%2==0){
	
		double x;
		x=n/3.00;
		cout<<x;
	}
	else if(n%2==1){
	cout<<n*n*n;
	}
			}

	if(n<0){
 
         if(n%2==0){
	 
		 cout<<n/2;
	 }     	

	 else{
	 
		cout<<n*n;
	 
	 }

	}


	if(n==0){
		cout<<"00";
	}

}

Grading criterion: (some expression calculation, looks like for checking use of if conditions)
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	long long int n;
	cin>>n;
	if(n<0&&n%2==0){
		cout<<n/2.0;}
	else if(n<0&&n%2!=0){
		cout<<n*n;}
	else if(n>0&&n%2==0){
		cout<<n/3.0;}
	else if(n>0&&n%2!=0){
		cout<<n*n*n;}
	else if (n==0){
		cout<<"00";
	}
}

Grading criterion: (some expression calculation, looks like for checking use of if conditions)
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program 
{
	int n = 0;
	cin >> n;
	if(n<0 and n%2==0)
	{
		cout << n/2;
	}
	 else if(n<0 and n%2!=0)
	 {
	 	cout << n*n;
	 }

	else if (n>0 and n%2==0)
	{
		cout << n/3.0;
	}

	else if (n>0 and n%2!=0)
	{
		cout << n*n*n;
	}

	else
	{
		cout <<0<<0;
	}
}

Grading criterion: (some expression calculation, looks like for checking use of if conditions)
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin>>n;
	if(n<0&&n%2==0){
		cout<<n/2;
	}
	if(n<0&&n%2!=0){
		cout<<n*n;
	}
	if(n>0&&n%2==0){
		cout<<n/3.0;
	}
	if(n>0&&n%2!=0){
		cout<<n*n*n;
	}
	if(n==0){
		cout<<"00";
	}}

Grading criterion: (some expression calculation, looks like for checking use of if conditions)
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program
{
int a;
cin>>a;
if(a==0;)
{cout<<00;}
int b=-1*a;
if(a>>0 && a%2==0)
{cout<<a/3.0;}
if(a>>0 && a%2=!0)
{cout<<a*a*a;
}
if(b>>0 && a%2==0)
{cout<<-b/2.0;}
if(a>>0 && a%2=!0)
{cout<<b*b;
}

Grading criterion: (some expression calculation, looks like for checking use of if conditions)
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>

main_program
{
int n;
//float x;
cin>>n;
if(n<0 && n%2 == 0)
{
cout<<n/2;
}

if(n<0 && n%2 != 0)
{
cout<<n*n;
}

if(n>0 && n%2 == 0)
{
//x = n/3;
cout<<n/3.0;
}

if(n>0 && n%2 != 0)
{
cout<<n*n*n;
}

if(n == 0)
{
cout<<"00";
}
}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
        int n;
	cin>>n;
	if(n<0 && n%2==0){cout<<n/2;}
	if(n<0 && n%2!=0){cout<<(n*n);}
	if(n>0 && n%2==0){cout<<(n/3.0);}
        if(n>0 && n%2!=0){cout<<(n*n*n);}
	if(n==0){cout<<"00";}
}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
  int n;
  cin >> n;

  if(n<0 && n%2==0){
     cout << n/2;
  }
 
  else if (n<0 && n%2!=0){
     cout << n*n;
  }

   else if (n>0 && n%2==0){
           float i=n/3.0;
	   cout << i ;
   }

   else if (n>0 && n%2!=0){
      cout << n*n*n;
  }

     else {
        cout << "00";
     }

}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin>>n;
	if(n>=-1000&&n<=1000){
	if(n<0&&n%2==0){
		cout<<n/2;}
	else if(n<0&&n%2!=0){
		cout<<n*n;}
	else if(n>0&&n%2==0){
		float m;
		m=n/3;
		cout<<m;}
	else if(n>0&&n%2!=0){
		cout<<n*n*n;}
	else if(n==0){
		cout<<"00";}}
}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int  n;
	cin>>n;
	if (n>=-1000 && n<= 1000){
		if (n==0){
			cout<<"00";}
		else if (n>0){
			if (n%2==0){cout<<n/3.0;}
			else {cout<<n*n*n;}
		}
		else { 
			if(n%2==0){cout<<n/2.0;}
			else {cout<<n*n;}
		}
	}
}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
   main_program {
	   int n;
	   cin >> n;
	   if ( n < 0 && n%2 == 0 )
		   cout << n/2 << endl;
	   else if ( n<0 && n%2 != 0 )
		   cout << n*n << endl;
	   else if ( n>0 &&  n%2 == 0 )
		   cout << n/3.0 << endl;
	   else if ( n>0 && n%2 != 0 )
		   cout << n*n*n << endl;
	   else cout << 0 << 0 <<  endl;
   }

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin >> n;
	if (n<0){
		if (n%2==0){
			cout << n/2;
		}
		else {
			cout << n*n;
		}
	}
	else if (n>0){
		if (n%2==0){
			cout << n/3.0;
		}
		else{
			cout << n*n*n;
		}
	}
	else{
		cout << "00";
	}
}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program
{
int n;
long long int q=0;
 double p;
cin>>n;
if(n==0){cout<<"00"<<endl;}
else{
if(n%2==0)
{
if(n<0){p=n/2;}
if(n>0){p=n/3.0;} 
}

if(n%2!=0)
{
if(n<0){p=n*n;}
if(n>0){q=n*n*n;cout<<q<<endl;}


}
if(q==0)
{cout<<p<<endl;
}



}
}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include <simplecpp>
main_program {
int n;
cin >> n;

if(n<0){

	if (n%2!=0){
cout << n*n;
	}

	else if (n%2 == 0){
		float z =n/2;
cout << z;
	}

}


else{

	if (n%2==0 && n!=0){
		float  z=n/3.0;
cout << z;
	}


	else if(n%2!=0){
cout << n*n*n;
	}	

else{
cout << n <<n;
}

}

}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	signed int a;
	float b;
	cin>>a;
	if( a<0 && a%2==0){
		b=a/2;
		cout<<b;}
	if( a<0 && a%2!=0){
		b=a*a;
		cout<<b;}
	if(a>0 && a%2==0){
		b=a/3.0;
		cout<<b;}
	if(a>0 && a%2!=0){
		b=a*a*a;
		cout<<b;}
	if(a==0)cout<<a<<a;
}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include <simplecpp>
main_program {
	int n;
	cin >> n;
	if ( n < 0 && n%2 == 0 ) {
		cout << (n/2);
	}
	else if ( n < 0 && n%2 != 0 ) {
		cout << (n*n);
	}
	else if ( n > 0 && n%2 == 0 ) {
		cout << ((n/3.0));
	}
	else if ( n > 0 && n%2 != 0 ) {
                cout << (n*n*n);
        }
	else {
		cout << 0 << 0;
	}
}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<iostream>
#include<simplecpp>
using namespace std;
int main(){
int n;
	
	cin>>n;

	if(n<0 && n%2==0){
		cout<<n/2;
	}
		else if (n<0 && n%2 !=0){
			cout<<n*n;}
			else if(n>0 && n%2==0){
					cout<<n/3;}
					else if (n>0 && n%2 !=0){
					cout<<n*n*n;
					}
					
					else {
					cout<<0<<0;
					}
				
					}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include <simplecpp>

main_program {
	int n;
	cin >> n;
	if(n<0 && (-1*n)%2==0){
		cout << n/2;
	}

	if(n<0 && (-1*n)%2!=0){
		cout << n*n;
	}

	if (n>0 && n%2==0){
		cout << n*1.0/3;
	}

	if (n>0 && n%2!=0) {
		cout << n*n*n;
	}

	if (n==0) {
		cout << "0";
		cout << "0";
	}

}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program
{
	int n;
	long double result;
	cin>>n;
	if(n<0)
	{
		if(n%2==0)
		{
			result=n/2;
			cout<<result<<endl;
		}
		else
		{
			result=pow(n,2);
			cout<<result<<endl;
		}
	}
	else if(n>0)
	{
		if(n%2==0)
		{
			result=1.0*n/3;
			cout<<result<<endl;
		}
		else
		{
			result=pow(n,3);
			long int new_result=result;
			cout<<new_result<<endl;
		}
	}
	else
		cout<<"00"<<endl;
}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>

main_program{
	int n ;
	cin >> n ;

	if((n >= -1000)&&(n <= 1000))
	{
		if((n < 0)&&((-n%2)==0))
		{
			cout << n*1.0/2 ;
		}
		else if((n<0)&&((-n%2)!=0))
		{
			long int sq = n*n ;
			cout << sq ;
		}
		else if((n>0)&&((n%2)==0))
		{
			cout << n*1.0/3 ;
		}
		else if((n>0)&&((n%2)!=0))
		{
			long int cube = n*n*n ;
			cout << cube ;
		}
		else{ cout <<"00" << endl ;}

	}

}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin>>n;
	if(n<0){
		if (n%2==0){
			cout<<n/2;}
		else{cout<<n*n;}
	}
	if(n>0){
		if(n%2==0){
			cout<<n/3.0;}
		else{cout<<n*n*n;}
	}
	if(n==0){
		cout<<"00";}
}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin >> n;
	if(n <= -1 && -1*n%2 == 0){
		cout << n/2 << endl;}
	if(n <= -1 && -1*n%2 != 0){
                cout << n*n << endl;}
	if(n >= 1 && n%2 == 0){
                cout << n/3.0 << endl;}
	if(n >= 1 && n%2 != 0){
                cout << n*n*n << endl;}
	if(n == 0){
                cout << 00 << endl;}
}

Grading criterion: Eg Use of functions beyond what was instructed or any other nice quality
Rating A: Some extra nice qualities
Rating B: Nothing extra
Rating C: 0
Rating D: 0
Assigned grade: B