Borderou de evaluare (job #1874842)

Utilizator NicusorTelescu Nicolae Nicusor Data 10 februarie 2017 14:45:28
Problema Gard 5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:16:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gard5.in","r",stdin); ^ user.cpp:17:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gard5.out","w",stdout); ^ user.cpp:20:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:24:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccTv40my.o: In function `main': user.cpp:(.text.startup+0xd4): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbCorect!10
20ms276kbRaspuns gresit!0
30ms272kbRaspuns gresit!0
40ms272kbRaspuns gresit!0
50ms276kbRaspuns gresit!0
60ms276kbRaspuns gresit!0
70ms268kbRaspuns gresit!0
80ms272kbRaspuns gresit!0
90ms272kbRaspuns gresit!0
100ms268kbCorect!10
Punctaj total20

Ceva nu functioneaza?