Borderou de evaluare (job #1552453)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 18 decembrie 2015 00:23:33
Problema Patrate 3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:5: error: ‘int y1’ redeclared as different kind of symbol int y1, y2, y3, y4; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/cstdio:41, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:53:25: error: assignment of function ‘double y1(double)’ x1 = P[i].x; y1 = P[i].y; ^ user.cpp:53:25: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:55:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (y1 < y2) { ^ user.cpp:56:45: warning: pointer to a function used in arithmetic [-Wpointer-arith] x3 = (x1 + x2) / 2 + abs ((y1 + y2) / 2 - y1); ^ user.cpp:56:51: error: invalid operands of types ‘double (*)(double)throw ()’ and ‘int’ to binary ‘operator/’ x3 = (x1 + x2) / 2 + abs ((y1 + y2) / 2 - y1); ^ user.cpp:57:24: warning: pointer to a function used in arithmetic [-Wpointer-arith] y3 = (y1 + y2) / 2 - abs ((x1 + x2) / 2 - x1); ^ user.cpp:57:30: error: invalid operands of types ‘double (*)(double)throw ()’ and ‘int’ to binary ‘operator/’ y3 = (y1 + y2) / 2 - abs ((x1 + x2) / 2 - x1); ^ user.cpp:58:45: warning: pointer to a function used in arithmetic [-Wpointer-arith] x4 = (x1 + x2) / 2 - abs ((y1 + y2) / 2 - y1); ^ user.cpp:58:51: error: invalid operands of types ‘double (*)(double)throw ()’ and ‘int’ to binary ‘operator/’ x4 = (x1 + x2) / 2 - abs ((y1 + y2) / 2 - y1); ^ user.cpp:59:24: warning: pointer to a function used in arithmetic [-Wpointer-arith] y4 = (y1 + y2) / 2 + abs ((x1 + x2) / 2 - x1); ^ user.cpp:59:30: error: invalid operands of types ‘double (*)(double)throw ()’ and ‘int’ to binary ‘operator/’ y4 = (y1 + y2) / 2 + abs ((x1 + x2) / 2 - x1); ^ user.cpp:61:45: warning: pointer to a function used in arithmetic [-Wpointer-arith] x3 = (x1 + x2) / 2 - abs ((y1 + y2) / 2 - y1); ^ user.cpp:61:51: error: invalid operands of types ‘double (*)(double)throw ()’ and ‘int’ to binary ‘operator/’ x3 = (x1 + x2) / 2 - abs ((y1 + y2) / 2 - y1); ^ user.cpp:62:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]

Ceva nu functioneaza?