Borderou de evaluare (job #2953862)

Utilizator stefandutastefandutahoria stefanduta Data 12 decembrie 2022 12:48:40
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp:17:5: warning: built-in function 'log2' declared as non-function [-Wbuiltin-declaration-mismatch] 17 | int log2[NMAX]; | ^~~~ main.cpp: In function 'void dfs(int, int)': main.cpp:29:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 29 | for (i = 0; i < children[node].size(); ++i) | ~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:54:18: warning: unused variable 'j' [-Wunused-variable] 54 | int n, q, i, j, a, b, p; | ^ main.cpp: In function 'void buildLog()': main.cpp:41:17: warning: iteration 100003 invokes undefined behavior [-Waggressive-loop-optimizations] 41 | log2[i] = log2[i / 2] + 1; | ~~~~~~~~^~~~~~~~~~~~~~~~~ main.cpp:40:19: note: within this loop 40 | for (i = 2; i <= NMAX; ++i) | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms184kbIncorect00
20ms184kbIncorect00
310ms4313kbIncorect00
413ms4247kbKilled by Signal 1100
530ms5443kbKilled by Signal 1100
625ms4997kbKilled by Signal 1100
723ms13488kbKilled by Signal 1100
822ms5074kbKilled by Signal 1100
925ms5042kbKilled by Signal 110
1022ms5074kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?