Problem minimum
User vippy
Submission Time 2024-05-04 14:31:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:4:25: error: invalid conversion from ‘int’ to ‘int*’ [-fpermissive]
4 | mn = findMin(mn, A[i]);
| ~~~^
| |
| int
minimum.cpp:1:24: note: initializing argument 2 of ‘int findMin(int, int*)’
1 | int findMin(int N, int A[]) {
| ~~~~^~~