Problem minimum
User Fax
Submission Time 2026-06-25 16:41:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:5:22: error: ‘n’ was not declared in this scope
5 | for(int i = 0; i<n; i++){
| ^
minimum.cpp:7:17: error: ‘a’ was not declared in this scope
7 | h = a[i];
| ^
minimum.cpp: In function ‘int main()’:
minimum.cpp:16:42: error: ‘A’ was not declared in this scope
16 | for ( int i = 0; i < n; i++ ) cin >> A[i];
| ^
minimum.cpp:17:24: error: ‘A’ was not declared in this scope
17 | cout << findMin(n, A);
| ^