Borderou de evaluare (job #1362876)

Utilizator RazvanStStatescu Razvan RazvanSt Data 26 februarie 2015 16:14:12
Problema Reteta2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 34

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:41:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<strlen(r);i++) { ^ user.cpp:39:21: warning: unused variable ‘j’ [-Wunused-variable] int i,t=0,aux,inc=1,j,aux2; ^ user.cpp:40:6: warning: unused variable ‘ok’ [-Wunused-variable] bool ok; ^ user.cpp:34: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:37:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(r); ^ user.cpp: In function ‘int ins(std::string, int)’: user.cpp:17:15: warning: ‘z’ may be used uninitialized in this function [-Wmaybe-uninitialized] int j,z; ^ /tmp/ccDOMeSY.o: In function `main': user.cpp:(.text.startup+0x4d): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms416kbAfisarea Ingredientelor gresita3
20ms412kbAfisarea Ingredientelor gresita3
30ms416kbAfisarea Ingredientelor gresita3
40ms412kbOK!10
50ms416kbAfisarea Ingredientelor gresita3
60ms420kbAfisarea Ingredientelor gresita3
70ms416kbAfisarea Ingredientelor gresita3
80ms416kbAfisarea Ingredientelor gresita3
90ms416kbAfisarea Ingredientelor gresita3
100ms416kbRaspuns Gresit0
Punctaj total34

Ceva nu functioneaza?