Pagini recente » Borderou de evaluare (job #3168669) | Borderou de evaluare (job #2188235)
Borderou de evaluare (job #2188235)
Raport evaluator
Compilare:
user.cpp: In function ‘void add(Trie*, char*)’:
user.cpp:24:13: warning: NULL used in arithmetic [-Wpointer-arith]
if (*s == NULL) {
^~~~
user.cpp: In function ‘void solve(Trie*)’:
user.cpp:38:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (root->sons[i]->dp.size() > ans) {
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
user.cpp:59:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (root->dp.size() <= k)
~~~~~~~~~~~~~~~~^~~~
user.cpp: In function ‘int main()’:
user.cpp:72:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cli.in", "r", stdin);
^
user.cpp:73:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cli.out", "w", stdout);
^
user.cpp:77:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d ", &n, &k);
^
user.cpp:79:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1324kb | Incorect | 0 |
2 | 0ms | 1324kb | OK | 5 |
3 | 0ms | 1348kb | Incorect | 0 |
4 | 0ms | 1352kb | Incorect | 0 |
5 | 0ms | 1352kb | Incorect | 0 |
6 | 0ms | 1348kb | Incorect | 0 |
7 | 0ms | 1752kb | Incorect | 0 |
8 | 0ms | 1732kb | Incorect | 0 |
9 | 0ms | 1728kb | Incorect | 0 |
10 | 0ms | 1732kb | Incorect | 0 |
11 | 40ms | 8580kb | Incorect | 0 |
12 | 44ms | 9028kb | Incorect | 0 |
13 | 48ms | 9428kb | Incorect | 0 |
14 | 48ms | 9280kb | Incorect | 0 |
15 | 44ms | 9068kb | Incorect | 0 |
16 | 48ms | 9460kb | Incorect | 0 |
17 | 232ms | 47992kb | Incorect | 0 |
18 | 232ms | 48488kb | Incorect | 0 |
19 | 220ms | 45536kb | Incorect | 0 |
20 | 220ms | 45528kb | Incorect | 0 |
Punctaj total | 5 |