Pagini recente » Borderou de evaluare (job #582446) | Borderou de evaluare (job #3270529) | Borderou de evaluare (job #3227347) | Borderou de evaluare (job #368843) | Borderou de evaluare (job #1506065)
Borderou de evaluare (job #1506065)
Raport evaluator
Compilare:
user.cpp: In function ‘void pop_heap()’:
user.cpp:6:26: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
#define minSon(x) ( ((x) << 1 + 1) <= size && Heap[((x) << 1) + 1].val < Heap[(x) << 1].val ? ((x) << 1 + 1) : ((x) << 1) )
^
user.cpp:37:22: note: in expansion of macro ‘minSon’
int now = 1, next = minSon(1);
^
user.cpp:6:100: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
#define minSon(x) ( ((x) << 1 + 1) <= size && Heap[((x) << 1) + 1].val < Heap[(x) << 1].val ? ((x) << 1 + 1) : ((x) << 1) )
^
user.cpp:37:22: note: in expansion of macro ‘minSon’
int now = 1, next = minSon(1);
^
user.cpp:6:26: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
#define minSon(x) ( ((x) << 1 + 1) <= size && Heap[((x) << 1) + 1].val < Heap[(x) << 1].val ? ((x) << 1 + 1) : ((x) << 1) )
^
user.cpp:38:95: note: in expansion of macro ‘minSon’
for (; next <= size && curr.val > Heap[next].val; Heap[now] = Heap[next], now = next, next = minSon(now));
^
user.cpp:6:100: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
#define minSon(x) ( ((x) << 1 + 1) <= size && Heap[((x) << 1) + 1].val < Heap[(x) << 1].val ? ((x) << 1 + 1) : ((x) << 1) )
^
user.cpp:38:95: note: in expansion of macro ‘minSon’
for (; next <= size && curr.val > Heap[next].val; Heap[now] = Heap[next], now = next, next = minSon(now));
^
user.cpp: In function ‘int main()’:
user.cpp:59:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secvmax.out", "w", stdout);
^
user.cpp:61:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
^
user.cpp:66:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
next[i] = prev[i] = i;
^
user.cpp:70:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
push_heap(x, i);
^
user.cpp:78:44: warning: ‘max’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (now.val == last) { ans[now.pos] = max; continue; }
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 312kb | Incorect | 0 | 0 |
2 | 0ms | 388kb | Incorect | 0 | 0 |
3 | 0ms | 380kb | Incorect | 0 | 0 |
4 | 0ms | 268kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
5 | 44ms | 1928kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
6 | 0ms | 268kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 0ms | 272kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
8 | 88ms | 3888kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
9 | 0ms | 272kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 268kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
Punctaj total | 0 |