ID 5481295
Пользователь Соболев Артём Андреевич
Время 20:32<< 13.10.2021 20:35 (28 д. 11:08) 20:45>>
Обработка 20:35 ... 20:35 (8,54 сек.)
Файл 5481295.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:17:27: error: qualified-id in declaration before '(' token
 inline Num Num::operator- (const Num& other) {
                           ^
num.cpp:21:27: error: qualified-id in declaration before '(' token
 inline Num Num::operator* (const Num& other) {
                           ^
num.cpp:25:27: error: qualified-id in declaration before '(' token
 inline Num Num::operator+ (int num) {
                           ^
num.cpp:29:27: error: qualified-id in declaration before '(' token
 inline Num Num::operator- (int num) {
                           ^
num.cpp:33:27: error: qualified-id in declaration before '(' token
 inline Num Num::operator* (int num) {
                           ^
num.cpp:37:29: error: qualified-id in declaration before '(' token
 inline Num& Num::operator+= (const Num& other) {
                             ^
num.cpp:37:30: error: expected primary-expression before 'const'
 inline Num& Num::operator+= (const Num& other) {
                              ^~~~~
num.cpp:41:29: error: qualified-id in declaration before '(' token
 inline Num& Num::operator-= (const Num& other) {
                             ^
num.cpp:41:30: error: expected primary-expression before 'const'
 inline Num& Num::operator-= (const Num& other) {
                              ^~~~~
num.cpp:45:29: error: qualified-id in declaration before '(' token
 inline Num& Num::operator*= (const Num& other) {
                             ^
num.cpp:45:30: error: expected primary-expression before 'const'
 inline Num& Num::operator*= (const Num& other) {
                              ^~~~~
num.cpp:49:29: error: qualified-id in declaration before '(' token
 inline Num& Num::operator+= (int num) {
                             ^
num.cpp:49:30: error: expected primary-expression before 'int'
 inline Num& Num::operator+= (int num) {
                              ^~~
num.cpp:53:29: error: qualified-id in declaration before '(' token
 inline Num& Num::operator-= (int num) {
                             ^
num.cpp:53:30: error: expected primary-expression before 'int'
 inline Num& Num::operator-= (int num) {
                              ^~~
num.cpp:57:29: error: qualified-id in declaration before '(' token
 inline Num& Num::operator*= (int num) {
                             ^
num.cpp:57:30: error: expected primary-expression before 'int'
 inline Num& Num::operator*= (int num) {
                              ^~~
num.cpp:61:29: error: qualified-id in declaration before '(' token
 inline Num& Num::operator*= (int num) {
                             ^
num.cpp:61:30: error: expected primary-expression before 'int'
 inline Num& Num::operator*= (int num) {
                              ^~~
main.cpp:12:49: error: a function-definition is not allowed here before '{' token
 void stress_test(int modulo, int st, int bound) {
                                                 ^
main.cpp:32:12: error: a function-definition is not allowed here before '{' token
 int main() {
            ^
main.cpp:174:1: error: expected '}' at end of input
 }
 ^
[печатать | |
]
(1 145 b)
0.080s 0.011s 10