Borderou de evaluare (job #3235425)

Utilizator iulia_morariuIulia Morariu iulia_morariu Data 17 iunie 2024 20:20:55
Problema Maimute 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)': main.cpp:18:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 18 | for(int i = 0; i < v[nod].size(); i++){ | ~~^~~~~~~~~~~~~~~ main.cpp: In function 'int next(int, int)': main.cpp:29:19: error: invalid types 'int [21][__gnu_cxx::__enable_if<true, double>::__type {aka double}]' for array subscript 29 | a = lca[a][log2(b)]; | ^ main.cpp:30:17: error: invalid operands of types 'int' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} to binary 'operator<<' 30 | b -= (1 << log2(b)); | ~ ^~ ~~~~~~~ | | | | int __gnu_cxx::__enable_if<true, double>::__type {aka double} Non zero exit status: 1

Ceva nu functioneaza?