Pagini recente » Borderou de evaluare (job #890430) | Borderou de evaluare (job #282049) | Borderou de evaluare (job #2272790)
Borderou de evaluare (job #2272790)
Raport evaluator
Compilare:
main.cpp: In function 'void add(Trie*, int)':
main.cpp:22:25: warning: array subscript has type 'char' [-Wchar-subscripts]
if(nod -> son[ch] == NULL) {
^
main.cpp:23:26: warning: array subscript has type 'char' [-Wchar-subscripts]
nod -> son[ch] = new Trie;
^
main.cpp:25:26: warning: array subscript has type 'char' [-Wchar-subscripts]
add(nod -> son[ch], pos + 1);
^
main.cpp: In function 'void dfs(Trie*, int)':
main.cpp:34:18: warning: unused variable 'sz_max' [-Wunused-variable]
int tot = 0, sz_max = 0, id = -1;
^~~~~~
main.cpp:34:30: warning: unused variable 'id' [-Wunused-variable]
int tot = 0, sz_max = 0, id = -1;
^~
main.cpp: In function 'int main()':
main.cpp:89:31: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d %d " ,&n,&k);
^
main.cpp:91:29: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(str, MAXN, fi);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 5 |
2 | 2ms | 131kb | OK | 5 |
3 | 3ms | 131kb | OK | 5 |
4 | 3ms | 131kb | OK | 5 |
5 | 3ms | 131kb | OK | 5 |
6 | 2ms | 131kb | OK | 5 |
7 | 7ms | 786kb | OK | 5 |
8 | 7ms | 786kb | OK | 5 |
9 | 7ms | 786kb | OK | 5 |
10 | 7ms | 786kb | OK | 5 |
11 | 87ms | 12058kb | OK | 5 |
12 | 98ms | 12976kb | OK | 5 |
13 | 104ms | 13631kb | OK | 5 |
14 | 94ms | 13500kb | OK | 5 |
15 | 100ms | 13107kb | OK | 5 |
16 | 102ms | 13762kb | OK | 5 |
17 | 354ms | 75497kb | OK | 5 |
18 | 352ms | 76546kb | OK | 5 |
19 | 336ms | 71041kb | OK | 5 |
20 | 337ms | 71172kb | OK | 5 |
Punctaj total | 100 |