Borderou de evaluare (job #1572442)

Utilizator RazvanR104Razvan-Andrei Ciocoiu RazvanR104 Data 18 ianuarie 2016 22:09:55
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:47:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] ++cnt[index][str[j]]; ^ user.cpp:50: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:67:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(line); ^ /tmp/ccuQyBeU.o: In function `main': user.cpp:(.text.startup+0x32a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1980kbOK10
20ms2024kbOK10
312ms2196kbOK10
424ms2076kbOK10
576ms2020kbOK10
6136ms2436kbOK10
7304ms2668kbOK10
8460ms2908kbOK10
9748ms3148kbOK10
10Depăşit3372kbTime limit exceeded.0
Punctaj total90

Ceva nu functioneaza?