Borderou de evaluare (job #2812870)

Utilizator RaresFelixTudose Rares Felix RaresFelix Data 5 decembrie 2021 12:55:08
Problema Frequent Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'int SuffixArray::lcpre(int, int)': main.cpp:24:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 24 | if(max(p1, p2) + (1 << k) < cuv.size() && Ord[k][p1] == Ord[k][p2]) { | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ main.cpp: In constructor 'SuffixArray::SuffixArray(std::string)': main.cpp:33:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 33 | for(int i = 0; i < cuv.size(); ++i) Ord[0][i] = cuv[i]; | ~~^~~~~~~~~~~~ main.cpp:38:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 38 | for(int i = 0; i < cuv.size(); ++i) { | ~~^~~~~~~~~~~~ main.cpp:40:46: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 40 | ord2 = ((i + (1 << (k - 1))) < cuv.size()) ? Ord[k - 1][(i + (1 << (k - 1)))] : -1; | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ main.cpp:41:46: error: no matching function for call to 'std::vector<std::tuple<int, int, int> >::push_back(<brace-enclosed initializer list>)' 41 | Val.push_back({ord1, ord2, i}); | ^ In file included from /usr/include/c++/10/vector:67, from main.cpp:4: /usr/include/c++/10/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; std::vector<_Tp, _Alloc>::value_type = std::tuple<int, int, int>]' 1187 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::tuple<int, int, int>&'} 1187 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/10/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; std::vector<_Tp, _Alloc>::value_type = std::tuple<int, int, int>]' 1203 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::tuple<int, int, int> >::value_type&&' {aka 'std::tuple<int, int, int>&&'} 1203 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ main.cpp:46:22: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 46 | for(auto [o1, o2, ind] : Val) { | ^ main.cpp:46:22: error: 'std::tuple<int, int, int> <structured bindings>' has incomplete type 46 | for(auto [o1, o2, ind] : Val) { | ^~~~~~~~~~~~~ main.cpp:58:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 58 | for(int i = 0; i < cuv.size(); ++i) { | ~~^~~~~~~~~~~~ main.cpp:65:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 65 | for(int i = 0; i < cuv.size() - 1; ++i) LCP.push_back(lcpre(Cresc[i].first, Cresc[i + 1].first)); | ~~^~~~~~~~~~~~~~~~ main.cpp:34:25: warning: unused variable 'id' [-Wunused-variable] 34 | int ord1, ord2, id; | ^~ main.cpp: In function 'void compute(std::vector<std::tuple<int, int, int> >&, std::vector<int>&, std::vector<int>&)': main.cpp:103:44: error: no matching function for call to 'get<0>(__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type&)' 103 | while(!Q.empty() && get<0>(Q.back()) >= i) { | ^ Non zero exit status: 1

Ceva nu functioneaza?