Borderou de evaluare (job #1313977)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 11 ianuarie 2015 13:19:15
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:82: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:84:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nr); ^ user.cpp:89:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ /tmp/cc3Vr1x1.o: In function `Read()': user.cpp:(.text+0x236): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
192ms18500kbOK10
288ms18492kbIncorect0
396ms18492kbIncorect0
4108ms18500kbIncorect0
5128ms18504kbIncorect0
6152ms18528kbIncorect0
7200ms18636kbIncorect0
8444ms19560kbIncorect0
91000ms20828kbIncorect0
10Depăşit23904kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?