Borderou de evaluare (job #1842138)

Utilizator roxanastRoxana Stiuca roxanast Data 6 ianuarie 2017 15:48:51
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void dfs(int, int)’: user.cpp:6:33: error: ‘typeof’ was not declared in this scope #define foreach(V) for(typeof (V).begin() it = (V).begin(); it != (V).end(); ++it) ^ user.cpp:19:5: note: in expansion of macro ‘foreach’ foreach(g[nod]){ ^ user.cpp:6:43: error: expected ‘;’ before ‘it’ #define foreach(V) for(typeof (V).begin() it = (V).begin(); it != (V).end(); ++it) ^ user.cpp:19:5: note: in expansion of macro ‘foreach’ foreach(g[nod]){ ^ user.cpp:6:61: error: ‘it’ was not declared in this scope #define foreach(V) for(typeof (V).begin() it = (V).begin(); it != (V).end(); ++it) ^ user.cpp:19:5: note: in expansion of macro ‘foreach’ foreach(g[nod]){ ^

Ceva nu functioneaza?