Borderou de evaluare (job #1211967)

Utilizator BlueStrutAndrei Prahoveanu BlueStrut Data 23 iulie 2014 16:33:06
Problema Texttrim Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("texttrim.in","r",stdin); ^ user.cpp:9:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("texttrim.out","w",stdout); ^ user.cpp:10:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i=0;i<=26;i++) scanf("%d", &a[i]); ^ user.cpp:11:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); gets(s); n=strlen(s); scanf("%d", &w); poz=0; lg=0; ^ user.cpp:11:25: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); gets(s); n=strlen(s); scanf("%d", &w); poz=0; lg=0; ^ user.cpp:11:55: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); gets(s); n=strlen(s); scanf("%d", &w); poz=0; lg=0; ^ /tmp/cc0hTCph.o: In function `main': user.cpp:(.text.startup+0x9d): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms268kbIncorect00
20ms264kbIncorect0
30ms268kbIncorect0
40ms244kbOK10
50ms260kbIncorect0
60ms264kbIncorect0
70ms268kbIncorect0
80ms264kbIncorect0
90ms264kbIncorect0
100ms260kbIncorect0
Punctaj total0

Ceva nu functioneaza?