Borderou de evaluare (job #2272707)
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 'int main()':
main.cpp:78: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:80:29: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(str, MAXN, fi);
^
main.cpp: In function 'void dfs(Trie*, int)':
main.cpp:51:34: warning: 'id' may be used uninitialized in this function [-Wmaybe-uninitialized]
swap(nod -> dp, nod -> son[id] -> dp);
~~~~~~~~~~~~~^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Incorect | 0 |
2 | 2ms | 131kb | OK | 5 |
3 | 2ms | 131kb | Incorect | 0 |
4 | 3ms | 131kb | Incorect | 0 |
5 | 3ms | 131kb | Incorect | 0 |
6 | 2ms | 131kb | Incorect | 0 |
7 | 8ms | 786kb | OK | 5 |
8 | 8ms | 786kb | OK | 5 |
9 | 8ms | 786kb | OK | 5 |
10 | 8ms | 786kb | OK | 5 |
11 | 79ms | 10747kb | Incorect | 0 |
12 | 91ms | 11534kb | Incorect | 0 |
13 | 89ms | 12320kb | Incorect | 0 |
14 | 95ms | 11927kb | Incorect | 0 |
15 | 84ms | 11665kb | OK | 5 |
16 | 100ms | 12189kb | Incorect | 0 |
17 | 270ms | 63569kb | Incorect | 0 |
18 | 261ms | 64356kb | Incorect | 0 |
19 | 260ms | 59637kb | Incorect | 0 |
20 | 252ms | 59637kb | Incorect | 0 |
Punctaj total | 30 |