Problem minimum
User PrunJuice
Submission Time 2025-03-21 15:52:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:5:28: error: request for member ‘begin’ in ‘A’, which is of non-class type ‘int*’
5 | int m = *min_element(A.begin(), A.end());
| ^~~~~
minimum.cpp:5:39: error: request for member ‘end’ in ‘A’, which is of non-class type ‘int*’
5 | int m = *min_element(A.begin(), A.end());
| ^~~
minimum.cpp:5:14: error: ‘min_element’ was not declared in this scope
5 | int m = *min_element(A.begin(), A.end());
| ^~~~~~~~~~~
minimum.cpp:6:12: error: ‘min’ was not declared in this scope
6 | return min(n, m);
| ^~~