Problem | general |
---|---|
User | nothing |
Submission Time | 2023-07-30 11:50:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
general.cpp: In function ‘General Find(const std::vector<General>&, const General&)’:
general.cpp:15:63: error: passing ‘const value_type’ {aka ‘const General’} as ‘this’ argument discards qualifiers [-fpermissive]
15 | parent[g.index - 1] = Find(parent, parent[g.index - 1]);
| ^
general.cpp:6:8: note: in call to ‘constexpr General& General::operator=(General&&)’
6 | struct General
| ^~~~~~~