Borderou de evaluare (job #1696068)

Utilizator LucianTLucian Trepteanu LucianT Data 28 aprilie 2016 13:07:37
Problema Swap Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:52:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] cat1[c][0]++; ^ user.cpp:53:12: warning: array subscript has type ‘char’ [-Wchar-subscripts] A[c][cat1[c][0]]=i; ^ user.cpp:53:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] A[c][cat1[c][0]]=i; ^ user.cpp:58:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] ap[c]++; ^ user.cpp:59:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] aux=ap[c]; ^ user.cpp:60:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] x[i]=A[c][aux]; ^ user.cpp:44: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:45:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("swap.out","w",stdout); ^ user.cpp:46:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a+1); ^ user.cpp:47:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(b+1); ^ /tmp/ccFfVx7V.o: In function `main': user.cpp:(.text.startup+0x56): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms836kbOK10
20ms820kbOK10
30ms860kbOK10
40ms1044kbOK10
54ms1260kbOK10
64ms1524kbOK10
78ms1568kbOK10
88ms1564kbOK10
98ms1552kbOK10
108ms1676kbOK10
Punctaj total100

Ceva nu functioneaza?