Borderou de evaluare (job #1885318)

Utilizator MirunaMMiruna Mitu MirunaM Data 19 februarie 2017 20:18:27
Problema Reteta2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 72

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:38:15: warning: NULL used in arithmetic [-Wpointer-arith] while(*p!=NULL){ ^ user.cpp:31:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reteta2.in","r",stdin); ^ user.cpp:32:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reteta2.out","w",stdout); ^ user.cpp:34:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/cc0BOu73.o: In function `main': user.cpp:(.text.startup+0x56): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms240kbOK!10
20ms244kbOK!10
30ms240kbAfisarea Ingredientelor gresita3
40ms240kbOK!10
50ms248kbAfisarea Ingredientelor gresita3
60ms244kbOK!10
70ms244kbOK!10
80ms248kbAfisarea Ingredientelor gresita3
90ms248kbAfisarea Ingredientelor gresita3
100ms244kbOK!10
Punctaj total72

Ceva nu functioneaza?