Problem minimum
User Batigol
Submission Time 2024-06-08 13:15:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:2:15: error: expected ‘,’ or ‘;’ before numeric constant
2 | int res = 10 000 000;
| ^~~
minimum.cpp:3:19: error: ‘n’ was not declared in this scope
3 | for(int i = 0; i<n; i++){
| ^
minimum.cpp:4:9: error: ‘min’ was not declared in this scope
4 | res = min(res, A[i]);
| ^~~