Borderou de evaluare (job #1863474)

Utilizator giotoPopescu Ioan gioto Data 30 ianuarie 2017 22:23:04
Problema 2Numere Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:30: error: ‘int y1’ redeclared as different kind of symbol int n, Min = 2000000000, x1, y1, x, y, ok, f2[13], f[13], pos[13], b[13], a[13]; ^ 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 ‘void back2(int)’: user.cpp:14:24: error: assignment of function ‘double y1(double)’ x1 = x; y1 = y; ^ user.cpp:14:24: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp: In function ‘int main()’: user.cpp:54:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] printf("%d\n%d\n%d", x1, y1, Min); ^ user.cpp:45:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("2numere.in", "r", stdin); ^ user.cpp:46:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("2numere.out", "w", stdout); ^ user.cpp:47:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:48:52: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i = 1; i <= n ; ++i) scanf("%d", &a[i]); ^ user.cpp:49:52: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i = 1; i <= n ; ++i) scanf("%d", &b[i]); ^

Ceva nu functioneaza?