Borderou de evaluare (job #1367226)

Utilizator eu3neuomManghiuc Teodor-Florin eu3neuom Data 1 martie 2015 18:30:44
Problema Colaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:12: error: ‘int y0’ redeclared as different kind of symbol int x0 = 1,y0 = 1; ^ 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:242:1: error: previous declaration of ‘double y0(double)’ __MATHCALL (y0,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:80:19: error: ISO C++ forbids decrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] y0--; ^ user.cpp:80:19: error: lvalue required as decrement operand user.cpp:95:25: warning: pointer to a function used in arithmetic [-Wpointer-arith] sol[i + y0][j + x0] = true; ^ user.cpp:95:27: error: invalid types ‘bool [205][205][double (*)(double)throw ()]’ for array subscript sol[i + y0][j + x0] = true; ^ user.cpp:99:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] int nl = y0 + 2 * n - 1; ^ user.cpp:99:27: warning: pointer to a function used in arithmetic [-Wpointer-arith] int nl = y0 + 2 * n - 1; ^ user.cpp:99:25: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] int nl = y0 + 2 * n - 1; ^

Ceva nu functioneaza?