ID 5457911
Пользователь Костюков Максим Сергеевич
Время 13:22<< 08.10.2021 13:22 (23 д. 03:56) 13:23>>
Обработка 13:22 ... 13:23 (4.16 сек.)
Файл 5457911.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 1, осень 2021
Задача B: Finite Field (Hard version)
Набор тестов
Ограничения Время: 5с Память: 512Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:8:0:
num.cpp:12:5: error: prototype for 'Num Num::operator*(int) const' does not match any in class 'Num'
 Num Num::operator*(int num) const {
     ^~~
In file included from main.cpp:7:0:
num.h:14:9: error: candidates are: Num Num::operator*(int)
     Num operator*(int num);
         ^~~~~~~~
num.h:11:9: error:                 Num Num::operator*(const Num&)
     Num operator*(const Num& other);
         ^~~~~~~~
In file included from main.cpp:8:0:
num.cpp:23:5: error: prototype for 'Num Num::operator+(int) const' does not match any in class 'Num'
 Num Num::operator+(int num) const {
     ^~~
In file included from main.cpp:7:0:
num.h:12:9: error: candidates are: Num Num::operator+(int)
     Num operator+(int num);
         ^~~~~~~~
num.h:9:9: error:                 Num Num::operator+(const Num&)
     Num operator+(const Num& other);
         ^~~~~~~~
In file included from main.cpp:8:0:
num.cpp:34:5: error: prototype for 'Num Num::operator-(int) const' does not match any in class 'Num'
 Num Num::operator-(int num) const {
     ^~~
In file included from main.cpp:7:0:
num.h:13:9: error: candidates are: Num Num::operator-(int)
     Num operator-(int num);
         ^~~~~~~~
num.h:10:9: error:                 Num Num::operator-(const Num&)
     Num operator-(const Num& other);
         ^~~~~~~~
[печатать | |
]
(1 673 b)
0.107s 0.012s 10