Borderou de evaluare (job #1840410)

Utilizator maria_sinteaMaria Sintea maria_sintea Data 4 ianuarie 2017 13:45:44
Problema Colaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:23: error: ‘int y1’ redeclared as different kind of symbol int m, n, nr, x1, x2, y1, y2; ^ 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/iostream:38, 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:42:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d %d %d %d\n", &x1, &y1, &x2, &y2); ^ user.cpp:43:34: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] dreptunghi(x1, x2, y1, y2); ^ user.cpp:13:6: error: initializing argument 3 of ‘void dreptunghi(int, int, int, int)’ [-fpermissive] void dreptunghi(int x1, int x2, int y1, int y2) ^ user.cpp:36:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("colaj.in", "r", stdin); ^ user.cpp:37:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("colaj.out", "w", stdout); ^ user.cpp:39:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n%d%d\n", &nr, &n, &m); ^ user.cpp:42:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d\n", &x1, &y1, &x2, &y2); ^

Ceva nu functioneaza?