Borderou de evaluare (job #2195162)

Utilizator mihai50000Mihai-Cristian Popescu mihai50000 Data 15 aprilie 2018 15:00:26
Problema Texttrim Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i = 0; i < strlen(a) && sum <= w; sum += l[a[i]], i++ ); ~~^~~~~~~~~~~ user.cpp:23:58: warning: array subscript has type ‘char’ [-Wchar-subscripts] for( int i = 0; i < strlen(a) && sum <= w; sum += l[a[i]], i++ ); ^ user.cpp:29:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int sum = 0, i = 0; i < strlen(a) ; i++) ~~^~~~~~~~~~~ user.cpp:31:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(sum + l[a[i]] <= w - 3) ^ user.cpp:34:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] sum += l[a[i]]; ^ user.cpp:20:6: warning: unused variable ‘i’ [-Wunused-variable] int i = -1; ^ user.cpp:21:6: warning: unused variable ‘s’ [-Wunused-variable] int s = 0; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms1380kbOK100
20ms1384kbOK10
30ms1380kbOK10
40ms1384kbOK10
54ms1412kbOK10
60ms1576kbOK10
74ms2360kbOK10
8Depăşit2360kbTime limit exceeded.0
9112ms2356kbOK10
10Depăşit2360kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?