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

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:6:24: error: expected ‘;’ before ‘)’ token
6 | for(a = 0, a <= N, ++a){
| ^
| ;
minimum.cpp:11:2: error: expected primary-expression before ‘return’
11 | return min;
| ^~~~~~
minimum.cpp:10:3: error: expected ‘;’ before ‘return’
10 | }
| ^
| ;
11 | return min;
| ~~~~~~
minimum.cpp:11:2: error: expected primary-expression before ‘return’
11 | return min;
| ^~~~~~
minimum.cpp:10:3: error: expected ‘)’ before ‘return’
10 | }
| ^
| )
11 | return min;
| ~~~~~~
minimum.cpp:6:5: note: to match this ‘(’
6 | for(a = 0, a <= N, ++a){
| ^