Pagini recente » Borderou de evaluare (job #2153843) | Borderou de evaluare (job #2890787) | Borderou de evaluare (job #1716386) | Borderou de evaluare (job #2897314) | Borderou de evaluare (job #2251019)
Borderou de evaluare (job #2251019)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:41:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[500]’ [-Wformat=]
scanf("%s", &str);
^
user.cpp:46:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < strlen(str); ++i) {
~~^~~~~~~~~~~~~
user.cpp:47:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (cache[str[i]] == 0) {
^
user.cpp:50:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (cache[str[i]] == 1) {
^
user.cpp:53:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cache[str[i]]++;
^
user.cpp:35:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cod2.in", "r", stdin);
^
user.cpp:36:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cod2.out", "w", stdout);
^
user.cpp:40:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:41:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &str);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 880kb | OK | 10 |
2 | 0ms | 752kb | OK | 10 |
3 | 0ms | 752kb | OK | 10 |
4 | 0ms | 812kb | OK | 10 |
5 | 0ms | 756kb | OK | 10 |
6 | 0ms | 880kb | OK | 10 |
7 | 0ms | 756kb | OK | 10 |
8 | 0ms | 756kb | OK | 10 |
9 | 0ms | 864kb | OK | 10 |
10 | 0ms | 880kb | OK | 10 |
Punctaj total | 100 |