Borderou de evaluare (job #1475952)
Raport evaluator
Compilare:
user.cpp: In function ‘void remove_r(int)’:
user.cpp:30:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (SR[i].p != pos) SR[++SR[0].s] = SR[i];
^
user.cpp: In function ‘void add_l(int)’:
user.cpp:38:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (end && SL[end] > A[k] + A[pos]) SL[i] = SL[end--];
^
user.cpp: In function ‘int solve(int)’:
user.cpp:50:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (l <= SL[0] && r > 0){
^
user.cpp:51:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (r && SRval(r) + SL[l] > S) --r;
^
user.cpp:54:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (SRval(r) + SL[l] == S){
^
user.cpp:57:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (nextL <= SL[0] && SL[l] == SL[nextL]) ++nextL;
^
user.cpp:62:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else for (++l; SL[l] == SL[l - 1] && l <= SL[0]; ++l);
^
user.cpp: In function ‘int main()’:
user.cpp:90:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (A[i] + SR[SR[0].s].s + SL[SL[0]] < S) break;
^
user.cpp:68:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("take5.in", "r", stdin);
^
user.cpp:69:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("take5.out", "w", stdout);
^
user.cpp:71:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &S);
^
user.cpp:72:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (int i = 1; i <= N; ++i) scanf("%d", &A[i]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 292kb | OK | 5 |
| 2 | 0ms | 304kb | OK | 5 |
| 3 | 0ms | 332kb | OK | 5 |
| 4 | 4ms | 364kb | OK | 5 |
| 5 | 8ms | 404kb | OK | 5 |
| 6 | 4ms | 428kb | Incorect | 0 |
| 7 | 28ms | 636kb | OK | 5 |
| 8 | 8ms | 616kb | Incorect | 0 |
| 9 | 12ms | 700kb | Incorect | 0 |
| 10 | 16ms | 892kb | Incorect | 0 |
| 11 | 260ms | 1720kb | OK | 5 |
| 12 | 44ms | 1668kb | Incorect | 0 |
| 13 | 52ms | 1948kb | Incorect | 0 |
| 14 | 56ms | 2176kb | Incorect | 0 |
| 15 | 76ms | 2616kb | Incorect | 0 |
| 16 | 1216ms | 4184kb | OK | 5 |
| 17 | 136ms | 4152kb | Incorect | 0 |
| 18 | 132ms | 4160kb | Incorect | 0 |
| 19 | 128ms | 4156kb | Incorect | 0 |
| 20 | 128ms | 4160kb | Incorect | 0 |
| Punctaj total | 40 |