Borderou de evaluare (job #1220110)

Utilizator geniucosOncescu Costin geniucos Data 16 august 2014 15:08:27
Problema Cstring Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:41:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cstring.in","r",stdin); ^ user.cpp:42:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cstring.out","w",stdout); ^ user.cpp:44:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:45:10: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a+1); ^ user.cpp:46:10: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(b+1); ^ user.cpp:47:10: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(c+1); ^ /tmp/ccG9Z1hv.o: In function `main': user.cpp:(.text.startup+0x7e): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms260kbRaspuns Gresit! Distanta obtinuta=7 Distanta corecta=50
20ms264kbOK!10
30ms264kbRaspuns Gresit! Distanta obtinuta=37 Distanta corecta=320
40ms264kbRaspuns Gresit! Distanta obtinuta=93 Distanta corecta=750
5116ms268kbRaspuns Gresit! Distanta obtinuta=325 Distanta corecta=3010
6Depăşit448kbTime limit exceeded.0
7Depăşit1228kbTime limit exceeded.0
8Depăşit2196kbTime limit exceeded.0
9Depăşit2880kbTime limit exceeded.0
10Depăşit3168kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?