Borderou de evaluare (job #1810223)

Utilizator mariakKapros Maria mariak Data 19 noiembrie 2016 19:20:00
Problema Sir8 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void create_text()’: user.cpp:130:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < strlen(txt); ++ i) ^ user.cpp: In function ‘void read()’: user.cpp:136:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(txt); ^ user.cpp:139:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &k); ^ user.cpp:142:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(w); ^ user.cpp: In function ‘void events()’: user.cpp:166:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &ne); ^ user.cpp:169:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:172:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %c %d %d", &pos, &c, &a, &b); ^ user.cpp:180:53: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &pos, &idx, &a, &b); ^ /tmp/ccUJ3wZ3.o: In function `read()': user.cpp:(.text+0x777): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1172ms7148kbOK10
2148ms7220kbOK10
31480ms8928kbOK10
41256ms8892kbOK10
51196ms8944kbOK10
61364ms9052kbOK10
71376ms9052kbOK10
81412ms9052kbOK10
91352ms9052kbOK10
101312ms9072kbOK10
Punctaj total100

Ceva nu functioneaza?