Can someone kinda check this one to see what wrong with it?
#include <iostream>
using namespace std;
int ture ( int a[], int b[], int d);
int main ()
{
int b [5]={1,2,3,4,5};
int a [5] ={1,2,3,4,5};
int total= ture(b, a, 5);
cout << total << endl;
}
int ture ( int a[], int b[], int d)
{
const double NUM = 10;
for (int d = 0; d < 10; d++)
{
if (a[d] != b[d])
{
return false;
}
}
return true;
}