Borderou de evaluare (job #2313873)
| Utilizator | Data | 7 ianuarie 2019 16:08:55 | |
|---|---|---|---|
| Problema | Heavy Path Decomposition | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:6:21: error: redefinition of 'int z'
int n,m,t,x,y,z,o,i,z,j,k;
^
main.cpp:6:15: note: 'int z' previously declared here
int n,m,t,x,y,z,o,i,z,j,k;
^
main.cpp: In function 'int H(int, int)':
main.cpp:46:8: error: 'ind' was not declared in this scope
while(ind[x]!=ind[y])
^~~
main.cpp: In function 'int main()':
main.cpp:58:91: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("heavypath.in","r",stdin),freopen("heavypath.out","w",stdout),scanf("%d%d",&n,&m);
^
main.cpp:58:91: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:58:91: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:60:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",v+i);
^
main.cpp:62:58: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y),l[x].push_back(y),l[y].push_back(x);
^
main.cpp:70:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&t,&x,&y);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
