Borderou de evaluare (job #974435)

Utilizator ericptsStavarache Petru Eric ericpts Data 17 iulie 2013 11:18:41
Problema S013 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool pair_up(const int&)’: user.cpp:5:40: error: ‘typeof’ was not declared in this scope #define forEach(G) for(typeof(G.begin()) it = G.begin() ; it != G.end() ; ++ it) ^ user.cpp:33:5: note: in expansion of macro ‘forEach’ forEach(G[nod]){ ^ user.cpp:5:42: error: expected ‘;’ before ‘it’ #define forEach(G) for(typeof(G.begin()) it = G.begin() ; it != G.end() ; ++ it) ^ user.cpp:33:5: note: in expansion of macro ‘forEach’ forEach(G[nod]){ ^ user.cpp:5:59: error: ‘it’ was not declared in this scope #define forEach(G) for(typeof(G.begin()) it = G.begin() ; it != G.end() ; ++ it) ^ user.cpp:33:5: note: in expansion of macro ‘forEach’ forEach(G[nod]){ ^ user.cpp:5:40: error: ‘typeof’ was not declared in this scope #define forEach(G) for(typeof(G.begin()) it = G.begin() ; it != G.end() ; ++ it) ^ user.cpp:41:5: note: in expansion of macro ‘forEach’ forEach(G[nod]){ ^ user.cpp:5:42: error: expected ‘;’ before ‘it’ #define forEach(G) for(typeof(G.begin()) it = G.begin() ; it != G.end() ; ++ it) ^ user.cpp:41:5: note: in expansion of macro ‘forEach’ forEach(G[nod]){ ^ user.cpp:5:59: error: ‘it’ was not declared in this scope #define forEach(G) for(typeof(G.begin()) it = G.begin() ; it != G.end() ; ++ it) ^ user.cpp:41:5: note: in expansion of macro ‘forEach’ forEach(G[nod]){ ^

Ceva nu functioneaza?