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