Borderou de evaluare (job #3136809)

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

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
43ms1343kbOK10
54ms1343kbOK10
65ms1605kbOK10
74ms1867kbOK10
88ms2129kbOK10
99ms2129kbOK10
109ms2392kbOK10
Punctaj total100

Ceva nu functioneaza?