Problem | minimum |
---|---|
User | rhea61 |
Submission Time | 2023-11-09 09:31:45 |
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:16: error: declaration of ‘int A’ shadows a parameter
6 | static int n, A;
| ^
minimum.cpp:9:15: error: invalid types ‘int[int]’ for array subscript
9 | cin >> A[i];
| ^
minimum.cpp:10:24: error: invalid conversion from ‘int’ to ‘int*’ [-fpermissive]
10 | cout << findMin(n, A) << endl;
| ^
| |
| int
minimum.cpp:5:24: note: initializing argument 2 of ‘int findMin(int, int*)’
5 | int findMin(int N, int A[]){
| ~~~~^~~