Borderou de evaluare (job #2139132)
Utilizator | Data | 22 februarie 2018 09:47:21 | |
---|---|---|---|
Problema | Colaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:71:67: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(f,"%d %d %d %d",&v[i].x1,&v[i].y1,&v[i].x2,&v[i].y2);
^
user.cpp:71:67: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:71:67: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=]
user.cpp:71:67: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘short int*’ [-Wformat=]
user.cpp:98:33: error: cannot convert ‘short int*’ to ‘int*’ for argument ‘1’ to ‘int cauta(int*, int)’
v[i].px1=cauta(x,v[i].x1);///pozitia pe care se gaseste v[i].x1 in vectorul sortat x
^
user.cpp:99:33: error: cannot convert ‘short int*’ to ‘int*’ for argument ‘1’ to ‘int cauta(int*, int)’
v[i].py1=cauta(y,v[i].y1);///pozitia pe care se gaseste v[i].y1 in vectorul sortat y
^
user.cpp:100:33: error: cannot convert ‘short int*’ to ‘int*’ for argument ‘1’ to ‘int cauta(int*, int)’
v[i].px2=cauta(x,v[i].x2);///pozitia pe care se gaseste v[i].x2 in vectorul sortat x
^
user.cpp:101:33: error: cannot convert ‘short int*’ to ‘int*’ for argument ‘1’ to ‘int cauta(int*, int)’
v[i].py2=cauta(y,v[i].y2);///pozitia pe care se gaseste v[i].y2 in vectorul sortat y
^
user.cpp:64:15: warning: unused variable ‘l1’ [-Wunused-variable]
int m,n,p,l1,c1,l2,c2,i,k,j,ss=0;
^
user.cpp:64:18: warning: unused variable ‘c1’ [-Wunused-variable]
int m,n,p,l1,c1,l2,c2,i,k,j,ss=0;
^
user.cpp:64:21: warning: unused variable ‘l2’ [-Wunused-variable]
int m,n,p,l1,c1,l2,c2,i,k,j,ss=0;
^
user.cpp:64:24: warning: unused variable ‘c2’ [-Wunused-variable]
int m,n,p,l1,c1,l2,c2,i,k,j,ss=0;
^
user.cpp:67:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&p);
^
user.cpp:68:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&m,&n);
^
user.cpp:71:68: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d %d %d",&v[i].x1,&v[i].y1,&v[i].x2,&v[i].y2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !