Borderou de evaluare (job #2000925)

Utilizator valen.valentinValentin Valeanu valen.valentin Data 15 iulie 2017 10:53:51
Problema Paznici Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 4

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:58:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int k = 0; k < pos1[p].size(); k++) dpv[pos1[p][k]]--; ^ user.cpp:61:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (currentAnswer.size() > ans && ans != - 1) continue; ^ user.cpp:75:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ans > currentAnswer.size()) { ^ user.cpp:85:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < answer.size(); i++) ^ user.cpp:16:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("paznici.in", "r", stdin); ^ user.cpp:17:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("paznici.out", "w", stdout); ^ user.cpp:19:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ", &n, &m); ^ user.cpp:21:48: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] for (int i = 1; i <= n; i++) gets(s[i] + 1); ^ In file included from /usr/include/stdio.h:934:0, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:21:48: /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/ccOrfoFs.o: In function `main': user.cpp:(.text.startup+0x84): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbOK4
20ms288kbIncorect0
30ms288kbIncorect0
40ms280kbIncorect0
50ms288kbIncorect0
60ms284kbIncorect0
74ms280kbIncorect0
80ms284kbIncorect0
94ms280kbIncorect0
104ms284kbIncorect0
110ms284kbIncorect0
120ms284kbIncorect0
1336ms284kbIncorect0
14104ms288kbIncorect0
15Depăşit268kbTime limit exceeded.0
16Depăşit264kbTime limit exceeded.0
170ms288kbIncorect0
18Depăşit260kbTime limit exceeded.0
19Depăşit268kbTime limit exceeded.0
20Depăşit264kbTime limit exceeded.0
21Depăşit264kbTime limit exceeded.0
22Depăşit260kbTime limit exceeded.0
23Depăşit264kbTime limit exceeded.0
24Depăşit260kbTime limit exceeded.0
250ms284kbIncorect0
Punctaj total4

Ceva nu functioneaza?