Problem minimum
User Dan64091
Submission Time 2025-03-15 11:44:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:10:21: error: expected initializer before ‘A’
10 | long long int min A[0];
| ^
minimum.cpp:12:12: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<=’
12 | if(A[i] <= min){
| ~~~~~^~~~~~
minimum.cpp:13:14: error: overloaded function with no contextual type information
13 | min = A[i];
| ^
minimum.cpp:16:10: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘int’
16 | return min;
| ^~~