Borderou de evaluare (job #1918130)

Utilizator EuAlexOtaku Hikikomori EuAlex Data 9 martie 2017 14:13:59
Problema Miting Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:89:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("miting.in", "r", stdin); ^ user.cpp:90:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("miting.out", "w", stdout); ^ user.cpp:93:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &p); ^ user.cpp:94: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:95:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ user.cpp:97:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(v[i] + 1); ^ user.cpp:119:50: warning: ‘ymax’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf("%d\n", (xmax - xmin + 1) * (ymax - ymin + 1)); ^ user.cpp:119:50: warning: ‘ymin’ may be used uninitialized in this function [-Wmaybe-uninitialized] user.cpp:119:30: warning: ‘xmax’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf("%d\n", (xmax - xmin + 1) * (ymax - ymin + 1)); ^ 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:97: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/ccmp3yw1.o: In function `main': user.cpp:(.text.startup+0xaa): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0x86): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOK5
20ms280kbOK5
30ms284kbOK5
40ms276kbOK5
50ms316kbOK5
6Depăşit376kbTime limit exceeded.0
7Depăşit360kbTime limit exceeded.0
8Depăşit352kbTime limit exceeded.0
94ms328kbIncorect0
10Depăşit424kbTime limit exceeded.0
1156ms540kbOK5
12Depăşit376kbTime limit exceeded.0
13156ms408kbIncorect0
14536ms576kbOK5
15204ms400kbOK5
16Depăşit492kbTime limit exceeded.0
17Depăşit488kbTime limit exceeded.0
18Depăşit488kbTime limit exceeded.0
19Depăşit492kbTime limit exceeded.0
20Depăşit488kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?