Problem minimum
User jasmine
Submission Time 2023-11-09 09:25:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:5:24: error: expected ‘;’ before ‘)’ token
5 | for(a = 0, a <= N, ++a){
| ^
| ;
minimum.cpp:8:2: error: expected primary-expression before ‘return’
8 | return min(array);
| ^~~~~~
minimum.cpp:7:3: error: expected ‘;’ before ‘return’
7 | }
| ^
| ;
8 | return min(array);
| ~~~~~~
minimum.cpp:8:2: error: expected primary-expression before ‘return’
8 | return min(array);
| ^~~~~~
minimum.cpp:7:3: error: expected ‘)’ before ‘return’
7 | }
| ^
| )
8 | return min(array);
| ~~~~~~
minimum.cpp:5:5: note: to match this ‘(’
5 | for(a = 0, a <= N, ++a){
| ^
minimum.cpp:8:18: error: no matching function for call to ‘min(int [N])’
8 | return min(array);
| ^