Problem minimum
User popperoni
Submission Time 2023-11-20 23:35:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp:6:27: error: use of parameter outside function body before ‘]’ token
6 | int findMin(int a, int b[a]) {
| ^
minimum.cpp: In function ‘int findMin(...)’:
minimum.cpp:7:21: error: ‘b’ was not declared in this scope
7 | return std::min(b[0], b[a-1]);
| ^
minimum.cpp:7:29: error: ‘a’ was not declared in this scope
7 | return std::min(b[0], b[a-1]);
| ^