Borderou de evaluare (job #1003663)
Utilizator | Data | 1 octombrie 2013 10:52:17 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:18: error: macro parameters must be comma-separated
#define IFor(i,V a) for(V::iterator i=a.begin();i<a.end();i++)
^
user.cpp:18:5: error: ‘NMax’ was not declared in this scope
V v[NMax];
^
user.cpp:19:16: error: ‘NMax’ was not declared in this scope
long n,m,x,viz[NMax];
^
user.cpp: In function ‘void bfs(long int)’:
user.cpp:12:11: error: ‘queue’ was not declared in this scope
#define Q queue<long>
^
user.cpp:23:5: note: in expansion of macro ‘Q’
Q q;
^
user.cpp:12:17: error: expected primary-expression before ‘long’
#define Q queue<long>
^
user.cpp:23:5: note: in expansion of macro ‘Q’
Q q;
^
user.cpp:12:17: error: expected ‘;’ before ‘long’
#define Q queue<long>
^
user.cpp:23:5: note: in expansion of macro ‘Q’
Q q;
^
user.cpp:24:5: error: ‘q’ was not declared in this scope
q.pb(now);
^
user.cpp:28:14: error: ‘i’ was not declared in this scope
IFor(i,v[now])
^
user.cpp:28:16: error: ‘v’ was not declared in this scope
IFor(i,v[now])
^
user.cpp:28:22: error: ‘IFor’ was not declared in this scope
IFor(i,v[now])
^
user.cpp:30:9: error: expected ‘;’ before ‘q’
q.pf(); //remove current element
^
user.cpp: In function ‘int main()’:
user.cpp:42:26: error: ‘y’ was not declared in this scope
scan("%ld %ld",x,y),
^
user.cpp:43:9: error: ‘v’ was not declared in this scope
v[x].pb(y),
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !