Problem area_noi
User Isaiah
Submission Time 2024-01-23 14:43:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area_noi.cpp: In function ‘int main()’:
area_noi.cpp:7:6: error: ‘i’ was not declared in this scope
7 | for(i = 0; i < x; i++){
| ^
area_noi.cpp:14:11: error: request for member ‘push_back’ in ‘numbers’, which is of non-class type ‘int [x]’
14 | numbers.push_back(d);
| ^~~~~~~~~
area_noi.cpp:16:19: error: no matching function for call to ‘max(int [x])’
16 | cout<<max(numbers);
| ^
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from area_noi.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)’
222 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bi