ID 5405490
Пользователь Кустов Юрий Сергеевич
Время 17:52<< 24.09.2021 17:54 (9 д. 08:28) 17:57>>
Обработка 17:54 ... 17:54 (2,82 сек.)
Файл 5405490.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:55:5: error: character constant too long for its type [-Werror]
     '__rintf64'
     ^~~~~~~~~~~
num.cpp:68:5: error: character constant too long for its type [-Werror]
     '__rintf64'
     ^~~~~~~~~~~
num.cpp: In member function 'Num& Num::operator+=(int)':
num.cpp:56:5: error: expected ';' before 'value'
     value = (__int64(value) + num) % modulo;
     ^~~~~
num.cpp:56:44: error: statement has no effect [-Werror=unused-value]
     value = (__int64(value) + num) % modulo;
                                            ^
num.cpp:58:5: error: expected ';' before 'return'
     return *this;
     ^~~~~~
num.cpp:58:17: error: statement is a reference, not call, to function '__rintf64' [-Werror=address]
     return *this;
                 ^
num.cpp:58:17: error: statement has no effect [-Werror=unused-value]
num.cpp:59:1: error: no return statement in function returning non-void [-Werror=return-type]
 }
 ^
num.cpp: In member function 'Num& Num::operator*=(int)':
num.cpp:69:5: error: expected ';' before 'value'
     value = (__int64(value) * num) % modulo;
     ^~~~~
num.cpp:69:44: error: statement has no effect [-Werror=unused-value]
     value = (__int64(value) * num) % modulo;
                                            ^
num.cpp:71:5: error: expected ';' before 'return'
     return *this;
     ^~~~~~
num.cpp:71:17: error: statement is a reference, not call, to function '__rintf64' [-Werror=address]
     return *this;
                 ^
num.cpp:71:17: error: statement has no effect [-Werror=unused-value]
num.cpp:72:1: error: no return statement in function returning non-void [-Werror=return-type]
 }
 ^
cc1plus: all warnings being treated as errors
0.091s 0.019s 9