Borderou de evaluare (job #1556365)
Utilizator | Data | 24 decembrie 2015 17:38:22 | |
---|---|---|---|
Problema | Tribute | 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:16:5: error: ‘v’ was not declared in this scope
v[vcc[i].x]++;
^
user.cpp:17:5: error: ‘vc’ was not declared in this scope
vc[vcc[i].y]++;
^
user.cpp:21:5: warning: unused variable ‘difmax’ [-Wunused-variable]
int difmax=0,dm1=0,poz,poz1,poz2,poz3;
^
user.cpp:21:14: warning: unused variable ‘dm1’ [-Wunused-variable]
int difmax=0,dm1=0,poz,poz1,poz2,poz3;
^
user.cpp:10:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("tribute.in","r",stdin);
^
user.cpp:11:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("tribute.out","w",stdout);
^
user.cpp:12:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&lin,&col);
^
user.cpp:15:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&vcc[i].x,&vcc[i].y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !