Borderou de evaluare (job #1506065)

Utilizator theprdvtheprdv theprdv Data 19 octombrie 2015 23:05:06
Problema Secvmax Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

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
10ms312kbIncorect00
20ms388kbIncorect00
30ms380kbIncorect00
40ms268kbKilled by signal 11(SIGSEGV).00
544ms1928kbKilled by signal 11(SIGSEGV).00
60ms268kbKilled by signal 11(SIGSEGV).0
70ms272kbKilled by signal 11(SIGSEGV).00
888ms3888kbKilled by signal 11(SIGSEGV).00
90ms272kbKilled by signal 11(SIGSEGV).0
100ms268kbKilled by signal 11(SIGSEGV).00
Punctaj total0

Ceva nu functioneaza?