Borderou de evaluare (job #1201395)

Utilizator DenisacheDenis Ehorovici Denisache Data 25 iunie 2014 03:41:04
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:4:31: error: ‘typeof’ was not declared in this scope #define forA(V) for (typeof (V).begin() it=(V).begin();it!=(V).end();it++) ^ user.cpp:14:5: note: in expansion of macro ‘forA’ forA(G[nod]) ^ user.cpp:4:41: error: expected ‘;’ before ‘it’ #define forA(V) for (typeof (V).begin() it=(V).begin();it!=(V).end();it++) ^ user.cpp:14:5: note: in expansion of macro ‘forA’ forA(G[nod]) ^ user.cpp:4:56: error: ‘it’ was not declared in this scope #define forA(V) for (typeof (V).begin() it=(V).begin();it!=(V).end();it++) ^ user.cpp:14:5: note: in expansion of macro ‘forA’ forA(G[nod]) ^ user.cpp: In function ‘int main()’: user.cpp:48:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lca.in","r",stdin); ^ user.cpp:49:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lca.out","w",stdout); ^ user.cpp:50:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&N,&M); ^ user.cpp:54:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^ user.cpp:62:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&x,&y); ^

Ceva nu functioneaza?