Pagini recente » Borderou de evaluare (job #2832185) | Borderou de evaluare (job #2765050) | Borderou de evaluare (job #3296313) | Borderou de evaluare (job #1135307) | Borderou de evaluare (job #1317544)
Borderou de evaluare (job #1317544)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:13:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[15]’ [-Wformat=]
scanf("%s", &dictionary);
^
user.cpp:16:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
letters_num[dictionary[i]] = prim_cost;
^
user.cpp:20:21: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[10]’ [-Wformat=]
scanf("%s", &cchar);
^
user.cpp:23:45: warning: array subscript has type ‘char’ [-Wchar-subscripts]
trans = trans * 13 + letters_num[cchar[j]];
^
user.cpp:10: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:11: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:12: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:13:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &dictionary);
^
user.cpp:20: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 | 272kb | OK | 5 |
| 3 | 12ms | 460kb | OK | 5 |
| 4 | 28ms | 660kb | OK | 5 |
| 5 | 60ms | 1052kb | OK | 5 |
| 6 | 120ms | 1828kb | OK | 5 |
| 7 | 0ms | 268kb | OK | 5 |
| 8 | 0ms | 268kb | OK | 5 |
| 9 | 0ms | 272kb | OK | 5 |
| 10 | 4ms | 280kb | OK | 5 |
| 11 | 8ms | 300kb | OK | 5 |
| 12 | 20ms | 336kb | OK | 5 |
| 13 | 40ms | 424kb | OK | 5 |
| 14 | 84ms | 576kb | OK | 5 |
| 15 | 108ms | 656kb | OK | 5 |
| 16 | 156ms | 848kb | OK | 5 |
| 17 | 216ms | 1044kb | OK | 5 |
| 18 | 260ms | 1236kb | OK | 5 |
| 19 | Depăşit | 1512kb | Time limit exceeded. | 0 |
| 20 | Depăşit | 1816kb | Time limit exceeded. | 0 |
| Punctaj total | 90 |