Problem minimum
User LewDewMewPewShoo
Submission Time 2026-09-01 14:08:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:5:9: error: declaration of ‘int A [N]’ shadows a parameter
5 | int A[N];
| ^
minimum.cpp:6:9: error: request for member ‘rbegin’ in ‘A’, which is of non-class type ‘int [N]’
6 | sort(A.rbegin(), A.rend());
| ^~~~~~
minimum.cpp:6:21: error: request for member ‘rend’ in ‘A’, which is of non-class type ‘int [N]’
6 | sort(A.rbegin(), A.rend());
| ^~~~