Borderou de evaluare (job #785233)

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 14:58:08 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:40:34: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int *' [-Wformat=] 40 | fprintf( fout, "%d", &poz2); | ~^ ~~~~~ | | | | int int * | %n main.c:15:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:17:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | fscanf(fin, "%d", &a[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:19:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 19 | fscanf(fin, "%d", &m); | ^~~~~~~~~~~~~~~~~~~~~ main.c:21:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | fscanf(fin, "%d%d", &x, &y); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:67:13: /usr/include/bits/stdio2.h:79:10: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:11:33: note: 'poz' was declared here 11 | int n, i, m, x, y, j, ok=0, poz, poz2; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Incorect 0
2 3 ms 389 kb Incorect 0
3 1 ms 241 kb Incorect 0
4 19 ms 225 kb Incorect 0
5 359 ms 184 kb Time limit exceeded 0
6 357 ms 421 kb Time limit exceeded 0
7 359 ms 507 kb Time limit exceeded 0
8 359 ms 503 kb Time limit exceeded 0
9 359 ms 507 kb Time limit exceeded 0
10 359 ms 507 kb Time limit exceeded 0
Punctaj total 0