Problem | minimum |
---|---|
User | Water |
Submission Time | 2023-06-26 15:53:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(long int, long int*)’:
minimum.cpp:4:7: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘long int’
4 | A[0]=min;
| ^~~
minimum.cpp:6:11: error: invalid operands of types ‘long int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’
6 | if (A[i]<min) {
| ~~~~^~~~
minimum.cpp:7:9: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘long int’
7 | A[i]=min;
| ^~~
minimum.cpp:10:9: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘int’
10 | return min;
| ^~~
minimum.cpp:11:12: error: a function-definition is not allowed here before ‘{’ token
11 | int main() {
| ^
minimum.cpp:13:1: error: expected ‘}’ at end of input
13 | }
| ^
minimum.cpp:3:39: note: to match this ‘{’
3 | int findMin(