Borderou de evaluare (job #1191427)

Utilizator DenisacheDenis Ehorovici Denisache Data 27 mai 2014 16:45:02
Problema Dtcsu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dtcsu.in","r",stdin); ^ user.cpp:13:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dtcsu.out","w",stdout); ^ user.cpp:16:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(cmd); N=0; ^ user.cpp:21:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&Q); ^ user.cpp:24:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(cmd); N=0; ^ /tmp/cc9Z9mcT.o: In function `main': user.cpp:(.text.startup+0x6d): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
11940ms916kbOK20
22496ms916kbOK20
32276ms916kbOK20
41504ms908kbOK20
52112ms916kbIncorect0
Punctaj total80

Ceva nu functioneaza?