Borderou de evaluare (job #2018848)

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

Raport evaluator

Compilare: user.cpp: In function ‘bool ok(int, int)’: user.cpp:39: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:73: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:74: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:77: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:81:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str[i]); ^ user.cpp:89:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &k); ^ user.cpp:91: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:81: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/ccgEZVrz.o: In function `main': user.cpp:(.text.startup+0x85): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1252ms1804kbOK5
2252ms1808kbOK5
336ms2068kbOK5
436ms2072kbOK5
536ms2028kbOK5
636ms2032kbOK5
7Depăşit3928kbTime limit exceeded.0
8Depăşit4000kbTime limit exceeded.0
9Depăşit4000kbTime limit exceeded.0
10252ms1808kbOK5
11268ms1620kbOK5
12252ms2068kbOK5
13260ms1820kbOK5
14252ms2068kbOK5
15260ms1820kbOK5
16328ms61032kbOK5
17Depăşit61168kbTime limit exceeded.0
18Depăşit61228kbTime limit exceeded.0
19Depăşit61080kbTime limit exceeded.0
20Depăşit61068kbTime limit exceeded.0
Punctaj total65

Ceva nu functioneaza?