Pagini recente » Borderou de evaluare (job #2681595) | Borderou de evaluare (job #1317539)
Borderou de evaluare (job #1317539)
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:46: warning: array subscript has type ‘char’ [-Wchar-subscripts]
trans = trans * 100 + 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 | 284kb | OK | 5 |
| 3 | 20ms | 668kb | OK | 5 |
| 4 | 44ms | 1056kb | OK | 5 |
| 5 | 80ms | 1836kb | OK | 5 |
| 6 | 164ms | 3392kb | OK | 5 |
| 7 | 0ms | 268kb | OK | 5 |
| 8 | 0ms | 280kb | OK | 5 |
| 9 | 0ms | 284kb | OK | 5 |
| 10 | 4ms | 304kb | OK | 5 |
| 11 | 12ms | 344kb | OK | 5 |
| 12 | 28ms | 424kb | OK | 5 |
| 13 | 56ms | 576kb | OK | 5 |
| 14 | 112ms | 888kb | OK | 5 |
| 15 | 140ms | 1052kb | OK | 5 |
| 16 | 212ms | 1440kb | OK | 5 |
| 17 | 280ms | 1828kb | OK | 5 |
| 18 | Depăşit | 2220kb | Time limit exceeded. | 0 |
| 19 | Depăşit | 2764kb | Time limit exceeded. | 0 |
| 20 | Depăşit | 3384kb | Time limit exceeded. | 0 |
| Punctaj total | 85 |