Problem minimum
User lyangela
Submission Time 2024-06-21 00:45:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:2:5: error: ‘cin’ was not declared in this scope
2 | cin >> N;
| ^~~
minimum.cpp:3:26: error: ‘n’ was not declared in this scope
3 | for ( int i = 0; i < n; i++ ){
| ^
minimum.cpp:6:5: error: ‘cout’ was not declared in this scope
6 | cout << findMin(n, A[]) << endl;
| ^~~~
minimum.cpp:6:21: error: ‘n’ was not declared in this scope
6 | cout << findMin(n, A[]) << endl;
| ^
minimum.cpp:6:26: error: expected primary-expression before ‘]’ token
6 | cout << findMin(n, A[]) << endl;
| ^
minimum.cpp:6:32: error: ‘endl’ was not declared in this scope
6 | cout << findMin(n, A[]) << endl;
| ^~~~