Borderou de evaluare (job #1718986)

Utilizator Alexa2001Alexa Tudose Alexa2001 Data 19 iunie 2016 11:41:42
Problema Contrasens Status done
Runda Algoritmiada 2016 Runda 4 Juniori Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("contrasens.in", "r", stdin); ^ user.cpp:13:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("contrasens.out", "w", stdout); ^ user.cpp:15:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &n, &p); ^ user.cpp:19:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[1]+2); ^ user.cpp:26:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[i]+2); ^ 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:21: /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/cc84IFMV.o: In function `main': user.cpp:(.text.startup+0x11b): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0xa4): warning: the `gets' function is dangerous and should not be used.
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK10
20ms264kbOK10
30ms280kbOK10
40ms276kbOK10
520ms3188kbOK10
620ms3188kbOK10
720ms3188kbOK10
820ms3188kbOK10
920ms3184kbOK10
1020ms3188kbOK10
Punctaj total100

Ceva nu functioneaza?