Borderou de evaluare (job #2443400)
Utilizator | Data | 27 iulie 2019 19:16:42 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:8: error: expected constructor, destructor, or type conversion before '(' token
freopen("arbint.in", "r", stdin);
^
main.cpp:8:8: error: expected constructor, destructor, or type conversion before '(' token
freopen("arbint.out", "w", stdout);
^
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:213:24: required from here
main.cpp:33:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < vec.size() * 4; ++i)
~~^~~~~~~~~~~~~~~~
main.cpp:38:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < vec.size(); ++i)
main.cpp: In instantiation of 'void segment_tree<type, val_type, return_type, LazyType, update_policy, query_policy, lazy_policy>::update(int, int, val_type, int, int, 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:36: required from here
main.cpp:59:4: error: no matching function for call to 'lazy_policy::set(__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&, int&)'
_lazy_policy.set(lazy[k], v);
^~~~~~~~~~~~
main.cpp:184:7: note: candidate: void lazy_policy::set(int&)
void set(int& node)
^~~
main.cpp:184:7: note: candidate expects 1 argument, 2 provided
main.cpp:79:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(k*4 < data.size() && k*4+1 < data.size())
main.cpp:79:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(k*4 < data.size() && k*4+1 < data.size())
main.cpp:88:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (k * 4 + 2 < data.size() && k * 4 + 3 < data.size())
main.cpp:88:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (k * 4 + 2 < data.size() && k * 4 + 3 < data.size())
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !