ID 5481809
Пользователь Миронов Александр Сергеевич
Время 13.10.2021 22:07 (28 д. 12:40) 22:15>>
Обработка 22:07 ... 22:07 (1,99 сек.)
Файл 5481809.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 1, осень 2021
Задача E: Date
Набор тестов
Ограничения Время: 1с Память: 512Мб
Состояние  [?]
LI Ошибка проверки исходного кода
код | результаты
date.h:3:  Use int16/int64/etc, rather than the C type long  [runtime/int] [4]
date.h:7:  You don't need a ; after a }  [readability/braces] [4]
date.h:8:  Use int16/int64/etc, rather than the C type long  [runtime/int] [4]
date.h:11:  Use int16/int64/etc, rather than the C type long  [runtime/int] [4]
date.h:13:  Use int16/int64/etc, rather than the C type long  [runtime/int] [4]
date.h:19:  Use int16/int64/etc, rather than the C type long  [runtime/int] [4]
date.h:19:  Is this a non-const reference? If so, make const or use a pointer: int& y  [runtime/references] [2]
date.h:19:  Is this a non-const reference? If so, make const or use a pointer: int& m  [runtime/references] [2]
date.h:19:  Is this a non-const reference? If so, make const or use a pointer: int& d  [runtime/references] [2]
date.h:20:  Use int16/int64/etc, rather than the C type long  [runtime/int] [4]
date.h:22:  Use int16/int64/etc, rather than the C type long  [runtime/int] [4]
date.h:23:  Use int16/int64/etc, rather than the C type long  [runtime/int] [4]
date.h:24:  Use int16/int64/etc, rather than the C type long  [runtime/int] [4]
date.h:25:  Use int16/int64/etc, rather than the C type long  [runtime/int] [4]
date.h:26:  Using deprecated casting style.  Use static_cast<int>(...) instead  [readability/casting] [4]
date.h:27:  Using deprecated casting style.  Use static_cast<int>(...) instead  [readability/casting] [4]
date.h:28:  Using deprecated casting style.  Use static_cast<int>(...) instead  [readability/casting] [4]
date.h:32:  public: should be indented +1 space inside class Date  [whitespace/indent] [3]
date.h:33:  Constructors callable with one argument should be marked explicit.  [runtime/explicit] [5]
date.h:63:  Use int16/int64/etc, rather than the C type long  [runtime/int] [4]
date.h:72:  Use int16/int64/etc, rather than the C type long  [runtime/int] [4]
date.h:73:  Use int16/int64/etc, rather than the C type long  [runtime/int] [4]
date.h:77:  private: should be indented +1 space inside class Date  [whitespace/indent] [3]
date.h:46:  Add #include <string> for string  [build/include_what_you_use] [4]
Done processing date.h
Total errors found: 24
[печатать | |
]
(2 135 b)
0.083s 0.012s 10