ID 5742221
Пользователь Корягин Роман Сергеевич
Время 19:39<< 12.11.2021 19:40 (23 д. 17:40) 19:40>>
Обработка 19:40 ... 19:40 (2.81 сек.)
Файл 5742221.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 2, осень 2021
Задача E: GameDatabase
Набор тестов
Ограничения Время: 1с Память: 4000Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:18:0:
game_database.h: In member function 'std::vector<GameObject> GameDatabase::DataByName(std::__cxx11::string)':
game_database.h:45:34: error: 'comp' was not declared in this scope
 sort(names.begin(), names.end(), comp);
                                  ^~~~
game_database.h: In member function 'std::vector<GameObject> GameDatabase::DataByPosition(size_t, size_t)':
game_database.h:60:34: error: 'comp' was not declared in this scope
 sort(poses.begin(), poses.end(), comp);
                                  ^~~~
game_database.h: In member function 'std::vector<GameObject> GameDatabase::Data()':
game_database.h:74:30: error: 'comp' was not declared in this scope
 sort(res.begin(), res.end(), comp);
                              ^~~~
0.233s 0.009s 9