Borderou de evaluare (job #1468210)

Utilizator theprdvtheprdv theprdv Data 5 august 2015 14:22:57
Problema SETI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:49:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("seti.in", "r", stdin); ^ user.cpp:50:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("seti.out", "w", stdout); ^ user.cpp:52:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &N); ^ user.cpp:53:46: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] for (int i = 0; i < N; ++i) gets(A + 64 * i); ^ user.cpp:76:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &M); ^ user.cpp:78:11: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(A2); ^ In file included from /usr/include/stdio.h:934:0, from user.cpp:3: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:53:46: /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/ccNZdFlW.o: In function `main': user.cpp:(.text.startup+0x7a): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0x408): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
152ms4788kbIncorect0
216ms2680kbIncorect0
348ms3524kbOK10
476ms3528kbIncorect0
596ms5168kbIncorect0
6148ms6820kbOK10
7200ms8456kbOK10
8248ms8600kbOK10
9248ms8596kbOK10
10188ms7396kbIncorect0
Punctaj total50

Ceva nu functioneaza?