Borderou de evaluare (job #1657091)
Utilizator | Data | 20 martie 2016 09:45:25 | |
---|---|---|---|
Problema | Zoo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:15:10: error: ‘int y1’ redeclared as different kind of symbol
int n,x1,y1,x2,y2,sol,m;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
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:162: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); sol=0;
^
user.cpp:164:32: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
query(1,1,n,x1,x2,y1,y2);
^
user.cpp:122:6: error: initializing argument 6 of ‘void query(int, int, int, int, int, int, int)’ [-fpermissive]
void query(int nod,int st,int dr,int x1,int x2,int y1,int y2)
^
user.cpp:150:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zoo.in","r",stdin);
^
user.cpp:151:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zoo.out","w",stdout);
^
user.cpp:153:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:155:58: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (int i=1;i<=n;i++) scanf("%d %d",&t[i].x,&t[i].y);
^
user.cpp:159:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
^
user.cpp:162:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d",&x1,&y1,&x2,&y2); sol=0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !