Borderou de evaluare (job #1234005)

Utilizator heracleRadu Muntean heracle Data 26 septembrie 2014 16:11:51
Problema Mission Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:24:8: error: ‘int y0’ redeclared as different kind of symbol int x0,y0,s[2]; ^ 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:242:1: error: previous declaration of ‘double y0(double)’ __MATHCALL (y0,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:58:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘double (*)(double)throw ()’ [-Wformat=] fscanf(in,"%d %d",&x0,&y0); ^ user.cpp:59:21: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] p0=Point(x0,y0,0); ^ user.cpp:27:7: error: initializing argument 2 of ‘point Point(const int&, const int&, const int&)’ [-fpermissive] point Point(const int &x, const int &y,const int &z) ^ user.cpp:64:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(x<x0 || (x==x0 && y<y0)) ^ user.cpp:54:9: warning: unused variable ‘min’ [-Wunused-variable] int min=1; ^ user.cpp:52: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:58:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d %d",&x0,&y0); ^ user.cpp:62:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d %d",&x,&y); ^

Ceva nu functioneaza?