Pagini recente » Borderou de evaluare (job #1043137) | Borderou de evaluare (job #583501) | Borderou de evaluare (job #418125) | Borderou de evaluare (job #2781007) | Borderou de evaluare (job #1481154)
Borderou de evaluare (job #1481154)
Raport evaluator
Compilare:
user.cpp: In constructor ‘trie::trie()’:
user.cpp:23:40: warning: passing NULL to non-pointer argument 2 of ‘void* memset(void*, int, size_t)’ [-Wconversion-null]
memset(child, NULL, sizeof(child));
^
user.cpp: In function ‘void init()’:
user.cpp:40:11: warning: array subscript has type ‘char’ [-Wchar-subscripts]
type[i] = i - 'A' + 1;
^
user.cpp:43:11: warning: array subscript has type ‘char’ [-Wchar-subscripts]
type[i] = i - 'A' - 5;
^
user.cpp: In function ‘void add(trie*, char*, int)’:
user.cpp:49:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
int c = type[*p];
^
user.cpp: In function ‘int main()’:
user.cpp:115:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
c = type[s[i]];
^
user.cpp:92:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d\n", &N);
^
user.cpp:100:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d\n", &M);
^
user.cpp:102:29: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(word, Smerenie, f);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 360kb | OK | 10 |
2 | 0ms | 316kb | OK | 10 |
3 | 0ms | 344kb | OK | 10 |
4 | 12ms | 708kb | OK | 10 |
5 | 16ms | 3392kb | OK | 10 |
6 | 16ms | 3416kb | OK | 10 |
7 | 16ms | 3448kb | OK | 10 |
8 | 284ms | 51332kb | OK | 10 |
9 | 344ms | 58188kb | OK | 10 |
10 | 44ms | 4768kb | OK | 10 |
Punctaj total | 100 |