hello
our doctor give as in assignment , i already try to solve it but i got some errors...

==========

Write a function named compareArrays that takes 4 parameters, two arrays of any type

(arrA[] and arrB[]) , and two integers sizeA and sizeB, being the number of elements in the two arrays respectively. The function should return boolean value which is true if the arrays are of the same size and all the corresponding elements in both arrays arrA and arrB are equal. Otherwise, it will return false. (i.e. return false if sizeA is different from sizeB or if any element of arrA is different from the corresponding element of arrB). Test the functions by writing a C++ program.

==========
PHP Code:
#include <iostream>
template <class Type>
bool compareArrays(Type *arrAType  *arrB);

using namespace std;

template <class Type>
bool compareArrays(Type arrA,Type arrBint sizeAint sizeB){



bool flag=true;

// arrayA
    
cout<<"Enter the number of element in arrayA:";
    
cin>>sizeA;
    
arrA= new Type[sizeA];

    
cout<<"Enter the elements of arrayA:";
    for ( 
int i=0i<sizeAi++)
    
cin>>arrA[i];


// arrayB
    
    
cout<<"Enter the number of element in arrayB:";
    
cin>>sizeB;
    
arrB= new Type[sizeB];

    
cout<<"Enter the elements of arrayB:";
    for ( 
int j=0j<sizeBj++)
    
cin>>arrB[j];
// compareArrays checks equivalent

    
while(flag){
    if (
sizeA!=sizeB)
    {    
flagfalse;
    break;
    }

    else{
    
    for (
int q=0q<sizeAq++)
        if(
arrA[q]!=arrB[q]){
    
flag=false;
    break;}
    

        return 
flag;
    }

    
    }



}

int main(){
int sAsB;

compareArrays<int>(,bsA,  sB);



return 
0;

the errors

Error 1 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup MSVCRTD.lib Assigment7


Error 2 fatal error LNK1120: 1 unresolved externals C:\Users\user\Desktop\Assigment7\Debug\Assigment7.exe Assigment7