Problem | minimum |
---|---|
User | Water |
Submission Time | 2023-06-26 16:14:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp:3:27: error: use of parameter outside function body before ‘]’ token
3 | int findMin(int N, int A[N]) {
| ^
minimum.cpp: In function ‘int findMin(...)’:
minimum.cpp:4:11: error: array must be initialized with a brace-enclosed initializer
4 | int A[0]=min;
| ^~~
minimum.cpp:5:17: error: ‘N’ was not declared in this scope
5 | for (int i=1;i<N;i++) {
| ^
minimum.cpp:6:11: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’
6 | if (A[i]<min) {
| ~~~~^~~~
minimum.cpp:7:9: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘int’
7 | A[i]=min;
| ^~~
minimum.cpp:10:9: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘int’
10 | return min;
| ^~~
minimum.cpp: In function