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

Compile Error

logs.cpp: In function ‘int main()’:
logs.cpp:13:14: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator/’
13 | int x=a.end/2;
| ~~~~~^~
| | |
| | int
| <unresolved overloaded function type>
logs.cpp:19:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’})
19 | cout << a.end();
| ~~~~ ^~ ~~~~~~~
| | |
| | std::vector<int>::iterator {aka __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,