Borderou de evaluare (job #1446829)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 2 iunie 2015 23:05:47
Problema Mesaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

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("mesaj.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("mesaj.out","w",stdout); ^ user.cpp:25:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &Q, &N); ^ user.cpp:27:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(S + 1); ^ user.cpp:30:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(A[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 ‘int main()’ at user.cpp:30: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/ccgojNwd.o: In function `main': user.cpp:(.text.startup+0xa4): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0x72): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK10
20ms264kbOK10
30ms268kbOK10
40ms284kbIncorect0
50ms304kbOK10
60ms344kbIncorect0
78ms408kbIncorect0
856ms488kbIncorect0
920ms424kbIncorect0
1036ms484kbIncorect0
Punctaj total40

Ceva nu functioneaza?