Problem | area_noi |
---|---|
User | Stucknight |
Submission Time | 2024-07-16 21:08:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area_noi.cpp: In function ‘int main()’:
area_noi.cpp:9:23: error: expected ‘;’ before ‘}’ token
9 | areas.push_back(a*b)
| ^
| ;
10 | }
| ~
area_noi.cpp:12:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’)
12 | cout << max_element(areas.begin(), areas.end());
| ~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __gnu_cxx::__normal_iterator<int*, std::vector<int> >
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:3