Borderou de evaluare (job #1722177)

Utilizator bciobanuBogdan Ciobanu bciobanu Data 27 iunie 2016 15:12:39
Problema Teroristi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:118:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("teroristi.in", "r", stdin); ^ user.cpp:119:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("teroristi.out", "w", stdout); ^ user.cpp:120:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] int n, m; scanf("%d%d\n", &n, &m); gets(foo); ^ user.cpp:120:49: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] int n, m; scanf("%d%d\n", &n, &m); gets(foo); ^ /tmp/ccwLScGP.o: In function `main': user.cpp:(.text.startup+0x7e): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbOk!10
20ms268kbOk!10
30ms272kbOk!10
40ms276kbOk!10
50ms280kbOk!10
68ms572kbOk!10
756ms1788kbOk!10
8128ms3252kbOk!10
9176ms4240kbOk!10
10224ms5200kbOk!10
Punctaj total100

Ceva nu functioneaza?