Borderou de evaluare (job #1566674)

Utilizator Alexa2001Alexa Tudose Alexa2001 Data 12 ianuarie 2016 14:33:41
Problema Matrix2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 55

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:36:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("matrix2.in","r",stdin); ^ user.cpp:37:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("matrix2.out","w",stdout); ^ user.cpp:39:27: 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:40:33: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] for(i=1;i<=n;++i) gets(a[i]); ^ 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:40:33: /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/ccugL2ZA.o: In function `main': user.cpp:(.text.startup+0x8e): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms328kbOK5
20ms532kbOK5
30ms1020kbOK5
40ms1548kbIncorect0
50ms1164kbOK5
60ms320kbOK5
712ms3224kbIncorect0
812ms3816kbIncorect0
98ms2052kbOK5
1024ms4992kbOK5
1136ms5584kbIncorect0
1240ms5872kbOK5
1332ms5432kbOK5
144ms6168kbIncorect0
150ms296kbOK5
1644ms6164kbIncorect0
1744ms6172kbIncorect0
1844ms6168kbIncorect0
1944ms6164kbIncorect0
2044ms6168kbOK5
Punctaj total55

Ceva nu functioneaza?