Problem | minimum |
---|---|
User | Krishna |
Submission Time | 2025-01-19 10:57:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp:4:27: error: use of parameter outside function body before ‘]’ token
4 | int findMin(int N, int A[N]) {
| ^
minimum.cpp: In function ‘int findMin(...)’:
minimum.cpp:5:18: error: ‘arr’ was not declared in this scope
5 | long long min = arr[0];
| ^~~
minimum.cpp:6:22: error: ‘N’ was not declared in this scope
6 | for (int i = 1; i < N; i++) {
| ^
minimum.cpp:7:7: error: ‘A’ was not declared in this scope
7 | if (A[i] < min) {
| ^