Borderou de evaluare (job #2119795)
Utilizator | Data | 1 februarie 2018 17:35:56 | |
---|---|---|---|
Problema | Diametrul unui arbore | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:1: error: expected ‘,’ or ‘;’ before ‘vector’
vector <int> graf[Nmax];
^
user.cpp: In function ‘void bfs(int)’:
user.cpp:20:43: error: ‘graf’ was not declared in this scope
for(vector <int> :: iterator it = graf[nod].begin() ; it!= graf[nog].end ; it++)
^
user.cpp:20:73: error: ‘nog’ was not declared in this scope
for(vector <int> :: iterator it = graf[nod].begin() ; it!= graf[nog].end ; it++)
^
user.cpp: In function ‘void read()’:
user.cpp:38:17: error: ‘n’ was not declared in this scope
scanf("%d",&n);
^
user.cpp:36:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("darb.in","r",stdin);
^
user.cpp:37:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("darb.out","w",stdout);
^
user.cpp:42:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !