Borderou de evaluare (job #2024738)

Utilizator EuAlexOtaku Hikikomori EuAlex Data 21 septembrie 2017 09:22:42
Problema Cobai Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 95

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:10:36: 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:11:38: 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:14:28: 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:17:27: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(cusca[i] + 1); ^ user.cpp:20:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 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:17:27: /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/ccuo4GwO.o: In function `main': user.cpp:(.text.startup+0x7e): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0x98): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbOk!5
20ms284kbOk!5
30ms276kbOk!5
40ms284kbOk!5
50ms284kbOk!5
60ms276kbOk!5
70ms288kbOk!5
80ms280kbOk!5
90ms284kbOk!5
100ms284kbOk!5
110ms288kbOk!5
120ms284kbOk!5
130ms284kbOk!5
140ms288kbOk!5
150ms288kbOk!5
160ms284kbOk!5
170ms284kbOk!5
180ms284kbWrong answer!0
194ms288kbOk!5
204ms284kbOk!5
Punctaj total95

Ceva nu functioneaza?