https://www.codechef.com/problems/AVG

I am getting the wrong answer

#include

using namespace std;

int main() {

int freq,n,k,v,num;

float del_no,is_int;

long int sum;

cin>>freq;

for(int i=0;i<freq;i++)

{

sum=0;

cin>>n>>k>>v;

for(int i=0;i<n;i++)

{

cin>>num;

sum=sum+num;

}

del_no = v*(n+k)-sum;

del_no = del_no/(float)k;

```
is_int = del_no-(int)del_no ;
if( is_int == 0 && del_no > 0)
cout<<del_no<<endl;
else
cout<<"-1"<<endl;
}
return 0;
```

}