Problem minimum
User ZiErn
Submission Time 2023-11-09 09:16:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:5:6: error: declaration of ‘int N’ shadows a parameter
5 | int N; cin >> N;
| ^
minimum.cpp:8:22: error: ‘n’ was not declared in this scope
8 | for (int i = 0; i < n; i++) {
| ^
minimum.cpp:11:6: error: expected ‘;’ before ‘min’
11 | find min(arr[N]);
| ^~~~
| ;
minimum.cpp:11:18: error: statement cannot resolve address of overloaded function
11 | find min(arr[N]);
| ^
minimum.cpp:12:9: error: ‘minimum’ was not declared in this scope
12 | return minimum
| ^~~~~~~
minimum.cpp:12:16: error: expected ‘;’ before ‘}’ token
12 | return minimum
| ^
| ;
13 | }
| ~