Borderou de evaluare (job #1410071)
Utilizator | Data | 30 martie 2015 20:41:48 | |
---|---|---|---|
Problema | Plaja | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:38: error: ‘int y1’ redeclared as different kind of symbol
int n,m1,m,u,i,j,l,s,k,t,ls,ld,x1,x2,y1,y2,ok,ok1,w,a[2005][2005];
^
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:28:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d %d %d %d",&x1,&y1,&x2,&y2);
^
user.cpp:31:60: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if( x1<=umb[j].x && x2>=umb[j].x && y1<=umb[j].y && y2>=umb[j].y )
^
user.cpp:39:21: error: invalid types ‘int [2005][double(double)throw ()]’ for array subscript
a[x1][y1]++;
^
user.cpp:41:23: error: invalid types ‘int [2005][double(double)throw ()]’ for array subscript
a[x2+1][y1]--;
^
user.cpp:57:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d %d %d %d",&x1,&y1,&x2,&y2);
^
user.cpp:58:42: warning: pointer to a function used in arithmetic [-Wpointer-arith]
s=a[x2][y2]-a[x1-1][y2]-a[x2][y1-1]+a[x1-1][y1-1];
^
user.cpp:58:43: error: invalid types ‘int [2005][double (*)(double)throw ()]’ for array subscript
s=a[x2][y2]-a[x1-1][y2]-a[x2][y1-1]+a[x1-1][y1-1];
^
user.cpp:58:56: warning: pointer to a function used in arithmetic [-Wpointer-arith]
s=a[x2][y2]-a[x1-1][y2]-a[x2][y1-1]+a[x1-1][y1-1];
^
user.cpp:58:57: error: invalid types ‘int [2005][double (*)(double)throw ()]’ for array subscript
s=a[x2][y2]-a[x1-1][y2]-a[x2][y1-1]+a[x1-1][y1-1];
^
user.cpp:19:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("plaja.in","r",stdin);
^
user.cpp:20:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("plaja.out","w",stdout);
^
user.cpp:21:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&n,&m1,&u);
^
user.cpp:23:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&umb[i].x,&umb[i].y);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !