Problem minimum
User huyleisme
Submission Time 2024-02-06 16:36:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp:3:27: error: use of parameter outside function body before ‘]’ token
3 | int findMin(int n, int a[n]) {
| ^
minimum.cpp: In function ‘int findMin(...)’:
minimum.cpp:4:7: error: ‘a’ was not declared in this scope
4 | sort(a, a+n);
| ^
minimum.cpp:4:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
4 | sort(a, a+n);
| ^
| yn