Problem exhibition2
User plka
Submission Time 2025-02-19 13:38:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exhibition2.cpp: In function ‘int main()’:
exhibition2.cpp:20:25: error: cannot convert ‘std::vector<Artwork>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<Artwork*, std::vector<Artwork> >’} to ‘void*’
20 | 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,