Borderou de evaluare (job #1653597)

Utilizator pas.andreiPopovici Andrei-Sorin pas.andrei Data 16 martie 2016 11:47:36
Problema Trie Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:47:6: warning: unused variable ‘n’ [-Wunused-variable] int n, i, nr, sum=0,win,x, q; ^ user.cpp:47:9: warning: unused variable ‘i’ [-Wunused-variable] int n, i, nr, sum=0,win,x, q; ^ user.cpp:47:12: warning: unused variable ‘nr’ [-Wunused-variable] int n, i, nr, sum=0,win,x, q; ^ user.cpp:47:16: warning: unused variable ‘sum’ [-Wunused-variable] int n, i, nr, sum=0,win,x, q; ^ user.cpp:47:22: warning: unused variable ‘win’ [-Wunused-variable] int n, i, nr, sum=0,win,x, q; ^ user.cpp:47:26: warning: unused variable ‘x’ [-Wunused-variable] int n, i, nr, sum=0,win,x, q; ^ user.cpp: In function ‘void insert_word(trie*, int)’: user.cpp:67:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos == s.size()) { ^ user.cpp:73:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(nod->fiu[ch] == NULL) { ^ user.cpp:74:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] nod->fiu[ch]=new trie; ^ user.cpp:78:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] insert_word(nod->fiu[ch], pos+1); ^ user.cpp: In function ‘int delete_word(trie*, int)’: user.cpp:84:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos == s.size()) ^ user.cpp:86:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] else if(delete_word(nod->fiu[ch], pos+1)) { ^ user.cpp:88:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] nod->fiu[ch] = NULL; ^ user.cpp: In function ‘int nr_words(trie*, int)’: user.cpp:99:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos == s.size()) ^ user.cpp: In function ‘int prefix_length(trie*, int)’: user.cpp:107:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos == s.size() || nod->fiu[s[pos]-'a'] == NULL) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms412kbOK55
20ms420kbOK55
30ms436kbOK55
40ms436kbOK55
50ms436kbOK55
60ms444kbOK55
74ms460kbOK55
84ms456kbOK55
912ms596kbOK55
1016ms1088kbOK55
1120ms488kbOK55
1236ms1792kbOK55
1344ms1544kbOK55
1444ms704kbOK55
1552ms676kbOK510
16104ms10260kbOK5
1780ms460kbOK510
18116ms7600kbOK5
1964ms460kbOK510
20116ms13644kbOK5
Punctaj total100

Ceva nu functioneaza?