Borderou de evaluare (job #1423008)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 20 aprilie 2015 20:25:19
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:15:17: error: ‘long long int pow [70]’ redeclared as different kind of symbol long long pow[70]; ^ 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:155:1: error: previous declaration of ‘double pow(double, double)’ __MATHCALL (pow,, (_Mdouble_ __x, _Mdouble_ __y)); ^ user.cpp: In function ‘void Insert(int, int, int)’: user.cpp:24:27: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript aib[i][j] ^= pow[bit]; ^ user.cpp: In function ‘int main()’: user.cpp:43:15: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript for (pow[0] = 1 , i = 1; i <= 62; ++i) ^ user.cpp:44:14: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript pow[i] = pow[i-1] * 2; ^ user.cpp:44:25: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript pow[i] = pow[i-1] * 2; ^ 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);

Ceva nu functioneaza?