Problem | minimum |
---|---|
User | John |
Submission Time | 2025-01-31 14:56:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp:2:27: error: use of parameter outside function body before ‘]’ token
2 | int findMin(int N, int A[N]) {
| ^
minimum.cpp: In function ‘int findMin(...)’:
minimum.cpp:3:12: error: ‘A’ was not declared in this scope
3 | int min = A[0];
| ^
minimum.cpp:4:22: error: ‘N’ was not declared in this scope
4 | for (int i = 1; i < N; i++) {
| ^