Borderou de evaluare (job #1472891)

Utilizator cojocarugabiReality cojocarugabi Data 17 august 2015 23:20:08
Problema Swap Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:87:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (int i = 1;i <= n;++i) ++r[a[i]],--r[b[i]]; ^ user.cpp:87:50: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (int i = 1;i <= n;++i) ++r[a[i]],--r[b[i]]; ^ user.cpp:91:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[b[i]].push(i); ^ user.cpp:93:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] p[i] = v[a[i]].front(),v[a[i]].pop(); ^ user.cpp:93:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] p[i] = v[a[i]].front(),v[a[i]].pop(); ^ user.cpp:83:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("swap.in","r",stdin); ^ user.cpp:84:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a+1);gets(b+1); ^ user.cpp:84:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a+1);gets(b+1); ^ /tmp/ccpta0hO.o: In function `main': user.cpp:(.text.startup+0x39): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms452kbOK10
20ms440kbOK10
30ms476kbOK10
40ms472kbOK10
5Depăşit836kbTime limit exceeded.0
648ms1044kbOK10
712ms1028kbOK10
828ms1028kbOK10
916ms1064kbOK10
1012ms1036kbOK10
Punctaj total90

Ceva nu functioneaza?