Borderou de evaluare (job #1321043)

Utilizator GheorgheMihaiMihai Gheorghe GheorgheMihai Data 18 ianuarie 2015 19:02:53
Problema Queue Status done
Runda Teme Pregatire ACM Unibuc 2014, Anul I Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:32:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("queue.in","r",stdin); ^ user.cpp:33:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("queue.out","w",stdout); ^ user.cpp:36:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d\n",&n); ^ user.cpp:41:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("p%c",&c); ^ user.cpp:45:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("sh_back(%d)\n",&x); ^ user.cpp:48:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (s); ^ /tmp/cczK3cXu.o: In function `main': user.cpp:(.text.startup+0x88): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbRaspuns corect!10
20ms288kbRaspuns corect!10
30ms280kbRaspuns corect!10
440ms308kbRaspuns corect!10
540ms316kbRaspuns corect!10
640ms308kbRaspuns corect!10
740ms304kbRaspuns corect!10
840ms316kbRaspuns corect!10
940ms316kbRaspuns corect!10
1040ms312kbRaspuns corect!10
Punctaj total100

Ceva nu functioneaza?