Borderou de evaluare (job #1353922)

Utilizator LaviniaRaduBogdanUPB Oprea Radulescu Sirbu LaviniaRaduBogdan Data 21 februarie 2015 14:54:02
Problema Por Costel si Comisia de Cenzura Status done
Runda ONIS 2015, Runda 1 Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘gen_aparitii’: user.c:10:2: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] sir_aux = malloc ( strlen(sir) ); ^ user.c:10:12: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default] sir_aux = malloc ( strlen(sir) ); ^ user.c: In function ‘main’: user.c:63:9: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default] sir = malloc (1000000); ^ user.c:83:3: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long int (*)(int *, long int)’ [-Wformat=] printf("%ld", det_aparitii); ^ user.c:55:8: warning: unused variable ‘g’ [-Wunused-variable] FILE *g = fopen ("cenzura.out", "a"); ^ user.c:57:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &nr_teste); ^ user.c:61:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%ld%c", &dim, &waste); ^ user.c:64:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(sir, 100, f); ^ user.c:68:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf (f, "%d", &imp[j]); ^ user.c:74:10: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf (f, "%ld%c", &m, &waste); ^ user.c:78:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(cuvinte[j], 100, f); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1120ms4160kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?