Borderou de evaluare (job #2452458)

Utilizator cristi1990anCornea Cristian cristi1990an Data 30 august 2019 19:41:35
Problema Balbaiala Status done
Runda Arhiva de probleme Compilator c-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.c: In function 'sub_sir': main.c:23:8: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] aux = malloc(strlen(A)*sizeof(char) + 1); ^~~~~~ main.c:23:8: warning: incompatible implicit declaration of built-in function 'malloc' main.c:23:8: note: include '<stdlib.h>' or provide a declaration of 'malloc' main.c:23:15: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] aux = malloc(strlen(A)*sizeof(char) + 1); ^~~~~~ main.c:23:15: warning: incompatible implicit declaration of built-in function 'strlen' main.c:23:15: note: include '<string.h>' or provide a declaration of 'strlen' main.c:25:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(aux, A); ^~~~~~ main.c:25:2: warning: incompatible implicit declaration of built-in function 'strcpy' main.c:25:2: note: include '<string.h>' or provide a declaration of 'strcpy' main.c: In function 'main': main.c:54:6: warning: incompatible implicit declaration of built-in function 'malloc' A = malloc(sizeof(char) * lungime_sir + 1); ^~~~~~ main.c:54:6: note: include '<stdlib.h>' or provide a declaration of 'malloc' main.c:76:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(A); ^~~~ main.c:76:2: warning: incompatible implicit declaration of built-in function 'free' main.c:76:2: note: include '<stdlib.h>' or provide a declaration of 'free' main.c:50:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &lungime_sir); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:52:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &nr_subsiruri); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:57:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%s", A); ^~~~~~~~~~~~~~~~~~~ main.c:63:3: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%s", B); ^~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK1020
23ms131kbOK10
3700ms137232kbTime limit exceeded00
4700ms132251kbTime limit exceeded0
5700ms138674kbTime limit exceeded00
6703ms114032kbTime limit exceeded0
7704ms114233kbTime limit exceeded0
8701ms237322kbTime limit exceeded00
9701ms105512kbTime limit exceeded0
10705ms152207kbTime limit exceeded0
Punctaj total20

Ceva nu functioneaza?