Pagini recente » Borderou de evaluare (job #2399371) | Borderou de evaluare (job #3264395) | Borderou de evaluare (job #2091337) | Monitorul de evaluare | Borderou de evaluare (job #2450336)
Borderou de evaluare (job #2450336)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:73:17: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[100002]' [-Wformat=]
scanf("%s", &s);
^
main.cpp:77:18: warning: array subscript has type 'char' [-Wchar-subscripts]
solution[s[i]] = (solution[s[i]] + comb(n - 1, i)) % MOD;
^
main.cpp:77:36: warning: array subscript has type 'char' [-Wchar-subscripts]
solution[s[i]] = (solution[s[i]] + comb(n - 1, i)) % MOD;
^
main.cpp:81:21: warning: array subscript has type 'char' [-Wchar-subscripts]
k += (solution[c] > 0);
^
main.cpp:86:19: warning: array subscript has type 'char' [-Wchar-subscripts]
if (solution[c])
^
main.cpp:87:38: warning: array subscript has type 'char' [-Wchar-subscripts]
printf("%c %d\n", c, solution[c]);
^
main.cpp:67:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("codificare.in", "r", stdin);
^
main.cpp:68:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("codificare.out", "w", stdout);
^
main.cpp:70:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:73:18: 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 | 2ms | 131kb | Incorect | 0 |
| 2 | 2ms | 131kb | Incorect | 0 |
| 3 | 3ms | 131kb | OK | 5 |
| 4 | 2ms | 131kb | Incorect | 0 |
| 5 | 2ms | 131kb | Incorect | 0 |
| 6 | 2ms | 131kb | Incorect | 0 |
| 7 | 2ms | 131kb | Incorect | 0 |
| 8 | 2ms | 131kb | Incorect | 0 |
| 9 | 2ms | 131kb | Incorect | 0 |
| 10 | 2ms | 131kb | Incorect | 0 |
| 11 | 7ms | 524kb | Incorect | 0 |
| 12 | 5ms | 393kb | Incorect | 0 |
| 13 | 7ms | 524kb | Incorect | 0 |
| 14 | 6ms | 393kb | Incorect | 0 |
| 15 | 7ms | 524kb | Incorect | 0 |
| 16 | 8ms | 655kb | Incorect | 0 |
| 17 | 5ms | 393kb | Incorect | 0 |
| 18 | 4ms | 262kb | Incorect | 0 |
| 19 | 4ms | 262kb | Incorect | 0 |
| 20 | 7ms | 524kb | Incorect | 0 |
| Punctaj total | 5 |