Borderou de evaluare (job #2815410)

Utilizator oporanu.alexAlex Oporanu oporanu.alex Data 9 decembrie 2021 16:17:36
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 70

Raport evaluator

Compilare: main.cpp: In function 'bool BFmaxFlow(int, int, int*, std::vector<int>*, int)': main.cpp:10:16: warning: iteration 1004 invokes undefined behavior [-Waggressive-loop-optimizations] 10 | vis[i] = false; | ~~~~~~~^~~~~~~ main.cpp:9:22: note: within this loop 9 | for(int i = 1; i <= nmax; ++i) | ~~^~~~~~~ main.cpp:10:16: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 1005 is out of the bounds [0, 1005] of object 'vis' with type 'bool [1005]' [-Warray-bounds] 10 | vis[i] = false; | ~~~~~~~^~~~~~~ main.cpp:8:10: note: 'vis' declared here 8 | bool vis[nmax]; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms262kbOK1010
22ms262kbOK1010
32ms184kbOK1010
41ms184kbOK1010
52ms184kbOK1010
66ms3010kbOK1010
710ms5169kbOK1010
863ms6684kbTime limit exceeded00
964ms7352kbTime limit exceeded0
1064ms6918kbTime limit exceeded0
Punctaj total70

Ceva nu functioneaza?