CodeGraderBench/CodeGraderBench huggingface dataset:
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float n;
	cin>>n;
	double x=0.5;
	double epsilon=1.0E-5;
	while(abs(x*x-n)>epsilon){
		x=(x+n/x)/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program
{
	float x;
	cin>>x;
	float k=x;
	for(int i=1;i<100;i++)
	{
		k=(k+(x/k))/2.0;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<k;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float in;
	cin>>in;
	double x=in;
	repeat(10000){
		x=(x+(in/x))/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include <simplecpp>
 main_program{
	 double x, input;
         cin>>input;
	 x=input;
	 repeat(1000){
		x=(x+(input/x))/2;
	 }
	 cout<<fixed;
	 cout.precision(3);
	 cout<<x;
 }

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input_number;
	cin>>input_number;
        cout<<fixed<<endl;
	cout.precision(3);
	cout<<sqrt(input_number);
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float y,x;
	cin>> x;
	y=x;
	for( int i=1;i<10000; i++){
		x=(x+y/x)/2;
	}
	cout<< fixed;
	cout.precision(3);
	cout<< x<<endl;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float x , y;
	cin>>y;
	x=y;
	repeat(5){
		x=(x+y/x)/2;
	}
	cout.precision(4);
	cout<<x;
	
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input_number,x;
	cin>>input_number;
	x = input_number;
	repeat(10000){
		x = (x+input_number/x)/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>

main_program {
float x, input_number;
cin>>input_number;
x=input_number;

repeat(100) {
x=(x+(input_number/x))/2;
}

cout<<fixed;
cout.precision(3);
cout<<x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include <simplecpp>
main_program{
	float input_number;
	cin>>input_number;
	float x;//input estimated square root
	cin>>x;
	
	repeat(1000){
			x=(x+input_number/x)/2.0;}
	cout<<fixed;
	cout.precision(3);
	cout<<x;}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include <simplecpp>

main_program{
	float input_number;
	cin >> input_number;
	float x=input_number/2;			//initial estimate
	while(abs(x*x-input_number)>1.0e-5){
		x=(x+input_number/x)/2;		//using The Babylonian Algorithm
	}
	cout << fixed;
	cout.precision(3);
	cout << x <<endl;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program
{
	float input_number;
	cin >> input_number;

	float x = input_number;

	repeat(10000){
		x = (x + input_number/x)/2;
	}
	cout <<fixed; cout.precision(3); cout << x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
double nxt(double x, double y){
	return (x+y/x)/2;
}
main_program{
	double y;
	cin>>y;
	double x=1;
	while(abs(x-nxt(x,y))>=0.0001){
		x=nxt(x,y);
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x<<endl;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input; cin>> input;
	float x=1;

	while(abs(x*x-input)>0.001){
		x= (x+input/x)*(0.5);
	}
	
	cout<<fixed;
	cout.precision(3);
	cout<< x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float x>0,y;
	cin>>x;

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float x=1,y;
	cin>>y;
	repeat(1000){
		x=(x+y/x)/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include <simplecpp>
main_program{
	float input, x;
	cin>>input;
	x=input;
	while((x*x-input)>0.00001){
		x=(x+input/x)/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program
{
	float x;
	cin>>x;
	float root=x;
	repeat(100)
	{
		root=(root+x/root)/2.0;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<root;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include <simplecpp>

main_program {
	float y, x = 1;
	cin >> y;
	repeat(10) {
		x = (x+y/x)/2.0;
	}
	cout << fixed;
	cout.precision(3);
	cout << x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program {
	float c ,x, t;

	
	cin >> c ;
	x = c ;
	repeat (1000) {
		t =( ( x + c/x)/2);
		x = t ;
	}
	cout << fixed ;
	cout.precision(3);
	cout << x ;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	double x, input - number;
		cin >> input-number;
		x = input-number;
	repeat(1000){
		x = (x + input-number/x)/2;}
		cout << fixed;
		cout << precision(3);
		cout << x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float n;
	cin>>n;
	float x=n;
	repeat(100){
		x=(x+n/x)/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program  {
	float input_number,x;
	cin>>input_number;
	x=input;
	while(abs(x*x-input_number)>=0.001) {
	   x=((x+input_number)/x)/2.0;
	        }
	cout<<fixed;
	cout.precision(3);
	cout<<x<<endl;
	      }

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include <simplecpp>
main_program{
    float num;
    cin >> num >> endl;

    for(int x=1;x<=num;x++){
        answer=(x+num/x)/2;
        }
    cout << answer << endl;
    }

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include <simplecpp>
main_program{
	float input_number, x;
	cin >> input_number;
	x = input_number;

        if (){
		x = (x + input_number/x) / 2;
		input_number = x;
	}	
	cout << fixed;
	cout.precision(3);
	cout << x;

	//for, while, if, else
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input_number;
	cin>>input_number;
	float x;
	x=input_number;
	repeat(100){
	x=(x+input_number/x)/2;
	}
cout<<fixed;
cout.precision(3);
cout<<x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
		
	main_program{

		float x1 = 1;
		float x2 = 0;
		float a ;
		cin>>a ;

		while (abs(pow(a,0.5)-x1)>0.001){

			x2 = x1 - (x1*x1-a)/2*x1;
			x1 = x2 ;

		}

		cout<<fixed;
		cout.precision(3);
		cout<<x1;
	}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input_number;
	cin>>input_number;
	float x=input_number;
	repeat(8){
		x=(x+input_number/x)/2;
	}
	cout<<fixed;
	
	cout.precision(3);
	cout<<x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float x,sqrt;
	cin>>x;
	sqrt=x;

	for (float n=0;abs(n-sqrt)>0.001;){
		n=sqrt;
		sqrt=(sqrt+(x/sqrt))/2;	
	}

	cout<<fixed;
	cout.precision(2);
	cout<<sqrt<<endl;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	double x=1;
	double n;
	cin >>n;
	repeat(100){
		x=(x+(n/x))/2;
	}
	cout <<fixed;
	cout.precision(3);
	cout <<x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float a;
	cin>>a;
	float x=a;
	while(x!=sqrt(a)){
		x=(x+(a/x))/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
float root(float a){
	float x=a/2;
	double i=0;
	while(i<100){
		x=(x+a/x)/2;
		i+=1;
	}
	return x;
}
main_program{
	float a,b;
	cin>> a;
	b=root(a);
	cout<<fixed;
	cout.precision(3);
	cout<<b;
}

Grading criterion: if standard libraries ( sqrt, pow) are used?
Rating A: if no standard C++ library is used
Rating B: if any one of the standard C++ libraries was used
Rating C: if both standard C++  libraries were used
Rating D: 0
Assigned grade: A