Borderou de evaluare (job #681715)

Utilizator avatar Dumitru_Andrei Dumitru Andrei Denis Dumitru_Andrei IP ascuns
Problemă Lowest Common Ancestor Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 13 dec. 2022 19:20:48 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int, int)': main.cpp:8:24: error: 'typeof' was not declared in this scope 8 | #define foreach(V) for(typeof (V).begin() it = (V).begin(); it != (V).end(); ++it) | ^~~~~~ main.cpp:40:9: note: in expansion of macro 'foreach' 40 | foreach(G[nod]) | ^~~~~~~ main.cpp:8:61: error: 'it' was not declared in this scope; did you mean 'st'? 8 | #define foreach(V) for(typeof (V).begin() it = (V).begin(); it != (V).end(); ++it) | ^~ main.cpp:40:9: note: in expansion of macro 'foreach' 40 | foreach(G[nod]) | ^~~~~~~