Problem logs
User G
Submission Time 2024-03-09 18:01:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

logs.cpp: In function ‘int main()’:
logs.cpp:14:17: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator/’
14 | double x=a.end/2;
| ~~~~~^~
| | |
| | int
| <unresolved overloaded function type>
logs.cpp:20:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<double>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<double*, std::vector<double> >’})
20 | cout << a.end();
| ~~~~ ^~ ~~~~~~~
| | |
| | std::vector<double>::iterator {aka __gnu_cxx::__normal_iterator<double*, std::vector<double> >}
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9