Borderou de evaluare (job #1877455)

Utilizator DobosDobos Paul Dobos Data 13 februarie 2017 12:52:16
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int BFS(int)’: user.cpp:18:25: error: cannot convert ‘std::bitset<1005u>’ to ‘void*’ for argument ‘1’ to ‘void* memset(void*, int, size_t)’ memset (B,0,B.size()); ^ user.cpp:24:35: error: expected ‘;’ before ‘)’ token for(auto const &i = G[nod]){ ^ user.cpp:24:35: error: expected primary-expression before ‘)’ token user.cpp:24:35: error: expected ‘;’ before ‘)’ token user.cpp:25:18: error: no match for ‘operator[]’ (operand types are ‘std::bitset<1005u>’ and ‘const std::vector<int>’) if(!B[i] && F[nod][i] > 0){ ^ user.cpp:25:18: note: candidates are: In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:65:0, from user.cpp:1: /usr/include/c++/4.8/bitset:1145:7: note: std::bitset<_Nb>::reference std::bitset<_Nb>::operator[](std::size_t) [with unsigned int _Nb = 1005u; std::size_t = unsigned int] operator[](size_t __position) ^ /usr/include/c++/4.8/bitset:1145:7: note: no known conversion for argument 1 from ‘const std::vector<int>’ to ‘std::size_t {aka unsigned int}’ /usr/include/c++/4.8/bitset:1149:7: note: constexpr bool std::bitset<_Nb>::operator[](std::size_t) const [with unsigned int _Nb = 1005u; std::size_t = unsigned int] operator[](size_t __position) const ^ /usr/include/c++/4.8/bitset:1149:7: note: no known conversion for argument 1 from ‘const std::vector<int>’ to ‘std::size_t {aka unsigned int}’ user.cpp:25:31: error: no match for ‘operator[]’ (operand types are ‘int [1005]’ and ‘const std::vector<int>’) if(!B[i] && F[nod][i] > 0){ ^ user.cpp:26:22: error: no match for ‘operator==’ (operand types are ‘const std::vector<int>’ and ‘int’) if(i == n) ^ user.cpp:26:22: note: candidates are: In file included from /usr/include/c++/4.8/unordered_set:48:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:116, from user.cpp:1: /usr/include/c++/4.8/bits/unordered_set.h:1283:5: note: template<class _Value, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>&, const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>&) operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, ^ /usr/include/c++/4.8/bits/unordered_set.h:1283:5: note: template argument deduction/substitution failed: user.cpp:26:25: note: ‘const std::vector<int>’ is not derived from ‘const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>’ if(i == n) ^ In file included from /usr/include/c++/4.8/unordered_set:48:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:116, from user.cpp:1: /usr/include/c++/4.8/bits/unordered_set.h:1271:5: note: template<class _Value, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_set<_Value, _Hash, _Pred, _Alloc>&, const std::unordered_set<_Value, _Hash, _Pred, _Alloc>&) operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, ^ /usr/include/c++/4.8/bits/unordered_set.h:1271:5: note: template argument deduction/substitution failed: user.cpp:26:25: note: ‘const std::vector<int>’ is not derived from ‘const std::unordered_set<_Value, _Hash, _Pred, _Alloc>’ if(i == n) ^

Ceva nu functioneaza?