Borderou de evaluare (job #1881650)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 16 februarie 2017 17:23:50
Problema Segmente Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:43: error: ‘int y1’ redeclared as different kind of symbol int N,mat[MaxN][MaxN],Vert=0,Oriz=0,x1,x2,y1,y2,MIN=INF; ^ 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/cstring: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:31:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘double (*)(double)throw ()’ [-Wformat=] fscanf(IN,"%d%d%d%d",&x1,&y1,&x2,&y2); ^ user.cpp:33:22: error: no match for ‘operator=’ (operand types are ‘Seg’ and ‘<brace-enclosed initializer list>’) V[++Vert]={x1,x2,y1,y2}; ^ user.cpp:33:22: note: candidates are: user.cpp:17:8: note: Seg& Seg::operator=(const Seg&) struct Seg ^ user.cpp:17:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const Seg&’ user.cpp:17:8: note: Seg& Seg::operator=(Seg&&) user.cpp:17:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘Seg&&’ user.cpp:34:23: error: no match for ‘operator=’ (operand types are ‘Seg’ and ‘<brace-enclosed initializer list>’) else O[++Oriz]={x1,x2,y1,y2}; ^ user.cpp:34:23: note: candidates are: user.cpp:17:8: note: Seg& Seg::operator=(const Seg&) struct Seg ^ user.cpp:17:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const Seg&’ user.cpp:17:8: note: Seg& Seg::operator=(Seg&&) user.cpp:17:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘Seg&&’ user.cpp:26:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(IN,"%d",&N); ^ user.cpp:31:46: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(IN,"%d%d%d%d",&x1,&y1,&x2,&y2); ^

Ceva nu functioneaza?