Borderou de evaluare (job #1018174)
Utilizator | Data | 28 octombrie 2013 22:49:18 | |
---|---|---|---|
Problema | Ciclu Eulerian | 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:4:43: error: ‘typeof’ was not declared in this scope
#define foreach(it,G) for(typeof(G.begin()) it=G.begin();it!=G.end();++it)
^
user.cpp:20:5: note: in expansion of macro ‘foreach’
foreach(it,G[i]) if(!mark[*it]) DFS(*it);
^
user.cpp:20:13: error: expected ‘;’ before ‘it’
foreach(it,G[i]) if(!mark[*it]) DFS(*it);
^
user.cpp:4:45: note: in definition of macro ‘foreach’
#define foreach(it,G) for(typeof(G.begin()) it=G.begin();it!=G.end();++it)
^
user.cpp:20:13: error: ‘it’ was not declared in this scope
foreach(it,G[i]) if(!mark[*it]) DFS(*it);
^
user.cpp:4:58: note: in definition of macro ‘foreach’
#define foreach(it,G) for(typeof(G.begin()) it=G.begin();it!=G.end();++it)
^
user.cpp: In function ‘void remove_edge(int, int)’:
user.cpp:4:43: error: ‘typeof’ was not declared in this scope
#define foreach(it,G) for(typeof(G.begin()) it=G.begin();it!=G.end();++it)
^
user.cpp:29:5: note: in expansion of macro ‘foreach’
foreach(it,G[b]) if(*it==a){
^
user.cpp:29:13: error: expected ‘;’ before ‘it’
foreach(it,G[b]) if(*it==a){
^
user.cpp:4:45: note: in definition of macro ‘foreach’
#define foreach(it,G) for(typeof(G.begin()) it=G.begin();it!=G.end();++it)
^
user.cpp:29:13: error: ‘it’ was not declared in this scope
foreach(it,G[b]) if(*it==a){
^
user.cpp:4:58: note: in definition of macro ‘foreach’
#define foreach(it,G) for(typeof(G.begin()) it=G.begin();it!=G.end();++it)
^
user.cpp: In function ‘int main()’:
user.cpp:4:43: error: ‘typeof’ was not declared in this scope
#define foreach(it,G) for(typeof(G.begin()) it=G.begin();it!=G.end();++it)
^
user.cpp:61:5: note: in expansion of macro ‘foreach’
foreach(it,S) out<<*it<<' ';
^
user.cpp:61:13: error: expected ‘;’ before ‘it’
foreach(it,S) out<<*it<<' ';
^
user.cpp:4:45: note: in definition of macro ‘foreach’
#define foreach(it,G) for(typeof(G.begin()) it=G.begin();it!=G.end();++it)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !