Borderou de evaluare (job #3254488)

Utilizator nil.gonencerGonencer Nil Deren nil.gonencer Data 7 noiembrie 2024 17:17:28
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:11:17: warning: passing argument 1 of 'fscanf' makes pointer from integer without a cast [-Wint-conversion] 11 | fscanf(r, "%d", &w); | ^ | | | int In file included from main.c:1: /usr/include/stdio.h:415:37: note: expected 'FILE * restrict' but argument is of type 'int' 415 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:33:17: warning: passing argument 1 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 33 | fprintf(w, "%d", cnt); | ^ | | | int /usr/include/stdio.h:350:38: note: expected 'FILE * restrict' but argument is of type 'int' 350 | extern int fprintf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:7:14: warning: variable 'b' set but not used [-Wunused-but-set-variable] 7 | FILE* a, *b; | ^ main.c:7:10: warning: variable 'a' set but not used [-Wunused-but-set-variable] 7 | FILE* a, *b; | ^ main.c:11:10: warning: 'r' is used uninitialized [-Wuninitialized] 11 | fscanf(r, "%d", &w); | ^~~~~~~~~~~~~~~~~~~ main.c:6:11: note: 'r' was declared here 6 | int w, r; | ^ main.c:16:16: warning: 'n' is used uninitialized [-Wuninitialized] 16 | while(i<=n) { | ~^~~ main.c:12:17: note: 'n' was declared here 12 | int i, n, is_prim, cnt=0; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
15ms376kbKilled by Signal 110
27ms376kbKilled by Signal 110
37ms368kbKilled by Signal 110
47ms372kbKilled by Signal 110
57ms372kbKilled by Signal 110
65ms376kbKilled by Signal 110
75ms372kbKilled by Signal 110
87ms368kbKilled by Signal 110
97ms368kbKilled by Signal 110
105ms368kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?