Borderou de evaluare (job #2198025)

Utilizator ajeccAjechiloae Eugen ajecc Data 23 aprilie 2018 13:26:00
Problema Arbori de intervale Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In constructor ‘SEGMENT_TREE<T>::SEGMENT_TREE(int, std::function<T(T, T)>, T)’: user.cpp:141:45: warning: ‘memset’ used with constant zero length parameter; this could be due to transposed parameters [-Wmemset-transposed-args] memset(seg_tree, sizeof(seg_tree), 0); ^ user.cpp: In instantiation of ‘void SEGMENT_TREE<T>::update(int, int, int, int, T) [with T = int]’: user.cpp:257:38: required from here user.cpp:182:25: error: no matching function for call to ‘SEGMENT_TREE<int>::process_lazy(int&)’ process_lazy(nod); ~~~~~~~~~~~~^~~~~ user.cpp:103:10: note: candidate: void SEGMENT_TREE<T>::process_lazy(int, int) [with T = int] void process_lazy(int nod, int len) ^~~~~~~~~~~~ user.cpp:103:10: note: candidate expects 2 arguments, 1 provided

Ceva nu functioneaza?