Pagini recente » Borderou de evaluare (job #1091403) | Borderou de evaluare (job #261439) | Borderou de evaluare (job #2780618) | Borderou de evaluare (job #686515) | Borderou de evaluare (job #1317542)
Borderou de evaluare (job #1317542)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:14:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[15]’ [-Wformat=]
scanf("%s", &dictionary);
^
user.cpp:18:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
letters_num[dictionary[i]] = prim_cost;
^
user.cpp:22:21: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[10]’ [-Wformat=]
scanf("%s", &cchar);
^
user.cpp:26:45: warning: array subscript has type ‘char’ [-Wchar-subscripts]
trans = trans * 13 + letters_num[cchar[j]];
^
user.cpp:11:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("zimeria.in", "r", stdin);
^
user.cpp:12:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zimeria.out", "w", stdout);
^
user.cpp:13:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &p, &n);
^
user.cpp:14:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &dictionary);
^
user.cpp:22:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &cchar);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | OK | 5 |
2 | 0ms | 280kb | OK | 5 |
3 | 12ms | 468kb | OK | 5 |
4 | 28ms | 664kb | OK | 5 |
5 | 60ms | 1056kb | OK | 5 |
6 | 124ms | 1828kb | OK | 5 |
7 | 0ms | 268kb | OK | 5 |
8 | 0ms | 276kb | OK | 5 |
9 | 0ms | 280kb | OK | 5 |
10 | 4ms | 284kb | OK | 5 |
11 | 8ms | 304kb | OK | 5 |
12 | 20ms | 344kb | OK | 5 |
13 | 40ms | 424kb | OK | 5 |
14 | 80ms | 580kb | OK | 5 |
15 | 108ms | 656kb | OK | 5 |
16 | 152ms | 856kb | OK | 5 |
17 | 204ms | 1048kb | OK | 5 |
18 | 264ms | 1248kb | OK | 5 |
19 | Depăşit | 1516kb | Time limit exceeded. | 0 |
20 | Depăşit | 1816kb | Time limit exceeded. | 0 |
Punctaj total | 90 |