Borderou de evaluare (job #1511237)
Utilizator | Data | 26 octombrie 2015 11:15:32 | |
---|---|---|---|
Problema | Avioane | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool cmp(avioane, avioane)’:
user.cpp:15:14: error: ‘struct avioane’ has no member named ‘poz’
return i.poz<j.poz;
^
user.cpp:15:20: error: ‘struct avioane’ has no member named ‘poz’
return i.poz<j.poz;
^
user.cpp: In function ‘int main()’:
user.cpp:47:21: error: ‘struct avioane’ has no member named ‘poz’
while(av[i].poz!=j)
^
user.cpp:28:17: warning: unused variable ‘inc’ [-Wunused-variable]
int i,j,n,q,inc,sf,pr,ul;
^
user.cpp:28:21: warning: unused variable ‘sf’ [-Wunused-variable]
int i,j,n,q,inc,sf,pr,ul;
^
user.cpp: In function ‘bool cmp(avioane, avioane)’:
user.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:30:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%i%i",&n,&q);
^
user.cpp:33:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%i",&v[i]);
^
user.cpp:38:45: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%i%i",&av[i].p,&av[i].h);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !