Language: C++

#include <iostream>
using namespace std;

unsigned long long int min(unsigned long long int *A,unsigned long long int N) {
  unsigned long long int count1 = A[0];
  for( int i=0; i<N; i++) {
    if (count1 > A[i])
      count1 = A[i];
  }
  return count1;
}

    

unsigned long long int max(unsigned long long int *A,unsigned long long int N) {
  unsigned long long int count2 = A[0];
   for( int i=0; i<N; i++) {
    if (count2 < A[i])
      count2 = A[i];
  }
  return count2;
}
  
  

unsigned long long int sum(unsigned long long int *A,unsigned long long int N) {
  unsigned long long int count3 = 0;
  for( int i=0; i<N; i++) {
    count3 += A[i];
  }
  return count3;
}
 
  


int main() {
  int N,A[10010];
  cin >> N;
  for (int i=0; i<N; i++)
    cin >> A[i];
  cout << min(A,N) << " " << max(A,N) << " " << sum(A,N) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:14: error: no matching function for call to 'min(int [10010], int&)'
   42 |   cout << min(A,N) << " " << max(A,N) << " " << sum(A,N) << endl;
      |           ~~~^~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:42:14: note:   deduced conflicting types for parameter 'const _Tp' ('int [10010]' and 'int')
   42 |   cout << min(A,N) << " " << max(A,N) << " " << sum(A,N) << endl;
      |           ~~~^~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
a.cc:4:24: note: candidate: 'long long unsigned int min(long long unsigned int*, long long unsigned int)'
    4 | unsigned long long int min(unsigned long long int *A,unsigned long long int N) {
      |                        ^~~
a.cc:4:52: note:   no known conversion for argument 1 from 'int [10010]' to 'long long unsigned int*'
    4 | unsigned long long int min(unsigned long long int *A,unsigned long long int N) {
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~^
a.cc:42:33: error: no matching function for call to 'max(int [10010], int&)'
   42 |   cout << min(A,N) << " " << max(A,N) << " " << sum(A,N) << endl;
      |                              ~~~^~~~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:42:33: note:   deduced conflicting types for parameter 'const _Tp' ('int [10010]' and 'int')
   42 |   cout << min(A,N) << " " << max(A,N) << " " << sum(A,N) << endl;
      |                              ~~~^~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
a.cc:15:24: note: candidate: 'long long unsigned int max(long long unsigned int*, long long unsigned int)'
   15 | unsigned long long int max(unsigned long long int *A,unsigned long long int N) {
      |                        ^~~
a.cc:15:52: note:   no known conversion for argument 1 from 'int [10010]' to 'long long unsigned int*'
   15 | unsigned long long int max(unsigned long long int *A,unsigned long long int N) {
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~^
a.cc:42:53: error: cannot convert 'int*' to 'long long unsigned int*'
   42 |   cout << min(A,N) << " " << max(A,N) << " " << sum(A,N) << endl;
      |                                                     ^
      |                                                     |
      |                                                     int*
a.cc:26:52: note:   initializing argument 1 of 'long long unsigned int sum(long long unsigned int*, long long unsigned int)'
   26 | unsigned long long int sum(unsigned long long int *A,unsigned long long int N) {
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~^