Borderou de evaluare (job #2738898)

Utilizator david.teacaDavid Stefan Teaca david.teaca Data 6 aprilie 2021 14:56:30
Problema Tproc Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void DFS(int, int)': main.cpp:12:44: error: 'typeof' was not declared in this scope #define FORI(p, X) for (typeof((X).begin()) p = (X).begin(); p != (X).end(); ++p) ^ main.cpp:50:6: note: in expansion of macro 'FORI' FORI(p, G[k]) ^~~~ main.cpp:50:11: error: 'p' was not declared in this scope FORI(p, G[k]) ^ main.cpp:12:63: note: in definition of macro 'FORI' #define FORI(p, X) for (typeof((X).begin()) p = (X).begin(); p != (X).end(); ++p) ^ main.cpp:12:44: error: 'typeof' was not declared in this scope #define FORI(p, X) for (typeof((X).begin()) p = (X).begin(); p != (X).end(); ++p) ^ main.cpp:56:10: note: in expansion of macro 'FORI' FORI(p, T[k]) { ^~~~ main.cpp:56:15: error: 'p' was not declared in this scope FORI(p, T[k]) { ^ main.cpp:12:63: note: in definition of macro 'FORI' #define FORI(p, X) for (typeof((X).begin()) p = (X).begin(); p != (X).end(); ++p) ^ main.cpp:57:19: error: 'q' was not declared in this scope FORI(q, T[t]) ^ main.cpp:12:63: note: in definition of macro 'FORI' #define FORI(p, X) for (typeof((X).begin()) p = (X).begin(); p != (X).end(); ++p) ^ main.cpp: In function 'int solve(int, int, int)': main.cpp:12:44: error: 'typeof' was not declared in this scope #define FORI(p, X) for (typeof((X).begin()) p = (X).begin(); p != (X).end(); ++p) ^ main.cpp:104:6: note: in expansion of macro 'FORI' FORI(p, G[gr]) { ^~~~ main.cpp:104:11: error: 'p' was not declared in this scope FORI(p, G[gr]) { ^ main.cpp:12:63: note: in definition of macro 'FORI' #define FORI(p, X) for (typeof((X).begin()) p = (X).begin(); p != (X).end(); ++p) ^ main.cpp:107:41: error: 'memset' was not declared in this scope memset(used, 0xff, sizeof(used)); ^ main.cpp: In function 'int main()': main.cpp:162:31: error: 'memset' was not declared in this scope memset(D, 0xff, sizeof(D)); Non zero exit status: 1

Ceva nu functioneaza?