Problem | treecutting |
---|---|
User | samvar0907 |
Submission Time | 2024-01-24 01:02:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
treecutting.cpp: In function ‘int main()’:
treecutting.cpp:53:49: error: cannot convert ‘std::vector<int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’} to ‘const char*’
53 | graph[i].erase(remove(graph[i].begin(), graph[i].end(), j), graph[i].end());
| ~~~~~~~~~~~~~~^~
| |
| std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}
In file included from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,