Borderou de evaluare (job #797249)

Utilizator avatar Eric_Radavoi Radavoi Eric Andrei Eric_Radavoi IP ascuns
Problemă Cifru2 (clasa a 6-a) Compilator c-32
Rundă Concurs 02 | IQ Academy | clasa a 6-a Status evaluat
Dată 23 nov. 2024 18:27:48 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf (fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:16:10: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | fscanf (fin, "%d", &cifre[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:970, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:50:5: /usr/include/bits/stdio2.h:111:10: warning: 'ci' 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:9:18: note: 'ci' was declared here 9 | int n, i, j, ci, nr, c, maxi = 0, mini = 100001, comb = 1; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 2 ms 245 kb OK 10
3 1 ms 245 kb OK 10
4 1 ms 245 kb OK 10
5 9 ms 249 kb OK 10
6 19 ms 512 kb OK 10
7 29 ms 503 kb OK 10
8 29 ms 507 kb OK 10
9 39 ms 507 kb OK 10
10 1 ms 507 kb OK 10
Punctaj total 100