Borderou de evaluare (job #700076)

Utilizator avatar Radu_Tanase Tanase Radu Mihai Radu_Tanase IP ascuns
Problemă Ech (clasa a 7-a) Compilator c-32
Rundă Tema 18 clasa a 7-a Status evaluat
Dată 2 mar. 2023 12:35:58 Scor 40

Raport evaluator

Compilare: main.c: In function 'main': main.c:38:19: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[25]' [-Wformat=] 38 | fscanf(fin, "%s", &v); | ~^ ~~ | | | | | char (*)[25] | char * main.c:39:7: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 39 | n=strlen(v)-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:39:7: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 39 | n=strlen(v)-1; | ^~~~~~ main.c:39:7: note: include '<string.h>' or provide a declaration of 'strlen' main.c: In function 'adunare_cu_1': main.c:32:1: warning: control reaches end of non-void function [-Wreturn-type] 32 | } | ^ main.c: In function 'main': main.c:38:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 38 | fscanf(fin, "%s", &v); | ^~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Incorect 0
2 1 ms 245 kb OK 10
3 1 ms 245 kb OK 10
4 9 ms 249 kb OK 10
5 49 ms 249 kb Incorect 0
6 109 ms 249 kb Time limit exceeded 0
7 1 ms 245 kb OK 10
8 1 ms 245 kb Incorect 0
9 109 ms 249 kb Time limit exceeded 0
10 1 ms 245 kb Incorect 0
Punctaj total 40