Problem | sumint |
---|---|
User | privatepolychoron |
Submission Time | 2024-01-26 10:50:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:15:24: error: ‘class std::vector<int>’ has no member named ‘start’
15 | cout >> accumulate (v.start(), v.end(v), 0);
| ^~~~~
sumint.cpp:15:40: error: no matching function for call to ‘std::vector<int>::end(std::vector<int>&)’
15 | cout >> accumulate (v.start(), v.end(v), 0);
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from sumint.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:826:7: note: candidate: ‘std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::end() [with _Tp = int; _Alloc = std::a