Problem minimum
User jasmine
Submission Time 2023-11-09 09:36:54
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:11:1: error: expected primary-expression at end of input
11 | }
| ^
minimum.cpp:11:2: error: expected ‘;’ at end of input
11 | }
| ~^
| ;
minimum.cpp:11:1: error: expected primary-expression at end of input
11 | }
| ^
minimum.cpp:11:2: error: expected ‘)’ at end of input
11 | }
| ~^
| )
minimum.cpp:5:5: note: to match this ‘(’
5 | for(a = 0, a <= N, ++a){
| ^
minimum.cpp:11:1: error: expected statement at end of input
11 | }
| ^
minimum.cpp:11:1: error: expected ‘}’ at end of input
minimum.cpp:3:28: note: to match this ‘{’
3 | int findMin(int N, int A[]){
| ^