Borderou de evaluare (job #1572458)

Utilizator RazvanR104Razvan-Andrei Ciocoiu RazvanR104 Data 18 ianuarie 2016 22:16:32
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:54:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] ++cnt[index][str[j]]; ^ user.cpp:57: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:74:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(line); ^ /tmp/cc7QMD9l.o: In function `main': user.cpp:(.text.startup+0x34d): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1976kbOK10
20ms2028kbOK10
312ms2192kbOK10
428ms2072kbOK10
576ms2028kbOK10
6124ms2436kbOK10
7280ms2676kbOK10
8424ms2908kbOK10
9684ms3152kbOK10
10Depăşit3372kbTime limit exceeded.0
Punctaj total90

Ceva nu functioneaza?