Problem minimum
User ChickenCoder
Submission Time 2023-07-19 12:34:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:6:16: error: ‘a’ was not declared in this scope
6 | int mini = a[0];
| ^
minimum.cpp:7:26: error: found ‘:’ in nested-name-specifier, expected ‘::’
7 | for (int i = 1; i < N: i++) mini = min(mini, a[i])
| ^
| ::
minimum.cpp:7:25: error: ‘N’ is not a class, namespace, or enumeration
7 | for (int i = 1; i < N: i++) mini = min(mini, a[i])
| ^
minimum.cpp:9:1: error: expected primary-expression before ‘}’ token
9 | }
| ^
minimum.cpp:8:17: error: expected ‘;’ before ‘}’ token
8 | return mini;
| ^
| ;
9 | }
| ~
minimum.cpp:9:1: error: expected primary-expression before ‘}’ token
9 | }
| ^
minimum.cpp:8:17: error: expected ‘)’