ID 5940265
Пользователь Доманский Игорь Сергеевич
Время 22:34<< 27.12.2021 22:36 (23 д. 22:36) 22:38>>
Обработка 22:36 ... 22:36 (2,39 сек.)
Файл 5940265.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 3, осень 2021
Задача D: Graph visitor
Набор тестов
Ограничения Время: 1с Память: 4000Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:55:0:
visitor.h: In instantiation of 'std::map<int, long unsigned int, std::less<int>, std::allocator<std::pair<const int, long unsigned int> > > BfsVisitor<int>::distance':
visitor.h:9:19:   required from 'BfsVisitor<Vertex>::BfsVisitor() [with Vertex = int]'
main.cpp:63:21:   required from here
visitor.h:40:26: error: conversion from 'std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >' to non-scalar type 'std::map<int, long unsigned int, std::less<int>, std::allocator<std::pair<const int, long unsigned int> > >' requested
 std::map<Vertex, size_t> BfsVisitor<Vertex>::distance
                          ^~~~~~~~~~~~~~~~~~
0.093s 0.017s 9