Borderou de evaluare (job #1542559)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 5 decembrie 2015 14:32:01
Problema ADN Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void readData()’: user.cpp:34:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &n); ^ user.cpp:37:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s[i] + 1); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:4: In function ‘char* gets(char*)’, inlined from ‘void readData()’ at user.cpp:37: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/ccn2UVMy.o: In function `readData()': user.cpp:(.text+0x34): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms464kbOK!10
20ms476kbOK!10
30ms488kbOK!10
40ms492kbOK!10
50ms788kbOK!10
60ms748kbOK!10
724ms2204kbOK!10
8108ms10292kbOK!10
928ms2372kbOK!10
10204ms19876kbOK!10
Punctaj total100

Ceva nu functioneaza?