Pagini recente » Borderou de evaluare (job #712047) | Borderou de evaluare (job #1986464) | Borderou de evaluare (job #2947056) | Borderou de evaluare (job #939091) | Borderou de evaluare (job #2370043)
Borderou de evaluare (job #2370043)
Raport evaluator
Compilare:
main.cpp: In function 'void trieAdd(TRIE*, char*)':
main.cpp:27:34: warning: NULL used in arithmetic [-Wpointer-arith]
for (int it = 0; word[it] != NULL; ++it) {
^~~~
main.cpp: In function 'int trieCount(TRIE*, char*)':
main.cpp:58:46: warning: NULL used in arithmetic [-Wpointer-arith]
for (it = 0; root != NULL && word[it] != NULL; ++it) {
^~~~
main.cpp:62:24: warning: NULL used in arithmetic [-Wpointer-arith]
return word[it] != NULL || root == NULL ? 0 : root->apparitions;
^~~~
main.cpp: In function 'int prefixCount(TRIE*, char*)':
main.cpp:68:50: warning: NULL used in arithmetic [-Wpointer-arith]
for (int it = 0; root != NULL && word[it] != NULL; ++it) {
^~~~
main.cpp: In function 'int main()':
main.cpp:91:13: warning: unused variable 'a' [-Wunused-variable]
int a = 3;
^
main.cpp:85:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("trie.in", "r", stdin);
^
main.cpp:86:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("trie.out", "w", stdout);
^
main.cpp:89:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %s\n", &operation, word);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 2ms | 131kb | OK | 5 | 5 |
| 2 | 2ms | 131kb | OK | 5 | 5 |
| 3 | 3ms | 131kb | OK | 5 | 5 |
| 4 | 3ms | 131kb | OK | 5 | 5 |
| 5 | 3ms | 131kb | OK | 5 | 5 |
| 6 | 4ms | 131kb | OK | 5 | 5 |
| 7 | 7ms | 262kb | OK | 5 | 5 |
| 8 | 9ms | 131kb | OK | 5 | 5 |
| 9 | 14ms | 524kb | OK | 5 | 5 |
| 10 | 20ms | 1441kb | OK | 5 | 5 |
| 11 | 23ms | 262kb | OK | 5 | 5 |
| 12 | 44ms | 2752kb | OK | 5 | 5 |
| 13 | 50ms | 2359kb | OK | 5 | 5 |
| 14 | 48ms | 655kb | OK | 5 | 5 |
| 15 | 58ms | 655kb | OK | 5 | 10 |
| 16 | 144ms | 18939kb | OK | 5 |
| 17 | 78ms | 262kb | OK | 5 | 10 |
| 18 | 143ms | 13893kb | OK | 5 |
| 19 | 56ms | 262kb | OK | 5 | 0 |
| 20 | 114ms | 20496kb | Memory limit exceeded | 0 |
| Punctaj total | 90 |