Borderou de evaluare (job #1572452)

Utilizator RazvanR104Razvan-Andrei Ciocoiu RazvanR104 Data 18 ianuarie 2016 22:12:02
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:50:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] ++cnt[index][str[j]]; ^ user.cpp:53: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:70:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(line); ^ /tmp/ccBjpkIu.o: In function `main': user.cpp:(.text.startup+0x33d): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1980kbOK10
20ms2028kbOK10
312ms2192kbOK10
424ms2076kbOK10
580ms2028kbOK10
6132ms2436kbOK10
7300ms2676kbOK10
8452ms2912kbOK10
9740ms3152kbOK10
10Depăşit3372kbTime limit exceeded.0
Punctaj total90

Ceva nu functioneaza?