Problem | minimum |
---|---|
User | ChickenCoder |
Submission Time | 2023-07-19 12:34:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
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:8:5: error: expected primary-expression before ‘return’
8 | return mini;
| ^~~~~~
minimum.cpp:7:56: error: expected ‘;’ before ‘return’
7 | for (int i = 1; i < N: i++) mini = min(mini, A[i]);
| ^
| ;
8 | return mini;
| ~~~~~~
minimum.cpp:8:5: error: expected primary-expression before ‘