Problem | minimum |
---|---|
User | Water |
Submission Time | 2023-06-26 15:56:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:4:8: error: declaration of ‘int A []’ shadows a parameter
4 | int A[];
| ^
minimum.cpp:4:6: error: storage size of ‘A’ isn’t known
4 | int A[];
| ^
minimum.cpp:11:9: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘int’
11 | return min;
| ^~~
minimum.cpp:12:12: error: a function-definition is not allowed here before ‘{’ token
12 | int main() {
| ^
minimum.cpp:14:1: error: expected ‘}’ at end of input
14 | }
| ^
minimum.cpp:3:29: note: to match this ‘{’
3 | int findMin(int N, int A[]) {
| ^