Borderou de evaluare (job #1859056)
Utilizator | Data | 27 ianuarie 2017 17:21:21 | |
---|---|---|---|
Problema | Colaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:73: error: ‘int y0’ redeclared as different kind of symbol
int q,n,m,p,i,j,a[205],b[205],l[405][405],ca[205],cb[205],nra,nrb,nr,x0,y0,x1,y1,x02,y02,x12,y12;
^
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:242:1: error: previous declaration of ‘double y0(double)’
__MATHCALL (y0,, (_Mdouble_));
^
user.cpp:8:79: error: ‘int y1’ redeclared as different kind of symbol
int q,n,m,p,i,j,a[205],b[205],l[405][405],ca[205],cb[205],nra,nrb,nr,x0,y0,x1,y1,x02,y02,x12,y12;
^
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:61:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘double (*)(double)throw ()’ [-Wformat=]
fscanf(f,"%d%d%d%d",&x0,&y0,&x1,&y1);
^
user.cpp:61:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘double (*)(double)throw ()’ [-Wformat=]
user.cpp:62:48: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
x02=caut(x0,ca,nra); y02=caut(y0,cb,nrb);
^
user.cpp:20:5: error: initializing argument 1 of ‘int caut(int, int*, int)’ [-fpermissive]
int caut(int x, int v[201],int dim) {
^
user.cpp:64:27: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
y12=caut(y1,cb,nrb);
^
user.cpp:20:5: error: initializing argument 1 of ‘int caut(int, int*, int)’ [-fpermissive]
int caut(int x, int v[201],int dim) {
^
user.cpp: In function ‘int caut(int, int*, int)’:
user.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:28:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d%d",&n,&m,&p);
^
user.cpp:31:57: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d%d%d",&a[i],&b[i],&a[i+1],&b[i+1]);
^
user.cpp:58:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d%d",&n,&m,&p);
^
user.cpp:61:45: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !