Borderou de evaluare (job #859425)

Utilizator avatar vector cozma victor sebastian vector IP ascuns
Problemă Fact1 (clasa a 9-a) Compilator c
Rundă Tema 17 Clasa a 6-a Status evaluat
Dată 22 apr. 2026 19:54:21 Scor 42

Raport evaluator

Compilare: main.c: In function 'main': main.c:9:19: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] 9 | fscanf(fin, "%d", &n); | ~^ ~~ | | | | | long long int * | int * | %lld main.c:32:29: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 32 | fprintf(fout, "%d", out); | ~^ ~~~ | | | | int long long int | %lld main.c:8:18: warning: unused variable 'nr' [-Wunused-variable] 8 | long long p, nr=5, n, put=5, st, dr, mij=-1, out; | ^~ main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:970, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:32:13: /usr/include/bits/stdio2.h:111:10: warning: 'out' may be used uninitialized [-Wmaybe-uninitialized] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:8:50: note: 'out' was declared here 8 | long long p, nr=5, n, put=5, st, dr, mij=-1, out; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 0 ms 292 kb Raspuns incorect 0
2 1 ms 508 kb Corect! 5
3 1 ms 508 kb Raspuns incorect 0
4 1 ms 508 kb Corect! 5
5 0 ms 508 kb Raspuns incorect 0
6 1 ms 508 kb Raspuns incorect 0
7 0 ms 292 kb Corect! 5
8 1 ms 508 kb Corect! 5
9 0 ms 292 kb Raspuns incorect 0
10 0 ms 292 kb Raspuns incorect 0
11 0 ms 292 kb Corect! 5
12 1 ms 508 kb Raspuns incorect 0
13 1 ms 508 kb Raspuns incorect 0
14 1 ms 508 kb Raspuns incorect 0
15 0 ms 292 kb Raspuns incorect 0
16 0 ms 292 kb Corect! 5
17 0 ms 292 kb Corect! 5
18 1 ms 508 kb Corect! 5
19 0 ms 508 kb Corect! 5
20 0 ms 292 kb Raspuns incorect 0
Penalizare: 6% (pentru 2 submisie/ii) 6%
Punctaj total 42