Borderou de evaluare (job #1707459)

Utilizator fanache99Constantin-Buliga Stefan fanache99 Data 25 mai 2016 10:10:21
Problema Lru Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:30:18: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] a[0]=b[0]=NULL; ^ user.cpp:42:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(pointer[b[i]]>removed){ ^ user.cpp:43:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] answer=answer+i-(pointer[b[i]]-out[b[i]]); ^ user.cpp:43:56: warning: array subscript has type ‘char’ [-Wchar-subscripts] answer=answer+i-(pointer[b[i]]-out[b[i]]); ^ user.cpp:44:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[pointer[b[i]]]=3; ^ user.cpp:46:56: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(b[i]!=j&&pointer[j]>pointer[b[i]]) ^ user.cpp:48:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] pointer[b[i]]--; ^ user.cpp:49:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(pointer[b[i]]>removed&&a[pointer[b[i]]]!=b[i]){ ^ user.cpp:49:60: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(pointer[b[i]]>removed&&a[pointer[b[i]]]!=b[i]){ ^ user.cpp:50:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(pointer[a[pointer[b[i]]]]<pointer[b[i]]) ^ user.cpp:50:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(pointer[a[pointer[b[i]]]]<pointer[b[i]]) ^ user.cpp:50:62: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(pointer[a[pointer[b[i]]]]<pointer[b[i]]) ^ user.cpp:51:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] out[b[i]]--; ^ user.cpp:52:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] pointer[b[i]]--; ^ user.cpp:7:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lru.in","r",stdin); ^ user.cpp:8:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lru.out","w",stdout); ^ user.cpp:11:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms288kbOK10
28ms352kbOK10
328ms492kbOK10
440ms588kbOK10
552ms636kbOK10
656ms680kbOK10
7224ms1856kbOK10
8256ms2048kbOK10
9280ms2240kbOK10
100ms288kbOK10
Punctaj total100

Ceva nu functioneaza?