Problem minimum
User ToiletBrIcker
Submission Time 2024-10-16 09:26:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:2:2: error: ‘min’ was not declared in this scope
2 | min = A[0];
| ^~~
minimum.cpp:3:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
3 | for (int i = 0;i < A;i++){
| ^
minimum.cpp:7:13: error: expected ‘;’ before ‘}’ token
7 | }return min
| ^
| ;
8 | }
| ~