Borderou de evaluare (job #640107)

Utilizator avatar miHai231 Mihai Mandragiu miHai231 IP ascuns
Problemă Factori (clasa a 6-a) Compilator cpp-32
Rundă pregatire_oji_cls6_vianu Status evaluat
Dată 11 mar. 2022 19:21:54 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int CitesteNumar()': main.cpp:36:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 36 | scanf("%lu", &N); | ~~~~~^~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:70:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 70 | freopen("factori.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:71:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 71 | freopen("factori.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void TabelPrime()': main.cpp:16:41: warning: iteration 60000 invokes undefined behavior [-Waggressive-loop-optimizations] 16 | for (i = 1; i <= MAX; i++) Prime[i] = TRUE; | ^ main.cpp:16:19: note: within this loop 16 | for (i = 1; i <= MAX; i++) Prime[i] = TRUE; | ^ main.cpp:16:41: warning: 'void* __builtin_memset(void*, int, unsigned int)' forming offset 60001 is out of the bounds [0, 60001] of object 'Prime' with type 'char [60001]' [-Warray-bounds] 16 | for (i = 1; i <= MAX; i++) Prime[i] = TRUE; | ^ main.cpp:9:6: note: 'Prime' declared here 9 | char Prime[MAX]; | ^~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 241 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 241 kb OK 10
4 10 ms 204 kb OK 10
5 1 ms 237 kb OK 10
6 1 ms 237 kb OK 10
7 1 ms 241 kb OK 10
8 7 ms 217 kb OK 10
9 15 ms 159 kb OK 10
10 1 ms 245 kb OK 10
Punctaj total 100