Borderou de evaluare (job #810751)

Utilizator avatar andrei-raileanu-szeles Andrei Raileanu Szeles andrei-raileanu-szeles IP ascuns
Problemă Grad1 (clasa a 6-a) Compilator c-32
Rundă Tema 30 Clasa a 6-a Status evaluat
Dată 22 feb. 2025 11:02:46 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(in,"%d%d",&n,&k); | ^~~~~~~~~~~~~~~~~~~~~~~ main.c:14:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf(in,"%d",&v[i]); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:970, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:62:5: /usr/include/bits/stdio2.h:111:10: warning: 'nrmax' 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:11:37: note: 'nrmax' was declared here 11 | int n,k,i,j,l,nr=0,max=0,max2=0,nrmax; | ^~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 507 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 245 kb OK 10
4 9 ms 270 kb OK 10
5 239 ms 249 kb OK 10
6 489 ms 249 kb OK 10
7 729 ms 249 kb OK 10
8 659 ms 249 kb OK 10
9 879 ms 249 kb OK 10
10 539 ms 245 kb OK 10
Punctaj total 100