Borderou de evaluare (job #1681606)

Utilizator binicBinica Nicolae binic Data 9 aprilie 2016 16:42:47
Problema Marele Zgomot Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 74

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:21:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("mz.in","r",stdin); ^ user.cpp:22:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("mz.out","w",stdout); ^ user.cpp:23: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:25:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[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:25:21: /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/cc9wP2pP.o: In function `main': user.cpp:(.text.startup+0x86): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms356kbOk!10
20ms548kbZgomot maxim gresit.2
30ms816kbZgomot maxim gresit.2
40ms796kbOk!10
536ms2512kbKilled by signal 11(SIGSEGV).0
648ms2340kbOk!10
712ms828kbOk!10
8196ms5428kbOk!10
9184ms5428kbOk!10
10216ms5424kbOk!10
Punctaj total74

Ceva nu functioneaza?