Borderou de evaluare (job #2068435)

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

Raport evaluator

Eroare de compilare: user.cpp:5: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 ‘std::pair<int, std::pair<int, std::pair<int, int> > > intersectie(int, int)’: user.cpp:13:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] b1=max(y1[ind1], y1[ind2]); ^ user.cpp:13:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] b1=max(y1[ind1], y1[ind2]); ^ user.cpp:13: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:51: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:51: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:56:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] nr123.second.first=max(y1[1], max(y1[2], y1[3])); ^ user.cpp:56:43: warning: pointer to a function used in arithmetic [-Wpointer-arith] nr123.second.first=max(y1[1], max(y1[2], y1[3])); ^ user.cpp:56:50: warning: pointer to a function used in arithmetic [-Wpointer-arith] nr123.second.first=max(y1[1], max(y1[2], y1[3])); ^ user.cpp:56:23: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] nr123.second.first=max(y1[1], max(y1[2], y1[3])); ^ user.cpp:62:44: warning: pointer to a function used in arithmetic [-Wpointer-arith] arie+=1LL*(x2[k]-x1[k])*(y2[k]-y1[k]); ^ user.cpp:62:44: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ user.cpp:63:49: warning: pointer to a function used in arithmetic [-Wpointer-arith] perimetru+=1LL*2*(x2[k]-x1[k]+y2[k]-y1[k]); ^ user.cpp:63:49: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ user.cpp:47: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?