Borderou de evaluare (job #1943564)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 28 martie 2017 17:54:02
Problema Superbec Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:82:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(i<=30) S[i]=st[C[i]],D[i]=dr[C[i]]; ^ user.cpp:82:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(i<=30) S[i]=st[C[i]],D[i]=dr[C[i]]; ^ user.cpp:83:43: warning: array subscript has type ‘char’ [-Wchar-subscripts] else S[(i-1)%30+1]=max(st[C[i]],S[(i-1)%30+1]),D[(i-1)%30+1]=min(D[(i-1)%30+1],dr[C[i]]); ^ user.cpp:83:99: warning: array subscript has type ‘char’ [-Wchar-subscripts] else S[(i-1)%30+1]=max(st[C[i]],S[(i-1)%30+1]),D[(i-1)%30+1]=min(D[(i-1)%30+1],dr[C[i]]); ^ user.cpp:74:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&T); ^ user.cpp:77:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d\n",&N,&M); ^ user.cpp:78:28: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(C+1,100005,f); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘int main()’ at user.cpp:78:28: /usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
18ms264kbOK1020
216ms264kbOK10
3176ms264kbOK1030
4192ms268kbOK10
5204ms268kbOK10
6176ms268kbOK1020
7104ms272kbOK10
8268ms364kbOK1030
9280ms360kbOK10
10280ms356kbOK10
Punctaj total100

Ceva nu functioneaza?