ID 5473452
Пользователь Соболев Артём Андреевич
Время 21:56<< 11.10.2021 21:59 (26 д. 12:33) 23:09>>
Обработка 21:59 ... 21:59 (3,23 сек.)
Файл 5473452.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: In member function 'Num& Num::operator=(const Num&)':
num.cpp:7:11: error: statement has no effect [-Werror=unused-value]
     this->value;
     ~~~~~~^~~~~
num.cpp: In member function 'Num Num::operator+(const Num&)':
num.cpp:12:11: error: statement has no effect [-Werror=unused-value]
     this->value;
     ~~~~~~^~~~~
num.cpp: In member function 'Num Num::operator-(const Num&)':
num.cpp:17:11: error: statement has no effect [-Werror=unused-value]
     this->value;
     ~~~~~~^~~~~
num.cpp: In member function 'Num Num::operator*(const Num&)':
num.cpp:22:11: error: statement has no effect [-Werror=unused-value]
     this->value;
     ~~~~~~^~~~~
num.cpp: In member function 'Num Num::operator+(int)':
num.cpp:27:11: error: statement has no effect [-Werror=unused-value]
     this->value;
     ~~~~~~^~~~~
num.cpp: In member function 'Num Num::operator-(int)':
num.cpp:32:11: error: statement has no effect [-Werror=unused-value]
     this->value;
     ~~~~~~^~~~~
num.cpp: In member function 'Num Num::operator*(int)':
num.cpp:37:11: error: statement has no effect [-Werror=unused-value]
     this->value;
     ~~~~~~^~~~~
num.cpp: In member function 'Num& Num::operator-=(const Num&)':
num.cpp:47:1: error: no return statement in function returning non-void [-Werror=return-type]
 }
 ^
cc1plus: all warnings being treated as errors
[печатать | |
]
(1 150 b)
0.113s 0.027s 10