Borderou de evaluare (job #3188810)

Utilizator willOcanaru Mihai will Data 3 ianuarie 2024 21:19:48
Problema Senat Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:50:60: warning: unused variable 'committeeIdx' [-Wunused-variable] 50 | int numSenators, numCommittees, senator, numOfMembers, committeeIdx = 0; | ^~~~~~~~~~~~ main.cpp:67:22: warning: iteration 104 invokes undefined behavior [-Waggressive-loop-optimizations] 67 | leftMatch[i] = 0; | ~~~~~~~~~~~~~^~~ main.cpp:66:22: note: within this loop 66 | for(int i = 1; i <= MAX_N; ++i) | ~~^~~~~~~~ main.cpp:67:22: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [420, 423] is out of the bounds [0, 420] of object 'leftMatch' with type 'int [105]' [-Warray-bounds] 67 | leftMatch[i] = 0; | ~~~~~~~~~~~~~^~~ main.cpp:11:5: note: 'leftMatch' declared here 11 | int leftMatch[MAX_N], rightMatch[MAX_M]; | ^~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect!0
20ms303kbIncorect!0
30ms303kbIncorect!0
40ms303kbIncorect!0
50ms303kbIncorect!0
60ms303kbIncorect!0
71ms303kbIncorect!0
81ms303kbIncorect!0
90ms303kbIncorect!0
100ms303kbS-a respectat legea!10
Punctaj total10

Ceva nu functioneaza?