Problem | logs |
---|---|
User | G |
Submission Time | 2024-03-09 23:12:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
logs.cpp: In function ‘int main()’:
logs.cpp:14:17: error: cannot convert ‘std::vector<double>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<double*, std::vector<double> >’} to ‘double’ in initialization
14 | double x=a.end();
| ~~~~~^~
| |
| std::vector<double>::iterator {aka __gnu_cxx::__normal_iterator<double*, std::vector<double> >}
logs.cpp:21: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> >’})
21 | cout << a.end();
| ~~~~ ^~ ~~~~~~~
| | |
| | std::vector<double>::iterator {aka __gnu_cxx::__normal_iterator<double*, std::vector<double> >}
| std::ostream {aka std::basic_ostream<char>}<