Problem minimum
User Subz3r0
Submission Time 2024-08-19 17:52:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:2:9: error: declaration of ‘int A [N]’ shadows a parameter
2 | int A[N];
| ^
minimum.cpp:3:15: error: request for member ‘begin’ in ‘A’, which is of non-class type ‘int [N]’
3 | return min(A.begin(),A.end());
| ^~~~~
minimum.cpp:3:25: error: request for member ‘end’ in ‘A’, which is of non-class type ‘int [N]’
3 | return min(A.begin(),A.end());
| ^~~
minimum.cpp:3:9: error: ‘min’ was not declared in this scope
3 | return min(A.begin(),A.end());
| ^~~