Problem minimum
User meal
Submission Time 2024-12-11 17:36:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:5:13: error: ‘arr’ was not declared in this scope
5 | int m; m = arr[0];
| ^~~
minimum.cpp:6:22: error: ‘n’ was not declared in this scope
6 | for (int i = 0; i < n; i++)
| ^
minimum.cpp:8:7: error: ‘min’ was not declared in this scope
8 | m = min(arr[i], m);
| ^~~