Borderou de evaluare (job #1754740)
Utilizator | Data | 8 septembrie 2016 16:57:31 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(int)’:
user.cpp:15:7: error: ‘list’ was not declared in this scope
for(list<int>::iterator it=a[p].begin();it!=a[p].end();){
^
user.cpp:15:12: error: expected primary-expression before ‘int’
for(list<int>::iterator it=a[p].begin();it!=a[p].end();){
^
user.cpp:15:12: error: expected ‘;’ before ‘int’
user.cpp:15:43: error: ‘it’ was not declared in this scope
for(list<int>::iterator it=a[p].begin();it!=a[p].end();){
^
user.cpp: In function ‘int main()’:
user.cpp:32:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bfs.in", "r", stdin);
^
user.cpp:33:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bfs.out", "w", stdout);
^
user.cpp:35:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&n,&m,&s);
^
user.cpp:37:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n1,&n2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !