Borderou de evaluare (job #1948575)

Utilizator Corneliu10Dumitru Corneliu Corneliu10 Data 1 aprilie 2017 11:25:36
Problema Aiacupalindroame Status done
Runda Grigore Moisil 2017 Clasele a 11-12 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void dfs_level(int, int)’: user.cpp:41:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i =0;i<G[nod].size();i++) ^ user.cpp: In function ‘void dfs(int, int)’: user.cpp:9: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:51:5: note: in expansion of macro ‘foreach’ foreach(G[nod]) ^ user.cpp:9:43: error: expected ‘;’ before ‘it’ #define foreach(V) for(typeof (V).begin() it = (V).begin(); it != (V).end(); ++it) ^ user.cpp:51:5: note: in expansion of macro ‘foreach’ foreach(G[nod]) ^ user.cpp:9: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:51:5: note: in expansion of macro ‘foreach’ foreach(G[nod]) ^ user.cpp: In function ‘int main()’: user.cpp:101:18: warning: unused variable ‘ras’ [-Wunused-variable] int x, y,ras; ^

Ceva nu functioneaza?