Borderou de evaluare (job #1423427)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 21 aprilie 2015 20:06:51
Problema Parcele2 Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:50: error: ‘int y1’ redeclared as different kind of symbol int T , n , m , k , i , p , Max , Min , q , x1 , y1 , x2 , 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/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:70:54: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d %d %d %d", &x1 , &y1 , &x2, &y2); ^ user.cpp:72:68: warning: pointer to a function used in arithmetic [-Wpointer-arith] long long val = take_val(x2 , y2) ^ take_val(x2 , y1 - 1) ^ take_val(x1 - 1 , y2) ^ take_val(x1 - 1 , y1 - 1); ^ user.cpp:72:66: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] long long val = take_val(x2 , y2) ^ take_val(x2 , y1 - 1) ^ take_val(x1 - 1 , y2) ^ take_val(x1 - 1 , y1 - 1); ^ user.cpp:27:11: error: initializing argument 2 of ‘long long int take_val(int, int)’ [-fpermissive] long long take_val(int x, int y) ^ user.cpp:72:120: warning: pointer to a function used in arithmetic [-Wpointer-arith] long long val = take_val(x2 , y2) ^ take_val(x2 , y1 - 1) ^ take_val(x1 - 1 , y2) ^ take_val(x1 - 1 , y1 - 1); ^ user.cpp:72:118: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] long long val = take_val(x2 , y2) ^ take_val(x2 , y1 - 1) ^ take_val(x1 - 1 , y2) ^ take_val(x1 - 1 , y1 - 1); ^ user.cpp:27:11: error: initializing argument 2 of ‘long long int take_val(int, int)’ [-fpermissive] long long take_val(int x, int y) ^ user.cpp:40:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("parcele2.in","r",stdin); ^ user.cpp:41:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("parcele2.out","w",stdout); ^ user.cpp:46:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (scanf("%d", &T); T; --T) ^ user.cpp:48:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &n, &m, &k); ^ user.cpp:54:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &p); Min = 3000; Max = 2015; ^ user.cpp:57:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &a[i], &x[i], &y[i]);

Ceva nu functioneaza?