Borderou de evaluare (job #1313961)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 11 ianuarie 2015 12:59:59
Problema Mcript Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘void Read()’: user.cpp:21:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( i = 0 ; i < strlen(s) ; ++i ) ^ user.cpp:18:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n);getchar();gets(s); ^ user.cpp:18:38: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n);getchar();gets(s); ^ user.cpp:28:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ user.cpp:31:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ user.cpp: In function ‘void Solve_it()’: user.cpp:77:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(scanf("%d", &k); k > 0 ; --k) ^ user.cpp:79:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nr); ^ user.cpp:84:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ /tmp/ccjoTi62.o: In function `Read()': user.cpp:(.text+0x226): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
192ms18492kbOK10
292ms18492kbIncorect0
392ms18496kbIncorect0
4100ms18492kbIncorect0
5120ms18504kbIncorect0
6132ms18532kbIncorect0
7176ms18640kbIncorect0
8368ms19556kbIncorect0
9Depăşit20828kbTime limit exceeded.0
10980ms23908kbIncorect0
Punctaj total10

Ceva nu functioneaza?