Borderou de evaluare (job #1313959)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 11 ianuarie 2015 12:55:00
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:20: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:27:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ user.cpp:30: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:76: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:78:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nr); ^ user.cpp:83:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ /tmp/ccDL7ZKl.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
288ms18488kbIncorect0
392ms18492kbIncorect0
4100ms18492kbIncorect0
5112ms18508kbIncorect0
6136ms18532kbIncorect0
7176ms18640kbIncorect0
8356ms19564kbIncorect0
9Depăşit20828kbTime limit exceeded.0
10980ms23912kbIncorect0
Punctaj total10

Ceva nu functioneaza?