Borderou de evaluare (job #1649637)

Utilizator Alexa2001Alexa Tudose Alexa2001 Data 11 martie 2016 14:27:05
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:22: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:23: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:25:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n",&n,&m); ^ user.cpp:26:35: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] for(i=1;i<=n;++i) gets(a[i]+1); ^ user.cpp:27:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(moves);MOVES=strlen(moves); ^ 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:26:35: /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/ccPFvI2w.o: In function `main': user.cpp:(.text.startup+0x8c): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0xb5): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms296kbOk!5
20ms304kbOk!5
30ms304kbOk!5
40ms304kbOk!5
50ms300kbOk!5
60ms300kbOk!5
70ms312kbOk!5
80ms308kbOk!5
90ms312kbOk!5
100ms312kbOk!5
110ms312kbOk!5
124ms316kbOk!5
134ms316kbOk!5
1412ms324kbOk!5
154ms324kbOk!5
164ms324kbOk!5
170ms324kbOk!5
1828ms328kbOk!5
1928ms332kbOk!5
2036ms332kbOk!5
Punctaj total100

Ceva nu functioneaza?