Problem minimum
User earthyeet
Submission Time 2026-01-27 13:56:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:6:2: error: expected ‘,’ or ‘;’ before ‘for’
6 | for (int i = 1; i < N; i++) {
| ^~~
minimum.cpp:6:18: error: ‘i’ was not declared in this scope
6 | for (int i = 1; i < N; i++) {
| ^
minimum.cpp:12:12: error: expected ‘;’ at end of input
12 | return min
| ~~~^
| ;
minimum.cpp:12:9: error: expected ‘}’ at end of input
12 | return min
| ^~~
minimum.cpp:4:29: note: to match this ‘{’
4 | int findMin(int N, int A[]) {
| ^