Borderou de evaluare (job #1974557)

Utilizator OwlreeRobert Badea Owlree Data 28 aprilie 2017 00:07:35
Problema Mirror Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘std::string solve1(std::vector<int>, int)’: user.cpp:13:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < v.size(); ++i) { ^ user.cpp:14:20: error: ‘bitset’ was not declared in this scope string s = bitset< 64 >(v[i]).to_string(); ^ user.cpp:14:39: error: request for member ‘to_string’ in ‘v.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ string s = bitset< 64 >(v[i]).to_string(); ^ user.cpp:16:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < s.size(); ++j) { ^ user.cpp:32:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < s.size(); ++i) { ^ user.cpp:35:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ss.str().size() == k) ^ user.cpp: In function ‘int fromstr(std::string)’: user.cpp:46:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < s.size(); ++i) { ^ user.cpp: In function ‘std::string flip(std::string)’: user.cpp:59:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < s.size(); ++i) { ^

Ceva nu functioneaza?