Borderou de evaluare (job #699880)

Utilizator avatar Radu_Tanase Tanase Radu Mihai Radu_Tanase IP ascuns
Problemă Compar (clasa a 7-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 1 mar. 2023 14:17:11 Scor 64

Raport evaluator

Compilare: main.c: In function 'main': main.c:10:19: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[100000]' [-Wformat=] 10 | fscanf(fin, "%s", &semne); | ~^ ~~~~~~ | | | | | char (*)[100000] | char * main.c:12:7: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 12 | n=strlen(semne)+1; | ^~~~~~ main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen' 2 | #include <stdlib.h> +++ |+#include <string.h> 3 | FILE *fin, *fout; main.c:12:7: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 12 | n=strlen(semne)+1; | ^~~~~~ main.c:12:7: note: include '<string.h>' or provide a declaration of 'strlen' main.c:8:30: warning: unused variable 'j' [-Wunused-variable] 8 | int n, mare=0, mic=0, i, j, ultim, start, poz_mic=0, poz_mare=0, semafor=0; | ^ main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin, "%s", &semne); | ^~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 245 kb a) OK; b) OK 10
3 1 ms 245 kb OK 10
4 1 ms 245 kb a) OK; b) linie incorecta 1
5 1 ms 245 kb a) OK; b) OK 10
6 1 ms 241 kb a) OK; b) OK 10
7 1 ms 233 kb a) OK; b) OK 10
8 39 ms 417 kb a) OK; b) linie incorecta 1
9 59 ms 761 kb a) OK; b) linie incorecta 1
10 59 ms 753 kb a) OK; b) linie incorecta 1
Punctaj total 64