Problem minimum
User kahchun
Submission Time 2023-11-03 20:39:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:5:11: error: overloaded function with no contextual type information
5 | min = A[0];
| ^
minimum.cpp:6:39: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’
6 | for (int i = 1; i < N; i++) if (A[i] < min) min = A[i];
| ~~~~~^~~~~
minimum.cpp:6:55: error: overloaded function with no contextual type information
6 | for (int i = 1; i < N; i++) if (A[i] < min) min = A[i];
| ^
minimum.cpp:7:9: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘int’
7 | return min;
| ^~~