Borderou de evaluare (job #2236969)

Utilizator DjokValeriu Motroi Djok Data 31 august 2018 09:46:50
Problema Virus Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void addWord(int)’: user.cpp:28:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!it->next[nextCh]) it->next[nextCh] = new node(it, nextCh); ^ user.cpp:28:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!it->next[nextCh]) it->next[nextCh] = new node(it, nextCh); ^ user.cpp:29:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] it = it->next[nextCh]; ^ user.cpp: In function ‘node* go(Node, char)’: user.cpp:44:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(x->go[c]) return x->go[c]; ^ user.cpp:44:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(x->go[c]) return x->go[c]; ^ user.cpp:45:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(x->next[c]) return x->go[c] = x->next[c]; ^ user.cpp:45:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(x->next[c]) return x->go[c] = x->next[c]; ^ user.cpp:45:45: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(x->next[c]) return x->go[c] = x->next[c]; ^ user.cpp:46:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!x->tata) return x->go[c] = x; ^ user.cpp:47:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] return x->go[c] = go(getLink(x), c); ^ user.cpp: In function ‘int main()’: user.cpp:51:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("virus.in", "r", stdin); ^ user.cpp:52:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("virus.out", "w", stdout); ^ user.cpp:53:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %s", &l, &n, text); ^ user.cpp:55:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %s", &l, s); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms1472kbOK10
28ms1364kbOK10
320ms1508kbOK10
4160ms26772kbOK10
5256ms42172kbOK10
6156ms26528kbOK10
7340ms51792kbOK10
8164ms26848kbOK10
920ms6536kbOK10
108ms2552kbOK10
Punctaj total100

Ceva nu functioneaza?