Borderou de evaluare (job #1480781)
Utilizator | Data | 3 septembrie 2015 09:48:12 | |
---|---|---|---|
Problema | Fear | 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:31:24: error: ‘n’ was not declared in this scope
for(flow=0.0,s=1;s<n;s++) {
^
user.cpp:28:84: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("fear.in","r",stdin),freopen("fear.out","w",stdout),scanf("%d%d",&N,&M);
^
user.cpp:28:84: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:28:84: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:30:86: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%u%u%lf",&x,&y,&z),C[x][y]+=log(z),G[x].push_back(y),G[y].push_back(x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !