Borderou de evaluare (job #2948619)

Utilizator Eronatedudu zzz Eronate Data 27 noiembrie 2022 22:06:12
Problema Easygraph Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void dfs(int)': main.cpp:18:18: 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<edges[crEl].size();i++) | ~^~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void solution()': main.cpp:41:20: warning: iteration 15000 invokes undefined behavior [-Waggressive-loop-optimizations] 41 | visited[i] = 0; | ~~~~~~~~~~~^~~ main.cpp:40:18: note: within this loop 40 | for(int i=1;i<=15001;i++) | ~^~~~~~~ main.cpp:41:20: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [60004, 60007] is out of the bounds [0, 60004] of object 'visited' with type 'int [15001]' [-Warray-bounds] 41 | visited[i] = 0; | ~~~~~~~~~~~^~~ main.cpp:10:5: note: 'visited' declared here 10 | int visited[15001]; | ^~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
1138ms2363kbOK100
Punctaj total100

Ceva nu functioneaza?