Borderou de evaluare (job #3136808)

Utilizator razviOKPopan Razvan Calin razviOK Data 8 iunie 2023 17:54:10
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 30

Raport evaluator

Compilare: main.c: In function 'main': main.c:10:13: warning: format '%u' expects argument of type 'unsigned int *', but argument 2 has type 'unsigned int **' [-Wformat=] 10 | scanf("%u",&n); | ~^ ~~ | | | | | unsigned int ** | unsigned int * main.c:12:32: warning: passing argument 1 of 'calloc' makes integer from pointer without a cast [-Wint-conversion] 12 | bool *sieve=(bool *)calloc(n,sizeof(bool)); | ^ | | | unsigned int * In file included from main.c:2: /usr/include/stdlib.h:556:29: note: expected 'size_t' {aka 'long unsigned int'} but argument is of type 'unsigned int *' 556 | extern void *calloc (size_t __nmemb, size_t __size) | ~~~~~~~^~~~~~~ main.c:14:27: warning: comparison between pointer and integer 14 | for(unsigned int i=2;i<=n;i++) | ^~ main.c:19:33: warning: comparison between pointer and integer 19 | for(unsigned int j=i*i;j<=n;j+=i) | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
30ms303kbOK10
43ms1343kbIncorect0
53ms1343kbIncorect0
64ms1605kbIncorect0
75ms1867kbIncorect0
87ms2134kbIncorect0
94ms2129kbIncorect0
108ms2129kbIncorect0
Punctaj total30

Ceva nu functioneaza?