Borderou de evaluare (job #782375)

Utilizator avatar TudorMit Mituca Tudor-Ionut TudorMit IP ascuns
Problemă Baza ascunsă (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 12 iul. 2024 12:53:49 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:27:18: warning: array subscript has type 'char' [-Wchar-subscripts] 27 | v[i]=frec[c]; | ^ main.c:28:16: warning: array subscript has type 'char' [-Wchar-subscripts] 28 | if(frec[c]>max){ | ^ main.c:29:21: warning: array subscript has type 'char' [-Wchar-subscripts] 29 | max=frec[c]; | ^ main.c:13:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf(fin,"%lld",&n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:35:18: warning: 's' is used uninitialized [-Wuninitialized] 35 | for(i=max+1;s<=n;i++){ | ~^~~ main.c:10:36: note: 's' was declared here 10 | long long n,i,x,y,max=-1,ci,pi,s; | ^ main.c:31:11: warning: pointer 'fin' may be used after 'fclose' [-Wuse-after-free] 31 | c=fgetc(fin); | ^~~~~~~~~~ main.c:14:5: note: call to 'fclose' here 14 | fclose(fin); | ^~~~~~~~~~~ main.c:24:7: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 24 | c=fgetc(fin); | ^~~~~~~~~~ main.c:14:5: note: call to 'fclose' here 14 | fclose(fin); | ^~~~~~~~~~~ main.c:23:5: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 23 | fgetc(fin); | ^~~~~~~~~~ main.c:14:5: note: call to 'fclose' here 14 | fclose(fin); | ^~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 249 kb Killed by Signal 11 0
2 1 ms 249 kb Killed by Signal 11 0
3 1 ms 512 kb Killed by Signal 11 0
4 1 ms 249 kb Killed by Signal 11 0
5 2 ms 249 kb Killed by Signal 11 0
6 1 ms 249 kb Killed by Signal 11 0
7 2 ms 249 kb Killed by Signal 11 0
8 2 ms 249 kb Killed by Signal 11 0
9 1 ms 249 kb Killed by Signal 11 0
10 1 ms 249 kb Killed by Signal 11 0
Punctaj total 0