Problem | minimum |
---|---|
User | Axcellant |
Submission Time | 2024-05-13 20:22:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:6:6: error: ‘i’ was not declared in this scope
6 | for(i=1,i<N,i++){
| ^
minimum.cpp:11:2: error: expected primary-expression before ‘return’
11 | return minval;
| ^~~~~~
minimum.cpp:10:3: error: expected ‘;’ before ‘return’
10 | }
| ^
| ;
11 | return minval;
| ~~~~~~
minimum.cpp:11:2: error: expected primary-expression before ‘return’
11 | return minval;
| ^~~~~~
minimum.cpp:10:3: error: expected ‘)’ before ‘return’
10 | }
| ^
| )
11 | return minval;
| ~~~~~~
minimum.cpp:6:5: note: to match this ‘(’
6 | for(i=1,i<N,i++){
| ^