Borderou de evaluare (job #878867)

Utilizator alex_unixPetenchea Alexandru alex_unix Data 14 februarie 2013 20:07:42
Problema Binar Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:21: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result user.cpp:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result user.cpp:25: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result user.cpp:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result user.cpp: In function ‘void print()’: user.cpp:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result In file included from /usr/include/stdio.h:910, from /usr/include/c++/4.4/cstdio:45, from user.cpp:2: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:25: /usr/include/bits/stdio2.h:230: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size /tmp/ccAYJTmv.o: In function `main': user.cpp:(.text+0x15a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms592kbOK10
24ms804kbOK10
34ms1396kbOK10
412ms2408kbOK10
524ms3412kbOK10
632ms3816kbOK10
732ms4016kbOK10
836ms4216kbOK10
940ms4416kbOK10
1044ms4424kbOK10
Punctaj total100

Ceva nu functioneaza?