Problem minimum
User hiroc
Submission Time 2026-04-30 17:29:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:3:25: error: ‘n’ was not declared in this scope
3 | for (int i = 0; i < n; i++) res = min(res, A[i]);
| ^
minimum.cpp:3:39: error: ‘min’ was not declared in this scope
3 | for (int i = 0; i < n; i++) res = min(res, A[i]);
| ^~~