Borderou de evaluare (job #1453742)

Utilizator paunmatei7FMI Paun Matei paunmatei7 Data 24 iunie 2015 15:48:57
Problema Fibo3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:15: error: ‘long long int y1’ redeclared as different kind of symbol long long x1, y1, x2, y2, Ans; ^ 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:21:56: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%lld %lld %lld %lld", &x1, &y1, &x2, &y2); ^ user.cpp:24:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(a[i] < x1 + y1) ^ user.cpp:24:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] user.cpp:28:35: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ Ans += min(x2, a[i] - y1) - max(x1, a[i] - y2) + 1; ^ user.cpp:13:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("fibo3.in", "r", stdin); ^ user.cpp:14:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("fibo3.out", "w", stdout); ^ user.cpp:15:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &T); ^ user.cpp:21:57: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld %lld %lld %lld", &x1, &y1, &x2, &y2); ^

Ceva nu functioneaza?