Borderou de evaluare (job #1282610)

Utilizator geniucosOncescu Costin geniucos Data 4 decembrie 2014 15:59:36
Problema Smart Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:76:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("smart.in", "r", stdin); ^ user.cpp:77:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("smart.out", "w", stdout); ^ user.cpp:79:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d\n", &N, &M); ^ user.cpp:83:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (sir[i]+1); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:83:20: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/ccWQqiYs.o: In function `main': user.cpp:(.text.startup+0x94): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1120ms15172kbIncorect0
2212ms12148kbIncorect0
336ms10356kbOK10
4216ms28028kbIncorect0
5308ms29928kbIncorect0
6Depăşit21884kbTime limit exceeded.0
7328ms31908kbIncorect0
812ms9488kbIncorect0
9Depăşit10076kbTime limit exceeded.0
10220ms28556kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?