Problem minimum
User SubtleNotice
Submission Time 2025-10-05 14:20:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:6:27: error: request for member ‘begin’ in ‘A’, which is of non-class type ‘int*’
6 | int x = min_element(A.begin(),A.end());
| ^~~~~
minimum.cpp:6:37: error: request for member ‘end’ in ‘A’, which is of non-class type ‘int*’
6 | int x = min_element(A.begin(),A.end());
| ^~~
minimum.cpp:6:13: error: ‘min_element’ was not declared in this scope
6 | int x = min_element(A.begin(),A.end());
| ^~~~~~~~~~~