Pagini recente » Borderou de evaluare (job #2201580) | Borderou de evaluare (job #178249) | Borderou de evaluare (job #830952) | Borderou de evaluare (job #809125) | Borderou de evaluare (job #2000929)
Borderou de evaluare (job #2000929)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:65: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:68:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (currentAnswer.size() > ans) continue;
^
user.cpp:81:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (currentAnswer.size() < ans) ans = currentAnswer.size(), answer = currentAnswer; else
^
user.cpp:82:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (currentAnswer.size() == ans) answer = min(answer, currentAnswer);
^
user.cpp:54:13: warning: unused variable ‘currentAns’ [-Wunused-variable]
int currentAns = 0;
^
user.cpp:21: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:22: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:24: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:26: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:26: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/ccuAe2DD.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 |
| 1 | 0ms | 444kb | OK | 4 |
| 2 | 0ms | 448kb | OK | 4 |
| 3 | 0ms | 448kb | Incorect | 0 |
| 4 | 0ms | 448kb | OK | 4 |
| 5 | 0ms | 444kb | OK | 4 |
| 6 | 0ms | 448kb | OK | 4 |
| 7 | 4ms | 444kb | Incorect | 0 |
| 8 | 0ms | 448kb | OK | 4 |
| 9 | 4ms | 444kb | Incorect | 0 |
| 10 | 4ms | 452kb | OK | 4 |
| 11 | 0ms | 448kb | OK | 4 |
| 12 | 0ms | 444kb | OK | 4 |
| 13 | 32ms | 452kb | Incorect | 0 |
| 14 | 92ms | 444kb | OK | 4 |
| 15 | Depăşit | 440kb | Time limit exceeded. | 0 |
| 16 | Depăşit | 428kb | Time limit exceeded. | 0 |
| 17 | 0ms | 448kb | OK | 4 |
| 18 | Depăşit | 428kb | Time limit exceeded. | 0 |
| 19 | Depăşit | 424kb | Time limit exceeded. | 0 |
| 20 | Depăşit | 424kb | Time limit exceeded. | 0 |
| 21 | Depăşit | 432kb | Time limit exceeded. | 0 |
| 22 | Depăşit | 436kb | Time limit exceeded. | 0 |
| 23 | Depăşit | 428kb | Time limit exceeded. | 0 |
| 24 | Depăşit | 428kb | Time limit exceeded. | 0 |
| 25 | 0ms | 448kb | OK | 4 |
| Punctaj total | 48 |