Borderou de evaluare (job #2069567)

Utilizator rebecca0312Andrei Rebecca rebecca0312 Data 18 noiembrie 2017 16:20:32
Problema Reuniune Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:15: error: ‘int y1 [5]’ redeclared as different kind of symbol int x1[5],y1[5],x2[5],y2[5]; ^ 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 ‘STR intersectie(int, int)’: user.cpp:16:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] b1=max(y1[ind1], y1[ind2]); ^ user.cpp:16:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] b1=max(y1[ind1], y1[ind2]); ^ user.cpp:16:7: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] b1=max(y1[ind1], y1[ind2]); ^ user.cpp: In function ‘int main()’: user.cpp:54:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] scanf("%d%d%d%d", &x1[k], &y1[k], &x2[k], &y2[k]); ^ user.cpp:54:57: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d%d%d%d", &x1[k], &y1[k], &x2[k], &y2[k]); ^ user.cpp:59:22: warning: pointer to a function used in arithmetic [-Wpointer-arith] nr123.c1=max(y1[1], max(y1[2], y1[3])); ^ user.cpp:59:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] nr123.c1=max(y1[1], max(y1[2], y1[3])); ^ user.cpp:59:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] nr123.c1=max(y1[1], max(y1[2], y1[3])); ^ user.cpp:59:13: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] nr123.c1=max(y1[1], max(y1[2], y1[3])); ^ user.cpp:65:44: warning: pointer to a function used in arithmetic [-Wpointer-arith] arie+=1LL*(x2[k]-x1[k])*(y2[k]-y1[k]); ^ user.cpp:65:44: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ user.cpp:66:49: warning: pointer to a function used in arithmetic [-Wpointer-arith] perimetru+=1LL*2*(x2[k]-x1[k]+y2[k]-y1[k]); ^ user.cpp:66:49: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ user.cpp:50:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reuniune.in","r",stdin);

Ceva nu functioneaza?