0

I am attempting to write a function that determine the area of a triangle. I am not sure what I am doing wrong when trying to determine the area. The error message I am getting is "error-call of overloaded 'sqrt(int)is ambiguous.

Can you help me determine what is wrong??

```
#include<iostream>
#include<iomanip>
#include<math.h>
using namespace std;
void calc(int a,int b, int c,int s,float area)
{
cout<<(a+b+c)<<"\n";
cout<<(a+b+c)/2<<"\n";
s=(a+b+c)/2;
area=sqrt(s*(s-a)*(s-b)*(s-c));
cout<<area;
}
int main()
{
int value1,value2,value3,value4,value5;
cout<<"enter 3 intergers\n";
cin>>value1>>value2>>value3;
calc(value1,value2,value3,value4,value5);
system ("pause");
return 0;
}
```