Borderou de evaluare (job #1898318)

Utilizator akaprosAna Kapros akapros Data 1 martie 2017 22:25:03
Problema NN Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void read()’: user.cpp:8:16: error: lvalue required as unary ‘&’ operand #define x real() ^ user.cpp:47:34: note: in expansion of macro ‘x’ scanf("%lf %lf", &v[i].a.x, &v[i].a.y); ^ user.cpp:9:16: error: lvalue required as unary ‘&’ operand #define y imag() ^ user.cpp:47:45: note: in expansion of macro ‘y’ scanf("%lf %lf", &v[i].a.x, &v[i].a.y); ^ user.cpp:8:16: error: lvalue required as unary ‘&’ operand #define x real() ^ user.cpp:54:37: note: in expansion of macro ‘x’ scanf("%lf %lf %lf %lf", &a.x, &a.y, &b.x, &b.y); ^ user.cpp:9:16: error: lvalue required as unary ‘&’ operand #define y imag() ^ user.cpp:54:43: note: in expansion of macro ‘y’ scanf("%lf %lf %lf %lf", &a.x, &a.y, &b.x, &b.y); ^ user.cpp:8:16: error: lvalue required as unary ‘&’ operand #define x real() ^ user.cpp:54:49: note: in expansion of macro ‘x’ scanf("%lf %lf %lf %lf", &a.x, &a.y, &b.x, &b.y); ^ user.cpp:9:16: error: lvalue required as unary ‘&’ operand #define y imag() ^ user.cpp:54:55: note: in expansion of macro ‘y’ scanf("%lf %lf %lf %lf", &a.x, &a.y, &b.x, &b.y); ^ user.cpp:43:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^

Ceva nu functioneaza?