Problem swords
User P55D2K
Submission Time 2023-04-16 17:31:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:40:50: error: use of deleted function ‘Sword::Sword(const Sword&)’
40 | else if (compare(swords[i], swords[j])) swords[i].isuseless = true;
| ^
swords.cpp:14:5: note: declared here
14 | Sword(const Sword&) = delete;
| ^~~~~
swords.cpp:18:20: note: initializing argument 1 of ‘bool compare(Sword, Sword)’
18 | bool compare(Sword a, Sword b) {
| ~~~~~~^
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h:33,
from /usr/include/c++/9/bits/allocator.h:46,
from /usr/include/c++/9/string:41,
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,
from /usr/include/c++/9/istream:38,