Problem minimum
User Water
Submission Time 2023-06-26 16:16:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:4:9: error: declaration of ‘int A [0]’ shadows a parameter
4 | int A[0]=min;
| ^
minimum.cpp:4:11: error: array must be initialized with a brace-enclosed initializer
4 | int A[0]=min;
| ^~~
minimum.cpp:5:6: error: declaration of ‘int N’ shadows a parameter
5 | int N;
| ^
minimum.cpp:7:11: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’
7 | if (A[i]<min) {
| ~~~~^~~~
minimum.cpp:8:9: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘int’
8 | A[i]=min;
| ^~~
minimum.cpp:11:9: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘int’
11 | return min;
| ^~~
minimum.cpp: In function ‘int main()’:
minimum.cpp:16:6: error: storage size of ‘b’