tutorial2.cpp: In function 'int GetMax(int*, int**)':
tutorial2.cpp:4:3: error: 'cin' was not declared in this scope
cin >> n;
^~~
tutorial2.cpp:4:3: note: suggested alternative:
In file included from tutorial2.cpp:1:0:
/usr/include/c++/7/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^~~
tutorial2.cpp:5:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for (int i=0; i<n; i++) cin >> A[i];
^
tutorial2.cpp:7:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for (int i=0; i<n; i++) if (a > A[i]) a = A[i];
^
tutorial2.cpp:7:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for (int i=0; i<n; i++) if (a > A[i]) a = A[i];
^
tutorial2.cpp:7:48: error: invalid conversion from 'int*' to 'int' [-fpermissive]
for (int i=0; i<n; i++) if (a > A[i]) a = A[i];
~~~^