Borderou de evaluare (job #2018831)

Utilizator EuAlexOtaku Hikikomori EuAlex Data 6 septembrie 2017 00:27:51
Problema Ratina Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 5

Raport evaluator

Compilare: user.cpp: In function ‘bool ok(int, int)’: user.cpp:37:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < h[pref].size(); ++ i) { ^ user.cpp: In function ‘int main()’: user.cpp:70:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratina.in", "r", stdin); ^ user.cpp:71:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratina.out", "w", stdout); ^ user.cpp:74: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:77:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str[i]); ^ user.cpp:85:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &k); ^ user.cpp:87:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^ 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:77: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/ccHJN9z3.o: In function `main': user.cpp:(.text.startup+0x7f): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1228ms1016kbIncorect0
2240ms1024kbIncorect0
356ms1224kbIncorect0
456ms1224kbIncorect0
556ms1180kbIncorect0
656ms1180kbIncorect0
7Depăşit2784kbTime limit exceeded.0
8Depăşit2852kbTime limit exceeded.0
9Depăşit2844kbTime limit exceeded.0
10240ms1020kbIncorect0
11240ms832kbOK5
12236ms1280kbIncorect0
13244ms1028kbIncorect0
14236ms1272kbIncorect0
15236ms1032kbIncorect0
16328ms20792kbIncorect0
17Depăşit20900kbTime limit exceeded.0
18Depăşit20952kbTime limit exceeded.0
19Depăşit20808kbTime limit exceeded.0
20Depăşit20792kbTime limit exceeded.0
Punctaj total5

Ceva nu functioneaza?