Borderou de evaluare (job #603619)

Utilizator avatar alex_n Neacsu Alexandru Bogdan alex_n IP ascuns
Problemă Bancomat (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 13 aug. 2021 11:00:21 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:11:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 11 | fscanf("%d\n",c); | ^~~~~~ | | | char * In file included from main.c:1: /usr/include/stdio.h:391:37: note: expected 'FILE * restrict' but argument is of type 'char *' 391 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:11:19: warning: passing argument 2 of 'fscanf' makes pointer from integer without a cast [-Wint-conversion] 11 | fscanf("%d\n",c); | ^ | | | int In file included from main.c:1: /usr/include/stdio.h:392:29: note: expected 'const char * restrict' but argument is of type 'int' 392 | const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:8:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | fscanf( fin, "%d\n%d/n", &a, &b); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf("%d\n",c); | ^~~~~~~~~~~~~~~~ main.c:12:9: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized] 12 | if(c%10==2) { | ~^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 131 kb Incorect 0
2 1 ms 131 kb Incorect 0
3 1 ms 131 kb Incorect 0
4 1 ms 131 kb Incorect 0
5 1 ms 131 kb Incorect 0
6 1 ms 131 kb Incorect 0
7 1 ms 131 kb Incorect 0
8 1 ms 131 kb Incorect 0
9 1 ms 131 kb Incorect 0
10 1 ms 131 kb Incorect 0
Punctaj total 0