Borderou de evaluare (job #1681004)

Utilizator radudurlesteanuDurlesteanu Radu Stefan radudurlesteanu Data 9 aprilie 2016 11:04:06
Problema NN Status done
Runda Grigore Moisil 2016 Clasa a 10-a Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:12: error: ‘long int y1’ redeclared as different kind of symbol long x1,x2,y1,y2,n,m,i,j,poz1,poz2; ^ 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: In function ‘int main()’: user.cpp:32:23: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%lld%lld",&n,&m); ^ user.cpp:32:23: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:35:36: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%lld%lld",&a[i].x,&a[i].y); ^ user.cpp:35:36: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:44:44: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%lld%lld%lld%lld",&x1,&y1,&x2,&y2); ^ user.cpp:44:44: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] user.cpp:44:44: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:44:44: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 5 has type ‘long int*’ [-Wformat=] user.cpp:45:39: error: invalid cast from type ‘double (*)(double)throw ()’ to type ‘long double’ xd=(long double)x1;yd=(long double)y1; ^ user.cpp:52:11: error: invalid operands of types ‘double(double)throw ()’ and ‘long int’ to binary ‘operator*’ if (y1*x2>y2*x1) { ^ user.cpp:60:45: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] else printf("%d\n",poz2-poz1-1); ^ user.cpp:30:27: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nn.in","r",stdin); ^ user.cpp:31:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nn.out","w",stdout); ^ user.cpp:32:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld",&n,&m); ^ user.cpp:35:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld",&a[i].x,&a[i].y); ^ user.cpp:44:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld%lld%lld",&x1,&y1,&x2,&y2); ^

Ceva nu functioneaza?