Borderou de evaluare (job #2014950)

Utilizator PopoviciRobertPopovici Robert PopoviciRobert Data 24 august 2017 18:10:32
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘void add(Trie*, char*, int)’: user.cpp:25:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(nod -> son[*str] == NULL) ^ user.cpp:26:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] nod -> son[*str] = new Trie; ^ user.cpp:27:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] add(nod -> son[*str], str + 1, pos); ^ user.cpp: In function ‘void check(Trie*, char*)’: user.cpp:34:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(nod -> son[*str] != NULL) ^ user.cpp:35:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] check(nod -> son[*str], str + 1); ^ user.cpp: In function ‘int main()’: user.cpp:54:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d " ,&n); ^ user.cpp:56:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%s " ,str); ^ user.cpp:64:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d " ,&m); ^ user.cpp:66:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%s " ,str); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms488kbOK10
20ms888kbOK10
34ms2572kbOK10
440ms14028kbOK10
5188ms66476kbOK10
6Depăşit82980kbTime limit exceeded.0
7Depăşit109428kbTime limit exceeded.0
8Depăşit111940kbTime limit exceeded.0
9Depăşit106784kbTime limit exceeded.0
10Depăşit109824kbTime limit exceeded.0
Punctaj total50

Ceva nu functioneaza?