Problem | minimum |
---|---|
User | asruby |
Submission Time | 2024-02-28 18:20:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp:4:25: error: expected ‘,’ or ‘...’ before ‘*’ token
4 | int findMin(int N, int A*){
| ^
minimum.cpp: In function ‘long long int findMin(long long int, long long int)’:
minimum.cpp:5:27: error: invalid type argument of unary ‘*’ (have ‘long long int’)
5 | return *min_element(A,A+N);
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from minimum.cpp:1:
/usr/include/c++/9/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Iter_less_iter::operator()(_Iterator1, _Iterator2) const [with _Iterator1 = long long int; _Iterator2 = long long int]’:
/usr/include/c++/9/bits/stl_algo.h:5634:12: required from ‘constexpr _ForwardIte