Borderou de evaluare (job #1472894)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:86:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (int i = 1;i <= n;++i) ++r[a[i]],--r[b[i]]; ^ user.cpp:86:50: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (int i = 1;i <= n;++i) ++r[a[i]],--r[b[i]]; ^ user.cpp:90:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[b[i]].push(i); ^ user.cpp:95:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] int cnt = n - v[a[i]].front() + 1; ^ user.cpp:96:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] ans += query(cnt);update(cnt);v[a[i]].pop(); ^ user.cpp:82: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:83: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:83:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a+1);gets(b+1); ^ /tmp/ccDdlWtn.o: In function `main': user.cpp:(.text.startup+0x37): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms416kbIncorect0
20ms428kbOK10
30ms424kbIncorect0
40ms416kbIncorect0
50ms584kbIncorect0
60ms624kbIncorect0
70ms612kbIncorect0
80ms612kbIncorect0
90ms644kbIncorect0
100ms612kbIncorect0
Punctaj total10

Ceva nu functioneaza?