Borderou de evaluare (job #1779522)

Utilizator silkMarin Dragos silk Data 15 octombrie 2016 13:37:14
Problema Progresii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘void scrie(int)’: user.cpp:27:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(x) { a[++t] = x%10+'0'; x/=10; } ^ user.cpp:28:12: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] a[t+1] = NULL; ^ user.cpp:31:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] aux = a[i]; ^ user.cpp:32:12: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[i] = a[j]; ^ user.cpp:32:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[i] = a[j]; ^ user.cpp:33:12: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[j] = aux; ^ user.cpp: In function ‘void citeste(int&)’: user.cpp:15:49: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] if(++poz==DIM) fread(buff,1,DIM,stdin),poz=0; ^ user.cpp:20:53: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] if(++poz==DIM) fread(buff,1,DIM,stdin),poz=0; ^ user.cpp: In function ‘int main()’: user.cpp:40:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("progresii.in","r",stdin); ^ user.cpp:41:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("progresii.out","w",stdout); ^ user.cpp:46:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %lld %lld",&N,&M,&K,&L); ^ user.cpp:72:17: warning: ‘f’ may be used uninitialized in this function [-Wmaybe-uninitialized] v[i] = f; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
1Depăşit1024kbTime limit exceeded.00
2Depăşit1028kbTime limit exceeded.00
3Depăşit1024kbTime limit exceeded.00
4Depăşit1028kbTime limit exceeded.00
5144ms956kbOK1010
6Depăşit1000kbTime limit exceeded.00
70ms260kbOK1010
80ms252kbOK1010
90ms276kbOK1020
100ms256kbOK10
Punctaj total50

Ceva nu functioneaza?