Problem | gymbadges |
---|---|
User | loverin |
Submission Time | 2023-09-12 10:59:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gymbadges.cpp: In function ‘int simulate(const std::vector<gymStats>&)’:
gymbadges.cpp:25:15: error: invalid use of member function ‘int gymStats::sum()’ (did you forget the ‘()’ ?)
25 | if (gym[i].sum == gym[i + 1].sum) {
| ()
gymbadges.cpp:25:33: error: invalid use of member function ‘int gymStats::sum()’ (did you forget the ‘()’ ?)
25 | if (gym[i].sum == gym[i + 1].sum) {
| ()
gymbadges.cpp:27:34: error: expected ‘)’ before ‘;’ token
27 | std::swap(gym[i], gym[i + 1];
| ~ ^
| )