Borderou de evaluare (job #1572466)

Utilizator RazvanR104Razvan-Andrei Ciocoiu RazvanR104 Data 18 ianuarie 2016 22:18:59
Problema Perb Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:30:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] str[i] = C[str[i]]; ^ user.cpp:56:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] ++cnt[index][str[j]]; ^ user.cpp:59:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (cnt[index][str[j]] > cnt[index][max_index[index]]) ^ user.cpp:26:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &N, &M); ^ user.cpp:27:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", str + 1); ^ user.cpp:76:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(line); ^ /tmp/cc1oxyZ0.o: In function `main': user.cpp:(.text.startup+0x35d): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1980kbOK10
20ms2032kbOK10
38ms2192kbOK10
424ms2076kbOK10
580ms2024kbOK10
6120ms2436kbOK10
7264ms2668kbOK10
8396ms2908kbOK10
9668ms3148kbOK10
10Depăşit3372kbTime limit exceeded.0
Punctaj total90

Ceva nu functioneaza?