Borderou de evaluare (job #1885165)

Utilizator vlasiuflaviusVlasiu Flavius vlasiuflavius Data 19 februarie 2017 18:02:46
Problema Colaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:48: error: ‘int y0’ redeclared as different kind of symbol int v1[ 210 ],v2[ 210 ],x01,y01,x02,y02,x0 = 1,y0 = 1,n,linmax,colmax,i,absc[10000],ordo[10000],j,crt,lin,col; ^ 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/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream: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 ‘void citire()’: user.cpp:43:49: error: assignment of function ‘double y0(double)’ if( v[ i ].b == 0 || v[ i ].d == 0 ) y0 = 0; ^ user.cpp:43:49: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp: In function ‘void marcare()’: user.cpp:68:37: warning: pointer to a function used in arithmetic [-Wpointer-arith] marc[ i + x0 ][ j + y0 ] = -1; ^ user.cpp:68:40: error: invalid types ‘int [210][double (*)(double)throw ()]’ for array subscript marc[ i + x0 ][ j + y0 ] = -1; ^ user.cpp: In function ‘void executare()’: user.cpp:74:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] col = 2 * n - 1 + y0; ^ user.cpp:74:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:74:21: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] col = 2 * n - 1 + y0; ^

Ceva nu functioneaza?