Problem minimum
User Cat
Submission Time 2025-03-26 16:11:55
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:11: error: ‘a’ was not declared in this scope
6 | ll ans = a[0];
| ^
minimum.cpp:7:16: error: ‘n’ was not declared in this scope
7 | for(ll i=1; i<n; i++){
| ^