Problem | gymbadges |
---|---|
User | loverin |
Submission Time | 2023-09-12 09:43:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gymbadges.cpp: In function ‘void make_ordered(const std::vector<int>&, const std::vector<int>&)’:
gymbadges.cpp:45:15: error: ‘__gnu_cxx::__alloc_traits<std::allocator<gymStats>, gymStats>::value_type’ {aka ‘struct gymStats’} has no member named ‘sum’
45 | if (gyms[i].sum() == gyms[i + 1].sum()) {
| ^~~
gymbadges.cpp:45:36: error: ‘__gnu_cxx::__alloc_traits<std::allocator<gymStats>, gymStats>::value_type’ {aka ‘struct gymStats’} has no member named ‘sum’
45 | if (gyms[i].sum() == gyms[i + 1].sum()) {
| ^~~
gymbadges.cpp:56:6: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
56 | std:cout << simulate(gyms);
| ^~~~
| std::cout
In file included from gymbadges.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard outpu