Borderou de evaluare (job #2823638)

Utilizator tiut_cristianTiut Cristian tiut_cristian Data 29 decembrie 2021 09:56:06
Problema Suma si numarul divizorilor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void generareCiur(int&, int*)': main.cpp:17:15: warning: iteration 499999 invokes undefined behavior [-Waggressive-loop-optimizations] 17 | vf[i] = 1; | ~~~~~~^~~ main.cpp:16:22: note: within this loop 16 | for(int i = 3; i <= 1000001; i+=2) | ~~^~~~~~~~~~ main.cpp:19:16: warning: iteration 499999 invokes undefined behavior [-Waggressive-loop-optimizations] 19 | if(vf[i]) | ~~~~^ main.cpp:18:22: note: within this loop 18 | for(int i = 3; i <= 1000001; i+=2) | ~~^~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
120ms1556kbOK1010
220ms1552kbOK1010
320ms1499kbOK1010
421ms1576kbOK1010
521ms1482kbOK1010
621ms1572kbOK1010
721ms1548kbOK1010
883ms1622kbOK1030
974ms1622kbOK10
1074ms1622kbOK10
Punctaj total100

Ceva nu functioneaza?