Borderou de evaluare (job #2443409)
Utilizator | Data | 27 iulie 2019 20:07:23 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In instantiation of 'void segment_tree<type, val_type, return_type, LazyType, update_policy, query_policy, lazy_policy>::create(const std::vector<type>&) [with type = int; val_type = int; return_type = int; LazyType = int; update_policy = update_policy; query_policy = query_policy; lazy_policy = lazy_policy]':
main.cpp:217:24: required from here
main.cpp:28:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (long long i = 0; i < vec.size() * 4; ++i)
~~^~~~~~~~~~~~~~~~
main.cpp:30:4: error: invalid initialization of non-const reference of type 'long long int&' from an rvalue of type 'long long int'
_lazy_policy.clear(lazy[i]);
^~~~~~~~~~~~
main.cpp:167:7: note: initializing argument 1 of 'void lazy_policy::clear(long long int&)'
void clear(long long& node)
^~~~~
main.cpp:33:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (long long i = 0; i < vec.size(); ++i)
main.cpp: In instantiation of 'return_type segment_tree<type, val_type, return_type, LazyType, update_policy, query_policy, lazy_policy>::query(long long int, long long int, long long int, long long int, long long int) [with type = int; val_type = int; return_type = int; LazyType = int; update_policy = update_policy; query_policy = query_policy; lazy_policy = lazy_policy]':
main.cpp:227:40: required from here
main.cpp:92:3: error: invalid initialization of non-const reference of type 'long long int&' from an rvalue of type 'long long int'
_lazy_policy.to(data[k], lazy[k], y-x+1);
^~~~~~~~~~~~
main.cpp:172:7: note: initializing argument 1 of 'void lazy_policy::to(long long int&, long long int, long long int)'
void to(long long& node, const long long value, long long sz)
^~
main.cpp:96:4: error: invalid initialization of non-const reference of type 'long long int&' from an rvalue of type 'long long int'
_lazy_policy.propagate(lazy[k], lazy [k * 2], lazy[k * 2 + 1]);
^~~~~~~~~~~~
main.cpp:182:7: note: initializing argument 2 of 'void lazy_policy::propagate(long long int, long long int&, long long int&)'
void propagate(long long node, long long& child_left_node, long long& child_right_node)
^~~~~~~~~
main.cpp:98:3: error: invalid initialization of non-const reference of type 'long long int&' from an rvalue of type 'long long int'
_lazy_policy.clear(lazy[k]);
^~~~~~~~~~~~
main.cpp:167:7: note: initializing argument 1 of 'void lazy_policy::clear(long long int&)'
void clear(long long& node)
^~~~~
main.cpp: In instantiation of 'void segment_tree<type, val_type, return_type, LazyType, update_policy, query_policy, lazy_policy>::update(long long int, long long int, val_type, long long int, long long int, long long int) [with type = int; val_type = int; return_type = int; LazyType = int; update_policy = update_policy; query_policy = query_policy; lazy_policy = lazy_policy]':
main.cpp:231:36: required from here
main.cpp:41:3: error: invalid initialization of non-const reference of type 'long long int&' from an rvalue of type 'long long int'
_lazy_policy.to(data[k], lazy[k], y-x+1);
^~~~~~~~~~~~
main.cpp:172:7: note: initializing argument 1 of 'void lazy_policy::to(long long int&, long long int, long long int)'
void to(long long& node, const long long value, long long sz)
^~
main.cpp:45:4: error: invalid initialization of non-const reference of type 'long long int&' from an rvalue of type 'long long int'
_lazy_policy.propagate(lazy[k], lazy[k * 2], lazy [k * 2 + 1]);
^~~~~~~~~~~~
main.cpp:182:7: note: initializing argument 2 of 'void lazy_policy::propagate(long long int, long long int&, long long int&)'
void propagate(long long node, long long& child_left_node, long long& child_right_node)
^~~~~~~~~
main.cpp:47:3: error: invalid initialization of non-const reference of type 'long long int&' from an rvalue of type 'long long int'
_lazy_policy.clear(lazy[k]);
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !