Problem | minimum |
---|---|
User | carson |
Submission Time | 2025-08-01 19:47:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:2:24: error: request for member ‘begin’ in ‘a’, which is of non-class type ‘int*’
2 | return min_elements(a.begin(),a.end());
| ^~~~~
minimum.cpp:2:34: error: request for member ‘end’ in ‘a’, which is of non-class type ‘int*’
2 | return min_elements(a.begin(),a.end());
| ^~~
minimum.cpp:2:9: error: ‘min_elements’ was not declared in this scope
2 | return min_elements(a.begin(),a.end());
| ^~~~~~~~~~~~
minimum.cpp:2:40: error: expected ‘}’ at end of input
2 | return min_elements(a.begin(),a.end());
| ^
minimum.cpp:1:28: note: to match this ‘{’
1 | int findMin(int n, int a[]){
| ^