Problem gymbadges
User loverin
Submission Time 2023-09-12 11:45:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gymbadges.cpp:27:40: error: stray ‘#’ in program
27 | bool same(const std::vector<gymStats>& #include <iostream>
| ^
gymbadges.cpp:27:49: error: expected ‘,’ or ‘...’ before ‘<’ token
27 | bool same(const std::vector<gymStats>& #include <iostream>
| ^
gymbadges.cpp:40:2: error: expected ‘)’ before ‘;’ token
40 | };
| ^
| )
gymbadges.cpp:27:10: note: to match this ‘(’
27 | bool same(const std::vector<gymStats>& #include <iostream>
| ^
gymbadges.cpp:42:6: error: redefinition of ‘bool gym_comp(const gymStats&, const gymStats&)’
42 | bool gym_comp(const gymStats& a, const gymStats& b) {
| ^~~~~~~~
gymbadges.cpp:16:6: note: ‘bool gym_comp(const gymStats&, const gymStats&)’ previously defined here
16 | bool gym_comp(const gymStats& a, const gymStats