Borderou de evaluare (job #3154680)

Utilizator NiffSniffCojocaru Calin Marcu NiffSniff Data 5 octombrie 2023 16:57:24
Problema Secventa 5 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void adauga(int, ll)': main.cpp:30:16: warning: narrowing conversion of 'numar' from 'll' {aka 'long long int'} to 'int' [-Wnarrowing] 30 | val[nr] = {numar,1}; | ^~~~~ main.cpp: In function 'int main()': main.cpp:87:13: warning: unused variable 'x' [-Wunused-variable] 87 | int l,u,x; | ^ main.cpp: In function 'void reseteaza()': main.cpp:82:16: warning: iteration 65535 invokes undefined behavior [-Waggressive-loop-optimizations] 82 | lst[i] = 0; | ~~~~~~~^~~ main.cpp:80:20: note: within this loop 80 | for (int i=1; i<=k; i++) | ~^~~ main.cpp:82:16: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [524288, 524295] is out of the bounds [0, 524288] of object 'lst' with type 'll [65536]' {aka 'long long int [65536]'} [-Warray-bounds] 82 | lst[i] = 0; | ~~~~~~~^~~ main.cpp:13:4: note: 'lst' declared here 13 | ll lst[k], urm[N+1], nr, v[N+1],n; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
118ms479kbKilled by Signal 110
222ms897kbKilled by Signal 110
323ms1163kbKilled by Signal 110
422ms1679kbKilled by Signal 110
524ms2043kbKilled by Signal 110
634ms3338kbKilled by Signal 110
753ms6680kbKilled by Signal 110
874ms8355kbKilled by Signal 110
9204ms16121kbKilled by Signal 110
10902ms15278kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?