Borderou de evaluare (job #603579)

Utilizator avatar ghica_amalia Ghica Amalia ghica_amalia IP ascuns
Problemă Bancomat (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 13 aug. 2021 09:36:40 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:10:19: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] 10 | fscanf(fin, "%d%d" , s , n); | ~^ ~ | | | | int * int main.c:10:21: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'int' [-Wformat=] 10 | fscanf(fin, "%d%d" , s , n); | ~^ ~ | | | | int * int main.c:12:21: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] 12 | fscanf(fin, "%d" , a); | ~^ ~ | | | | | int | int * main.c:23:13: warning: passing argument 1 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 23 | fprintf(rest , fout); | ^~~~ | | | int In file included from /usr/include/stdio.h:866, from main.c:1: /usr/include/bits/stdio2.h:103:27: note: expected 'FILE * restrict' but argument is of type 'int' 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:23:20: warning: passing argument 2 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 23 | fprintf(rest , fout); | ^~~~ | | | FILE * In file included from /usr/include/stdio.h:866, from main.c:1: /usr/include/bits/stdio2.h:103:60: note: expected 'const char * restrict' but argument is of type 'FILE *' 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin, "%d%d" , s , n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:12:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin, "%d" , a); | ^~~~~~~~~~~~~~~~~~~~~ main.c:10:5: warning: 's' is used uninitialized in this function [-Wuninitialized] 10 | fscanf(fin, "%d%d" , s , n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:10:5: warning: 'n' is used uninitialized in this function [-Wuninitialized] main.c:23:5: warning: 'rest' may be used uninitialized in this function [-Wmaybe-uninitialized] 23 | fprintf(rest , fout); | ^~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 131 kb Killed by Signal 11 0
2 1 ms 131 kb Killed by Signal 11 0
3 1 ms 131 kb Killed by Signal 11 0
4 1 ms 131 kb Killed by Signal 11 0
5 1 ms 131 kb Killed by Signal 11 0
6 1 ms 131 kb Killed by Signal 11 0
7 1 ms 131 kb Killed by Signal 11 0
8 1 ms 131 kb Killed by Signal 11 0
9 1 ms 131 kb Killed by Signal 11 0
10 1 ms 131 kb Killed by Signal 11 0
Punctaj total 0