Urgent HELP needed with non working C++ code

Hello everyone, Below is my code that is not working and the 2 errors I'm getting are error codes LNK2019 and LNK1120 but I can't figure out what is causing these errors. Please if anyone can help me as soon as possible I would be very grateful because I need this code to run. I had changed all the errors I thought I had to to get it to work but it just won't. Thanks!!!
-----------------------------------

#include<iostream>
#include<cmath>

using namespace std;


int main()
{
const int size=56;

double R[size]={45.3, 67.8, 34.3, 51.2, 48.5, 61.3, 59.3, 65.1,
49.3, 42.4, 63.5, 69.8, 71.2, 39.8, 55.5, 53.2,
56.7, 48.8, 61.5, 51.2, 58.9, 63.1, 67.5, 62.4,
52.4, 50.2, 49.8, 56.8, 59.7, 60.4, 45.8, 43.8,
51.3, 54.8, 55.1, 52.3, 56.2, 59.7, 63.0, 46.7,
63.1, 58.2, 41.9, 59.2, 57.2, 67.3, 68.2, 38.9,
51.3, 63.8, 53.4, 58.9, 56.3, 58.9, 53.2, 56.8};

double summation=0, mean, max, min, range, sum1=0,variance, std;


for( int count=0; count<size; count++)
{
summation=summation+R[count];
}
mean=summation/size;



max=R[0];
min=R[0];

for(int count=1;count<size;count++)
{
if(R[count]>max)
max=R[count];

if(R[count]<min)
min=R[count];

}
range=max-min;


for(int i=1;i<size;i++)
{
sum1=sum1+(R[i]-mean)*(R[i]-mean);
}

variance=sum1/size;

std=sqrt(variance);





cout<<"The mean is "<<mean<<endl;
cout<<"The max is "<<max<<endl;
cout<<"The min is "<<min<<endl;
cout<<"The range is "<<range<<endl;
cout<<"The variance is"<<variance<<endl;
cout<<"The std is"<<std<<endl;










system("pause");
return 0;

}
i compiled .

doesn't have any problem. check your cpp. your other cpp didn't exclude isnt?
Topic archived. No new replies allowed.