Borderou de evaluare (job #1596109)

Utilizator SilviuIIon Silviu SilviuI Data 10 februarie 2016 20:03:09
Problema Cobai Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:40:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cobai.in","r",stdin); ^ user.cpp:41:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cobai.out","w",stdout); ^ user.cpp:43:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ",&n,&m); ^ user.cpp:45:40: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] for (int i=1;i<=n;i++) gets(s[i]+1); ^ user.cpp:47:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(steps+1); len=strlen(steps+1); ^ In file included from /usr/include/stdio.h:934:0, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:45:40: /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/ccWvV4fT.o: In function `main': user.cpp:(.text.startup+0x7f): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0x9b): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms384kbOk!5
20ms384kbOk!5
30ms396kbOk!5
40ms392kbOk!5
50ms388kbOk!5
60ms396kbOk!5
70ms396kbOk!5
80ms392kbOk!5
90ms396kbOk!5
100ms388kbOk!5
110ms388kbOk!5
124ms396kbOk!5
134ms392kbOk!5
148ms400kbOk!5
154ms400kbOk!5
164ms400kbOk!5
170ms396kbOk!5
1820ms400kbOk!5
1920ms392kbOk!5
2024ms396kbOk!5
Punctaj total100

Ceva nu functioneaza?