Problem | minimum |
---|---|
User | aj |
Submission Time | 2024-09-11 09:14:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:14:17: error: request for member ‘begin’ in ‘A’, which is of non-class type ‘int*’
14 | std::sort(A.begin(),A.end());
| ^~~~~
minimum.cpp:14:27: error: request for member ‘end’ in ‘A’, which is of non-class type ‘int*’
14 | std::sort(A.begin(),A.end());
| ^~~
minimum.cpp: In function ‘int main()’:
minimum.cpp:20:13: error: too few arguments to function ‘int findMin(int, int*)’
20 | findMin()
| ^
minimum.cpp:13:5: note: declared here
13 | int findMin(int N, int A[]){
| ^~~~~~~