Borderou de evaluare (job #2019913)

Utilizator stefdascalescuStefan Dascalescu stefdascalescu Data 8 septembrie 2017 20:15:05
Problema Nunta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] scanf("%d",&n); ^ user.cpp:23:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] nr=b[j]; ^ user.cpp:25:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] b[j]+=a[j]; ^ user.cpp:25:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] b[j]+=a[j]; ^ user.cpp:26:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[j]=nr; ^ user.cpp:30:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(b[j]>9) ^ user.cpp:33:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] b[j]-=10; ^ user.cpp:39:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] q=b[i]+'0'; ^ user.cpp:6:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nunta.in","r",stdin); ^ user.cpp:7:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nunta.out","w",stdout); ^ user.cpp:8:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbOK10
20ms256kbOK10
30msDepăşitMemory limit exceeded.0
40msDepăşitMemory limit exceeded.0
50msDepăşitMemory limit exceeded.0
60msDepăşitMemory limit exceeded.0
70msDepăşitMemory limit exceeded.0
80ms256kbIncorect0
90msDepăşitMemory limit exceeded.0
100msDepăşitMemory limit exceeded.0
Punctaj total20

Ceva nu functioneaza?