Pagini recente » Borderou de evaluare (job #2259621) | Borderou de evaluare (job #2220318) | Borderou de evaluare (job #1572786) | Borderou de evaluare (job #199513) | Borderou de evaluare (job #2014962)
Borderou de evaluare (job #2014962)
Raport evaluator
Compilare:
user.cpp: In function ‘void add(Trie*, char*, int)’:
user.cpp:30:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(nod -> son[*str] == NULL)
^
user.cpp:31:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nod -> son[*str] = new Trie;
^
user.cpp:32:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(nod -> son[*str] -> cnt >= pos - 1)
^
user.cpp:33:32: 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:42:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(nod -> son[*str] != NULL && nod -> son[*str] -> cnt >= n)
^
user.cpp:42:55: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(nod -> son[*str] != NULL && nod -> son[*str] -> cnt >= n)
^
user.cpp:43:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
check(nod -> son[*str], str + 1);
^
user.cpp: In function ‘int main()’:
user.cpp:52: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:54: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:62: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:64: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 |
1 | 0ms | 448kb | OK | 10 |
2 | 0ms | 512kb | OK | 10 |
3 | 0ms | 596kb | OK | 10 |
4 | 0ms | 1080kb | OK | 10 |
5 | 4ms | 1892kb | OK | 10 |
6 | 4ms | 1992kb | OK | 10 |
7 | 12ms | 5520kb | OK | 10 |
8 | 16ms | 5860kb | OK | 10 |
9 | 16ms | 6060kb | OK | 10 |
10 | 16ms | 5636kb | OK | 10 |
Punctaj total | 100 |