Borderou de evaluare (job #1362870)

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

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/ccoGxVGk.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
40ms404kbKilled by signal 11(SIGSEGV).0
50ms412kbAfisarea Ingredientelor gresita3
60ms368kbKilled by signal 11(SIGSEGV).0
70ms416kbAfisarea Ingredientelor gresita3
80ms416kbAfisarea Ingredientelor gresita3
90ms416kbAfisarea Ingredientelor gresita3
100ms412kbRaspuns Gresit0
Punctaj total21

Ceva nu functioneaza?