Problem minimum
User matt
Submission Time 2024-01-17 15:38:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp:5:27: error: use of parameter outside function body before ‘]’ token
5 | int findMin(int n, int a[n]){
| ^
minimum.cpp: In function ‘int findMin(...)’:
minimum.cpp:6:22: error: ‘a’ was not declared in this scope
6 | return *min_element(a,a+n);
| ^
minimum.cpp:6:26: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | return *min_element(a,a+n);
| ^
| yn