Borderou de evaluare (job #785241)

Utilizator avatar coldsh_1 Marcovici Andrei coldsh_1 IP ascuns
Problemă Căutare binară Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 1 sept. 2024 16:31:35 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:22:23: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'short int *' [-Wformat=] 22 | fscanf(fin, "%d%d", &x, &y); | ~^ ~~ | | | | int * short int * | %hd main.c:22:25: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'short int *' [-Wformat=] 22 | fscanf(fin, "%d%d", &x, &y); | ~^ ~~ | | | | int * short int * | %hd main.c:41:34: warning: format '%d' expects argument of type 'int', but argument 3 has type 'short int *' [-Wformat=] 41 | fprintf( fout, "%d", &poz2); | ~^ ~~~~~ | | | | int short int * | %hn main.c:16:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:18:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 18 | fscanf(fin, "%d", &a[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:20:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | fscanf(fin, "%d", &m); | ^~~~~~~~~~~~~~~~~~~~~ main.c:22:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 22 | fscanf(fin, "%d%d", &x, &y); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:68:13: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 68 | fprintf( fout, "%d", poz); | ^~~~~~~~~~~~~~~~~~~~~~~~~ main.c:12:21: note: 'poz' was declared here 12 | short int ok=0, poz, poz2, x, y; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Incorect 0
2 1 ms 245 kb Incorect 0
3 1 ms 245 kb Incorect 0
4 9 ms 221 kb Incorect 0
5 39 ms 380 kb Incorect 0
6 139 ms 368 kb Incorect 0
7 359 ms 528 kb Time limit exceeded 0
8 359 ms 765 kb Time limit exceeded 0
9 359 ms 503 kb Time limit exceeded 0
10 359 ms 507 kb Time limit exceeded 0
Punctaj total 0