Borderou de evaluare (job #2024739)

Utilizator EuAlexOtaku Hikikomori EuAlex Data 21 septembrie 2017 09:24:20
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/cc5GPU5Q.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
10ms280kbOk!5
20ms292kbOk!5
30ms300kbOk!5
40ms300kbOk!5
50ms292kbOk!5
60ms292kbOk!5
70ms304kbOk!5
80ms296kbOk!5
90ms300kbOk!5
100ms300kbOk!5
110ms296kbOk!5
120ms300kbOk!5
130ms300kbOk!5
140ms300kbOk!5
150ms304kbOk!5
160ms300kbOk!5
170ms300kbOk!5
180ms304kbWrong answer!0
194ms304kbOk!5
204ms300kbOk!5
Punctaj total95

Ceva nu functioneaza?