Borderou de evaluare (job #1563367)
Utilizator | Data | 5 ianuarie 2016 22:36:18 | |
---|---|---|---|
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 ‘int main()’:
user.cpp:13:4: error: ‘list’ was not declared in this scope
list <int>v[100001];
^
user.cpp:13:10: error: expected primary-expression before ‘int’
list <int>v[100001];
^
user.cpp:13:10: error: expected ‘;’ before ‘int’
user.cpp:14:11: error: expected primary-expression before ‘int’
list <int>::const_iterator s,j;
^
user.cpp:14:11: error: expected ‘;’ before ‘int’
user.cpp:20:9: error: ‘v’ was not declared in this scope
v[a].push_back(b);
^
user.cpp:29:13: error: ‘s’ was not declared in this scope
for(s=v[a].begin(),j=v[a].end(); s!=j; s++)
^
user.cpp:29:15: error: ‘v’ was not declared in this scope
for(s=v[a].begin(),j=v[a].end(); s!=j; s++)
^
user.cpp:29:28: error: ‘j’ was not declared in this scope
for(s=v[a].begin(),j=v[a].end(); s!=j; s++)
^
user.cpp:10:15: warning: unused variable ‘p’ [-Wunused-variable]
int n,m,i,p,u,x,a,b;
^
user.cpp:10:17: warning: unused variable ‘u’ [-Wunused-variable]
int n,m,i,p,u,x,a,b;
^
user.cpp:8:32: 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:9:34: 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:11:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&m,&x);
^
user.cpp:19:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a,&b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !