prog.cpp: In function ‘int main()’:
prog.cpp:16:2: error: expected ‘;’ before ‘int’
int* arr = new int[5] = {nullptr};
^~~
prog.cpp:27:17: error: ‘arr’ was not declared in this scope
if(IsAlready(arr, number) == true)
^~~
prog.cpp:38:13: error: ‘arr’ was not declared in this scope
PrintArray(arr,5);
^~~
prog.cpp: At global scope:
prog.cpp:62:54: error: ISO C++ forbids declaration of ‘CompareArray’ with no type [-fpermissive]
CompareArray(int* arr1, int* arr2, int p_countp_count)
^
prog.cpp: In function ‘int CompareArray(int*, int*, int)’:
prog.cpp:62:1: error: ambiguating new declaration of ‘int CompareArray(int*, int*, int)’
CompareArray(int* arr1, int* arr2, int p_countp_count)
^~~~~~~~~~~~
prog.cpp:11:6: note: old declaration ‘void CompareArray(int*, int*, int)’
void CompareArray(int* arr1, int* arr2, int count);
^~~~~~~~~~~~
prog.cpp:65:22: error: ‘p_count’ was not declared in this scope
for(int i = 0 ; i < p_count ; i ++ )
^~~~~~~