Borderou de evaluare (job #1641048)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 8 martie 2016 20:38:44
Problema Colaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:13:34: error: ‘int y1 [110]’ redeclared as different kind of symbol int x1[Nmax] , x2[Nmax] , y1[Nmax] , y2[Nmax]; ^ In file included from /usr/include/features.h:357:0, from /usr/include/assert.h:37, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, 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:37: warning: pointer to a function used in arithmetic [-Wpointer-arith] scanf("%d %d", &x1[i], &y1[i]); ^ user.cpp:32:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d %d", &x1[i], &y1[i]); ^ user.cpp:37:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (y1[i] != 0 && y1[i] != Y) y[++my] = y1[i]; ^ user.cpp:37:31: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (y1[i] != 0 && y1[i] != Y) y[++my] = y1[i]; ^ user.cpp:37:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (y1[i] != 0 && y1[i] != Y) y[++my] = y1[i]; ^ user.cpp:37:53: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (y1[i] != 0 && y1[i] != Y) y[++my] = y1[i]; ^ user.cpp:37:53: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] user.cpp:50:64: warning: pointer to a function used in arithmetic [-Wpointer-arith] if ((x1[p] <= x[i] && x[i+1] <= x2[p]) && (y1[p] <= y[j] && y[j+1] <= y2[p])) ^ user.cpp:50:72: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if ((x1[p] <= x[i] && x[i+1] <= x2[p]) && (y1[p] <= y[j] && y[j+1] <= y2[p])) ^ user.cpp:26:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("colaj.in","r",stdin); ^ user.cpp:27:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("colaj.out","w",stdout); ^ user.cpp:29:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); scanf("%d %d", &X, &Y); ^ user.cpp:29:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); scanf("%d %d", &X, &Y); ^ user.cpp:32:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?