Borderou de evaluare (job #1349422)

Utilizator fluture.godlikeGafton Mihnea Alexandru fluture.godlike Data 20 februarie 2015 10:53:10
Problema Trapez Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:15:27: error: ‘int y1’ redeclared as different kind of symbol int n, temp, pos = 0, x1, y1, count, sum; ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, 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:46:8: error: assignment of function ‘double y1(double)’ y1 = v[0].y; ^ user.cpp:46:8: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:50:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(v[i].x == x1 && v[i].y == y1) ^ user.cpp:59:20: error: assignment of function ‘double y1(double)’ y1 = v[i].y; ^ user.cpp:59:20: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:27:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:30:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &arr[i].x, &arr[i].y); ^

Ceva nu functioneaza?