Borderou de evaluare (job #2452504)

Utilizator cristi1990anCornea Cristian cristi1990an Data 30 august 2019 23:21:41
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:8:10: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if (max*strlen(B)>strlen(A)) ^~~~~~ main.c:8:10: warning: incompatible implicit declaration of built-in function 'strlen' main.c:8:10: note: include '<string.h>' or provide a declaration of 'strlen' main.c:10:31: warning: incompatible implicit declaration of built-in function 'strlen' for (unsigned int i = 0; i < strlen(B); i++) ^~~~~~ main.c:10:31: note: include '<string.h>' or provide a declaration of 'strlen' main.c: In function 'main': main.c:38:6: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] A = malloc(sizeof(char) * lungime_sir + 1); ^~~~~~ main.c:38:6: warning: incompatible implicit declaration of built-in function 'malloc' main.c:38:6: note: include '<stdlib.h>' or provide a declaration of 'malloc' main.c:60:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(A); ^~~~ main.c:60:2: warning: incompatible implicit declaration of built-in function 'free' main.c:60:2: note: include '<stdlib.h>' or provide a declaration of 'free' main.c:34:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &lungime_sir); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:36:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &nr_subsiruri); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:41:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%s", A); ^~~~~~~~~~~~~~~~~~~ main.c:47: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
22ms131kbOK10
3700ms131kbTime limit exceeded00
4701ms131kbTime limit exceeded0
5703ms131kbTime limit exceeded00
6704ms131kbTime limit exceeded0
7701ms131kbTime limit exceeded0
8703ms262kbTime limit exceeded00
9700ms262kbTime limit exceeded0
10703ms393kbTime limit exceeded0
Punctaj total20

Ceva nu functioneaza?