Problem | minimum |
---|---|
User | Krishna |
Submission Time | 2025-01-19 10:56:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:3:17: error: declaration does not declare anything [-fpermissive]
3 | #define ll long long;
| ^~~~
minimum.cpp:6:2: note: in expansion of macro ‘ll’
6 | ll min = arr[0];
| ^~
minimum.cpp:6:11: error: ‘arr’ was not declared in this scope
6 | ll min = arr[0];
| ^~~
minimum.cpp:8:12: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’
8 | if (A[i] < min) {
| ~~~~~^~~~~
minimum.cpp:9:13: error: overloaded function with no contextual type information
9 | min = A[i];
| ^
minimum.cpp:12:9: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘int’
12 | return min;
| ^~~