Borderou de evaluare (job #1515101)

Utilizator bciobanuBogdan Ciobanu bciobanu Data 1 noiembrie 2015 10:01:02
Problema SETI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:61:33: 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:62:35: 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:67:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:69:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + (i << 6)); ^ user.cpp:81:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &q); ^ user.cpp:83:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(Q); ^ 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:69:23: /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/cciJY0FX.o: In function `main': user.cpp:(.text.startup+0x81): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0x14c): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
120ms348kbOK10
24ms296kbOK10
388ms14756kbOK10
4112ms14760kbOK10
5196ms28212kbOK10
6264ms41072kbOK10
7384ms53668kbOK10
8Depăşit55184kbTime limit exceeded.0
9Depăşit55180kbTime limit exceeded.0
1088ms2388kbOK10
Punctaj total80

Ceva nu functioneaza?