Borderou de evaluare (job #712099)

Utilizator avatar AlexStoican Alexandru Andrei Stoican AlexStoican IP ascuns
Problemă Nod (clasa a 7-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 27 mar. 2023 11:03:23 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:30:16: warning: unused variable 'j' [-Wunused-variable] 30 | int i, j, k, n, nr, m, q=0; | ^ main.c:175:30: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[20]' [-Wformat=] 175 | fscanf(in, "%s", &v); | ~^ ~~ | | | | | char (*)[20] | char * main.c: In function 'find': main.c:20:1: warning: control reaches end of non-void function [-Wreturn-type] 20 | } | ^ main.c: In function 'main': main.c:26:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 26 | fscanf(in, "%d", &cerinta); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:31:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 31 | fscanf(in, "%c", &x); | ^~~~~~~~~~~~~~~~~~~~ main.c:41:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 41 | fscanf(in, "%c", &v[k]); | ^~~~~~~~~~~~~~~~~~~~~~~ main.c:76:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 76 | fscanf(in, "%c", &x); | ^~~~~~~~~~~~~~~~~~~~ main.c:88:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 88 | fscanf(in, "%c", &v[k]); | ^~~~~~~~~~~~~~~~~~~~~~~ main.c:167:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 167 | fscanf(in, "%d%d%d", &lin, &lin2, &col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:169:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 169 | fscanf(in, "%c", &x); | ^~~~~~~~~~~~~~~~~~~~ main.c:175:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 175 | fscanf(in, "%s", &v); | ^~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 245 kb OK 10
4 1 ms 245 kb OK 10
5 1 ms 249 kb OK 10
6 49 ms 249 kb OK 10
7 89 ms 249 kb OK 10
8 119 ms 249 kb OK 10
9 298 ms 245 kb OK 10
10 369 ms 245 kb OK 10
Punctaj total 100