CodeGraderBench/CodeGraderBench huggingface dataset:
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

Student submission:
#include<simplecpp>
main_program{
	
	float a,b,c,d;
	cin>>a>>b>>c>>d;
       float  sum=(a*d+b*c)/(b*d);
       cout<<sum<<endl;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

Student submission:
#include<simplecpp>
main_program{
    double a,b,c,d; //I am not adding anythings about the constraints since it is given as an assumption
    cin>>a>>b>>c>>d;
    double ans=(a*d+b*c)/(b*d);
    cout<<ans;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

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

main_program{
	float a,b,c,d;
	cin>>a>>b>>c>>d;
	float ans =(a*d+b*c)/(b*d);
	cout<<ans;
	}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

Student submission:
#include<simplecpp>
main_program {
	float a,b,c,d,k ;
	cin>>a>>b>>c>>d;
		k= (a*d+b*c)/(b*d);
		cout<<k<<" ";}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

Student submission:
#include <iostream>
using namespace std;
int main(){
    float a, b, c, d;
    cin>>a>>b>>c>>d;
    float e=(a*d+b*c)/(b*d);
    cout<<e<<endl;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

Student submission:
#include<simplecpp>
main_program{
int a; int b; int c; int d;
cin >> a >> b >> c >> d;
float e = ((a*1.0) / (b*1.0)) + ((c*1.0) / (d*1.0));
if(a<=100 && a>=0 && b <=100 && b>= 0 && c >= 0 && c <= 100 && d >= 0 && d<=100){
cout << e <<"\n";
}
else{
cout<<"invalid input"<<"\n";
}
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

Student submission:
#include<simplecpp>
main_program{
double a,b,c,d;
cin >> a >> b >> c >> d;
cout << ((a*d)+(b*c))/(b*d);
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

Student submission:
#include<simplecpp>
main_program{
	int a,b,c,d;
	cin>>a>>b>>c>>d;
	float e,f,g,h;
	e=a*d;
	f=b*c;
	g=b*d;
	h=(e+f)/g;
	cout<<h;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

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

int main(){
float a, b, c, d;
cin>>a>>b>>c>>d;

float e = (a/b);
float f = (c/d);

float g = float(e+f);

if(a>=1 && a<=100 && b>=1 && b<=100 && c>=1 && c<=100 && d>=1 && d<=100){
cout<<float (g)<<endl;

}
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

Student submission:
#include<simplecpp>
main_program{
	int a, b, c, d;
	float n, x, y;
	cin>>a>>b>>c>>d;
	x=((a*d)+(b*c));
	y=(b*d);
	n=x/y;
	if((a>=1 && a<=100)&&(b>=1 && b<=100)&&(c>=1 && c<=100)&&(d>=1 && d<=100)){
		cout<<n;
	}
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

Student submission:
#include<simplecpp>
main_program
{
	int a,b,c,d,y;
	cin>>a>>b>>c>>d;
	float x;
	x=((1.0*a)/(1.0*b))+((1.0*c)/(1.0*d));
	y=(a/b)+(c/d);
	if (y>x) cout<<y;
	else cout<<x;
	
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

Student submission:
#include<simplecpp>
main_program{
    int a,b,c,d;
    cin>>a>>b>>c>>d;
    float s;
    s= (a*d+b*c)*1.0/(b*d);
    cout<<s;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

Student submission:
#include<simplecpp>
main_program{
float a,b,c,d,i=1;
double r;
cin>>a>>b>>c>>d;
if(a/i>0 && b/i>0 && c/i>0 && d/i>0){
r=(a*d+b*c)/(b*d);
cout<<r;
}
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to accept four numbers from the user a, b, c, and d and compute the addition of (a/b) with (c/d). The formula to compute the addition of two fractions is given below (a*d + b*c)/(c*d). Print the final value as output on the screen.

Note: Do not write any C++ statements for printing general messages. For example, the following should NOT be present in your program:cout << "Enter a number:", cout << "The computed answer is", etc. In addition, do not print unnecessary spaces unless specified in the program. You just have to print the result.

Student submission:
#include<simplecpp>
main_program{
	int a, b, c, d;
	cin>>a>>b>>c>>d;
	float result, sum;
	sum=(a*d + b*c);
	result=(b*d);
	cout<<(sum/result)<<endl;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to take the dimensions of a matrix (m,n) as input from the user. The program should then take the matrix (let us call it A) itself as input from the user. Following this, the program should compute the product of the transpose of A with A (i.e. ATA of size n x n) and display the result. To accomplish this task, write a function of the form void compute_matrixtranspose_matrix_product (int A[][MAX], int m, int n, int ATA[][MAX]).

Constraints
n is a positive integer, m,n <= 8

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

void compute_matrixtranspose_matrix_product (int a[max][max],int m,int n,int ata[max][max]){
int at[max][max];

for(int x=0;x<m;x++){
	for(int y=0;y<n;y++){
		at[y][x]=a[x][y];

}
}

/*for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
cout<<at[i][j]<<" ";}
cout<<endl;}
*/

int i,j,k;
for(i=0;i<n;i++) {
for(j=0;j<n;j++){
			ata[i][j] = 0;
	for(k=0;k<m;k++){
			ata[i][j] =ata[i][j]+ at[i][k]*a[k][j];
			} // 
} 


}
}

int main(){

int m,n;
cin>>m>>n;

int a[max][max];

for(int i=0;i<m;i++){
for(int j=0;j<n;j++){
cin>>a[i][j];}}



int ata[max][max];



compute_matrixtranspose_matrix_product(a, m, n,ata);

for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cout<<ata[i][j]<<" ";
}
cout<<endl;
}
return 0;

}

Grading criterion: quality and number of comments
Rating A: Well commented
Rating B: okay commented
Rating C: poor or no comments
Rating D: 0
Assigned grade: C
Problem: Write a C++ program to take the dimensions of a matrix (m,n) as input from the user. The program should then take the matrix (let us call it A) itself as input from the user. Following this, the program should compute the product of the transpose of A with A (i.e. ATA of size n x n) and display the result. To accomplish this task, write a function of the form void compute_matrixtranspose_matrix_product (int A[][MAX], int m, int n, int ATA[][MAX]).

Constraints
n is a positive integer, m,n <= 8

Student submission:
#include<iostream>
#define MAX 100
using namespace std;
void input(int A[][MAX],int m,int n){
for(int i=0;i<m;i++){
for(int j=0;j<n;j++){
cin>>A[i][j];
}
}
}
void compute_matrixtranspose_matrix_product(int A[][MAX],int m,int n,int ATA[][MAX]){
for(int i=0;i<n;i++){
for (int j=0;j<n;j++){
ATA[i][j]=0;for(int k=0;k<m;k++){
ATA[i][j]=ATA[i][j]+A[k][i]*A[k][j];
}
}
}
for (int i=0;i<n;i++){
for (int j=0;j<n;j++){
cout<<ATA[i][j];if (j<m-1){cout<<" " ;}
}
if (i<m-1) {cout<<endl; }
}
}
int main(){
int m,n;
cin>>m>>n;
int A[m][MAX],ATA[n][MAX];
input (A,m,n);
compute_matrixtranspose_matrix_product(A,m,n,ATA);

}

Grading criterion: quality and number of comments
Rating A: Well commented
Rating B: okay commented
Rating C: poor or no comments
Rating D: 0
Assigned grade: C
Problem: Write a C++ program to take the dimensions of a matrix (m,n) as input from the user. The program should then take the matrix (let us call it A) itself as input from the user. Following this, the program should compute the product of the transpose of A with A (i.e. ATA of size n x n) and display the result. To accomplish this task, write a function of the form void compute_matrixtranspose_matrix_product (int A[][MAX], int m, int n, int ATA[][MAX]).

Constraints
n is a positive integer, m,n <= 8

Student submission:
#include<iostream>
#include<cstring>
#include<cmath>
#define MAX 100
using namespace std;
void transpose(int a[][MAX], int m, int n, int b[][MAX])
{
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
a[i][j]=b[j][i];
}
}
}
void matrix_multiply (int A[][MAX], int B[][MAX], int C[][MAX], int nr1, int nc1, int nr2, int nc2){
if (nc1 != nr2) { cout << "dimension mismatch"; return;}
int i,j,k;
for(i=0;i<nr1;i++) {
for(j=0;j<nc2;j++){
			C[i][j] = 0;
	for(k=0;k<nc1;k++){
			C[i][j] += A[i][k]*B[k][j];}}}}
			
int main(){
int a,n,m;
cin>>n>>m;
int [n][m];
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
cin>>a[i][j];
}}
int at [m][max];
transpose(a,at,n,m);
matrix_multiply(a,n,m,at,c);
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
cout<<at[i][j]<<" ";
}
cout<<endl;
}
}

Grading criterion: quality and number of comments
Rating A: Well commented
Rating B: okay commented
Rating C: poor or no comments
Rating D: 0
Assigned grade: C
Problem: Write a C++ program to take the dimensions of a matrix (m,n) as input from the user. The program should then take the matrix (let us call it A) itself as input from the user. Following this, the program should compute the product of the transpose of A with A (i.e. ATA of size n x n) and display the result. To accomplish this task, write a function of the form void compute_matrixtranspose_matrix_product (int A[][MAX], int m, int n, int ATA[][MAX]).

Constraints
n is a positive integer, m,n <= 8

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

void matrix (int a[][max],int m,int n){
	for(int i=0;i<m;i++){
		for(int j=0;j<n;j++){
			cin>>a[i][j];}}}

void compute_matrixtranspose_matrix_product(int A[][max],int m,int n,int ATA[][max]){
	int AT[max][max];
	for(int i=0;i<m;i++){
		for(int j=0;j<n;j++){
			AT[j][i]=A[i][j];}}
	for(int i=0;i<n;i++){
		for(int j=0;j<n;j++){
			ATA[i][j]=0;
			for(int k=0;k<m;k++){
				ATA[i][j]+=AT[i][k]*A[k][j];}}}}

void print(int ATA[][max],int n){
	for(int i=0;i<n;i++){
		for(int j=0;j<n;j++){
			cout<<ATA[i][j]<<" ";}
		cout<<"\n";}}

int main(){
	int n,m;
	cin>>m>>n;
	int A[max][max],ATA[max][max];
	matrix(A,m,n);
	compute_matrixtranspose_matrix_product(A,m,n,ATA);
	print(ATA,n);}

Grading criterion: quality and number of comments
Rating A: Well commented
Rating B: okay commented
Rating C: poor or no comments
Rating D: 0
Assigned grade: C
Problem: Write a C++ program to take the dimensions of a matrix (m,n) as input from the user. The program should then take the matrix (let us call it A) itself as input from the user. Following this, the program should compute the product of the transpose of A with A (i.e. ATA of size n x n) and display the result. To accomplish this task, write a function of the form void compute_matrixtranspose_matrix_product (int A[][MAX], int m, int n, int ATA[][MAX]).

Constraints
n is a positive integer, m,n <= 8

Student submission:
#include<iostream>
#define MAX 100
using namespace std;
void compute_matrixtranspose_matrix_product(int A[][MAX], int m, int n, int ATA[][MAX])
{
	int AT[MAX][MAX];
	for(int i=0; i<m; i++)
	{
		for(int j=0; j<n; j++)
		{
			AT[j][i]=A[i][j];
		}
	}
	int i1, i2, i3;
	for(i1=0; i1<n; i1++)
	{
		for(i2=0; i2<n; i2++)
		{
			ATA[i1][i2]=0;
			for(i3=0; i3<m; i3++)
			{
				ATA[i1][i2]=ATA[i1][i2]+AT[i1][i3]*A[i3][i2];
			}
		}
	}
}
void input_matrix(int A[][MAX], int m, int n)
{
	for(int i=0; i<m; i++)
	{
		for(int j=0; j<n; j++)
		{
			cin >> A[i][j];
		}
	}
}
void print_matrix(int A[][MAX], int m, int n)
{
	for(int i=0; i<m; i++)
	{
		for(int j=0; j<n; j++)
		{
			cout << A[i][j] << " ";
		}
		cout << endl;
	}
}
int main(){
	int m,n;
	cin >> m >> n;
	int A[MAX][MAX], ATA[MAX][MAX];
	input_matrix(A, m, n);
	compute_matrixtranspose_matrix_product(A,m,n,ATA);
	print_matrix(ATA, n, n);
	return 0;
}

Grading criterion: quality and number of comments
Rating A: Well commented
Rating B: okay commented
Rating C: poor or no comments
Rating D: 0
Assigned grade: C
Problem: Write a C++ program to take the dimensions of a matrix (m,n) as input from the user. The program should then take the matrix (let us call it A) itself as input from the user. Following this, the program should compute the product of the transpose of A with A (i.e. ATA of size n x n) and display the result. To accomplish this task, write a function of the form void compute_matrixtranspose_matrix_product (int A[][MAX], int m, int n, int ATA[][MAX]).

Constraints
n is a positive integer, m,n <= 8

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

void compute_matrixtranspose_matrix_product (int A[][MAX], int m, int n, int ATA[][MAX])

{

	for (int j=0;j<m;j++)
	{
		for (int i=0;i<m;i++)
		{
			ATA[i][j]=0;
		}
	}
	if (n==1)
	{
		for (int p=0;p<m;p++)
	{
		for (int q=0;q<m;q++)
		{
			
			{
			ATA[p][q]=A[p][0]*A[q][0];
			}
		}
	}
}
	else
	{
	for (int p=0;p<m;p++)
	{
		for (int q=0;q<m;q++)
		{
			for (int v=0;v<n;v++)
			{
			ATA[p][q]=ATA[p][q]+A[p][v]*A[q][v];
			}
		}
	}
}
}
int main()
{
	int m,n;
	cin>>n>>m;
	int A[m][MAX];
	int ATA[m][MAX];
	for (int j=0;j<n;j++)
	{
		for (int i=0;i<m;i++)
		{
			cin>>A[i][j];
		}
	}
	compute_matrixtranspose_matrix_product(A,m,n,ATA);
	for (int p=0;p<m;p++)
	{
		for (int q=0;q<m;q++)
		{
			cout<<ATA[p][q]<<" ";
		}
		cout<<endl;
	}
}

Grading criterion: quality and number of comments
Rating A: Well commented
Rating B: okay commented
Rating C: poor or no comments
Rating D: 0
Assigned grade: C
Problem: Write a C++ program to take the dimensions of a matrix (m,n) as input from the user. The program should then take the matrix (let us call it A) itself as input from the user. Following this, the program should compute the product of the transpose of A with A (i.e. ATA of size n x n) and display the result. To accomplish this task, write a function of the form void compute_matrixtranspose_matrix_product (int A[][MAX], int m, int n, int ATA[][MAX]).

Constraints
n is a positive integer, m,n <= 8

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

void matprod (int A[MAX][MAX],int B[MAX][MAX],int C[MAX][MAX],int m1,int n1,int m2,int n2){
	for(int i = 0;i<m1;i++){
		for(int j = 0;j <n2;j++){
			C[i][j] = 0;
			for(int k = 0;k < n1;k++){
				C[i][j] = C[i][j] + A[i][k]*B[k][j];
			}
		}
	}
}
void transpose (int A[MAX][MAX],int AT[MAX][MAX],int m,int n){
for(int i = 0;i< n;i++){
	for(int j =0;j<m;j++){
		AT[i][j] = A[j][i];
	}
} 
}

void compute_matrixtranspose_matrix_product (int A[MAX][MAX], int m, int n, int ATA[MAX][MAX]){
	int AT[MAX][MAX];
	transpose (A,AT,m,n);
	matprod(AT,A,ATA,n,m,m,n);

	
}
int main(){
	int A[MAX][MAX];
	int m,n;
	cin >> m;
	cin >> n;
	for(int i=0;i < m;i++){
		for(int j=0;j < n;j++){
			cin >> A[i][j];
		}
	}
	int ATA[MAX][MAX];
	compute_matrixtranspose_matrix_product(A,m,n,ATA);
	for(int i = 0;i<n;i++){
		for(int j = 0;j<n;j++){
			cout << ATA[i][j] << " ";
		}
		cout << endl;
	}



}

Grading criterion: quality and number of comments
Rating A: Well commented
Rating B: okay commented
Rating C: poor or no comments
Rating D: 0
Assigned grade: C