Problem | exhibition2 |
---|---|
User | plka |
Submission Time | 2025-02-19 14:17:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exhibition2.cpp: In function ‘int main()’:
exhibition2.cpp:18:25: error: cannot convert ‘std::vector<Artwork>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<Artwork*, std::vector<Artwork> >’} to ‘void*’
18 | qsort(artworks.begin(), artworks.end(), [](const Artwork &a, const Artwork &b) {
| ~~~~~~~~~~~~~~^~
| |
| std::vector<Artwork>::iterator {aka __gnu_cxx::__normal_iterator<Artwork*, std::vector<Artwork> >}
In file included from /usr/include/c++/9/cstdlib:75,
from /usr/include/c++/9/ext/string_conversions.h:41,
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,
from /usr/include/c++/9/ios:42,