Borderou de evaluare (job #2508415)

Utilizator mihai50000Mihai-Cristian Popescu mihai50000 Data 12 decembrie 2019 08:52:46
Problema Arbxyz Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In constructor 'Graf::Graf(int, int, int, int)': main.cpp:31:18: warning: 'Graf::z' will be initialized after [-Wreorder] int n, x, y, z; ^ main.cpp:28:25: warning: 'std::vector<std::vector<int> > Graf::adj' [-Wreorder] vector <vector <int> > adj; ^~~ main.cpp:33:2: warning: when initialized here [-Wreorder] Graf(int n, int x, int y, int z) : n(n), x(x), y(y), z(z), adj(n + 1), siz(n + 1) {} ^~~~ main.cpp: In member function 'P Graf::dfs(int, int)': main.cpp:50:24: error: request for member 'x' in 'res', which is of non-class type 'P()' if(res.x == true && (aux.y == true || aux.z == true)) ^ main.cpp:51:25: error: request for member 'val' in 'res', which is of non-class type 'P()' res.val = true; ^~~ main.cpp:53:24: error: request for member 'y' in 'res', which is of non-class type 'P()' if(res.y == true && (aux.x == true || aux.z == true)) ^ main.cpp:54:25: error: request for member 'val' in 'res', which is of non-class type 'P()' res.val = true; ^~~ main.cpp:56:24: error: request for member 'z' in 'res', which is of non-class type 'P()' if(res.z == true && (aux.x == true || aux.y == true)) ^ main.cpp:57:25: error: request for member 'val' in 'res', which is of non-class type 'P()' res.val = true; ^~~ main.cpp:59:21: error: request for member 'x' in 'res', which is of non-class type 'P()' res.x |= aux.x; ^ main.cpp:60:21: error: request for member 'y' in 'res', which is of non-class type 'P()' res.y |= aux.y; ^ main.cpp:61:21: error: request for member 'z' in 'res', which is of non-class type 'P()' res.z |= aux.z; ^ main.cpp:63:21: error: request for member 'val' in 'res', which is of non-class type 'P()' res.val |= aux.val; ^~~ main.cpp:66:37: error: request for member 'y' in 'res', which is of non-class type 'P()' if(siz[nod] - x == y && res.y == true) ^ main.cpp:67:17: error: request for member 'val' in 'res', which is of non-class type 'P()' res.val = true; ^~~ main.cpp:69:37: error: request for member 'z' in 'res', which is of non-class type 'P()' if(siz[nod] - x == z && res.z == true) ^ Non zero exit status: 1

Ceva nu functioneaza?