Borderou de evaluare (job #2452471)

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

Raport evaluator

Compilare: main.c: In function 'sub_sir': main.c:23:31: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] for (unsigned int i = 0; i < strlen(B); i++) ^~~~~~ main.c:23:31: warning: incompatible implicit declaration of built-in function 'strlen' main.c:23:31: note: include '<string.h>' or provide a declaration of 'strlen' main.c: In function 'main': main.c:51:13: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] A = (char*)malloc(sizeof(char) * lungime_sir + 1); ^~~~~~ main.c:51:13: warning: incompatible implicit declaration of built-in function 'malloc' main.c:51:13: note: include '<stdlib.h>' or provide a declaration of 'malloc' main.c:58:11: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] } while (strcmp(A,"\n")==0); ^~~~~~ main.c:84:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(A); ^~~~ main.c:84:2: warning: incompatible implicit declaration of built-in function 'free' main.c:84:2: note: include '<stdlib.h>' or provide a declaration of 'free' main.c:42:47: warning: unused variable 'c' [-Wunused-variable] unsigned int lungime_sir, nr_subsiruri, max, c; ^ main.c:47:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &lungime_sir); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:49:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &nr_subsiruri); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:57:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(A, lungime_sir + 1, in); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:67:4: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(B, lungime_sir+1, in); ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbKilled by Signal 1100
22ms131kbKilled by Signal 110
32ms131kbKilled by Signal 1100
43ms131kbKilled by Signal 110
53ms131kbKilled by Signal 1100
63ms131kbKilled by Signal 110
73ms131kbKilled by Signal 110
83ms262kbKilled by Signal 1100
93ms262kbKilled by Signal 110
103ms262kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?