Borderou de evaluare (job #2007018)

Utilizator PopoviciRobertPopovici Robert PopoviciRobert Data 1 august 2017 17:24:18
Problema Subsir Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:33:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] nxta[ch][i] = i - 1; ^ user.cpp:35:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] nxta[ch][i] = nxta[ch][i - 1]; ^ user.cpp:35:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] nxta[ch][i] = nxta[ch][i - 1]; ^ user.cpp:42:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] nxtb[ch][i] = i - 1; ^ user.cpp:44:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] nxtb[ch][i] = nxtb[ch][i - 1]; ^ user.cpp:44:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] nxtb[ch][i] = nxtb[ch][i - 1]; ^ user.cpp:52:64: warning: array subscript has type ‘char’ [-Wchar-subscripts] len[i][j] = std::max(len[i][j], len[nxta[ch][i]][nxtb[ch][j]] + 1); ^ user.cpp:52:77: warning: array subscript has type ‘char’ [-Wchar-subscripts] len[i][j] = std::max(len[i][j], len[nxta[ch][i]][nxtb[ch][j]] + 1); ^ user.cpp:54:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(len[i][j] == len[nxta[ch][i]][nxtb[ch][j]] + 1) { ^ user.cpp:54:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(len[i][j] == len[nxta[ch][i]][nxtb[ch][j]] + 1) { ^ user.cpp:55:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] dp[i][j] += dp[nxta[ch][i]][nxtb[ch][j]]; ^ user.cpp:55:62: warning: array subscript has type ‘char’ [-Wchar-subscripts] dp[i][j] += dp[nxta[ch][i]][nxtb[ch][j]]; ^ user.cpp:66:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(len[i][j] == maxlen && std::max(len[nxta[a[i]][i]][j], len[i][nxtb[b[j]][j]]) < maxlen) { ^ user.cpp:66:87: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(len[i][j] == maxlen && std::max(len[nxta[a[i]][i]][j], len[i][nxtb[b[j]][j]]) < maxlen) { ^ user.cpp:25:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%s %s " , a + 1, b + 1); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms808kbWrong answer!0
20ms708kbOk!10
30ms688kbWrong answer!0
40ms848kbWrong answer!0
50ms604kbOk!10
64ms1664kbOk!10
70ms1348kbOk!10
88ms2492kbWrong answer!0
94ms1544kbOk!10
108ms2460kbOk!10
Punctaj total60

Ceva nu functioneaza?