Borderou de evaluare (job #2665785)
Utilizator | Data | 31 octombrie 2020 12:15:59 | |
---|---|---|---|
Problema | Lesbulan | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:1: error: 'bitset' does not name a type
bitset<DIM> ok, mrk;
^~~~~~
main.cpp: In function 'void detectCycle(int, int, bool&)':
main.cpp:13:5: error: 'ok' was not declared in this scope
ok[x] = true;
^~
main.cpp: In function 'void removeLeaves(int)':
main.cpp:20:5: error: 'ok' was not declared in this scope
ok.reset(); mrk.reset();
^~
main.cpp:20:17: error: 'mrk' was not declared in this scope
ok.reset(); mrk.reset();
^~~
main.cpp:26:66: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
edg[y].erase(find(edg[y].begin(), edg[y].end(), x)); }
^
In file included from /usr/include/c++/6/bits/locale_facets.h:48:0,
from /usr/include/c++/6/bits/basic_ios.h:37,
from /usr/include/c++/6/ios:44,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/bits/streambuf_iterator.h:369:5: note: candidate: template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)
find(istreambuf_iterator<_CharT> __first,
^~~~
/usr/include/c++/6/bits/streambuf_iterator.h:369:5: note: template argument deduction/substitution failed:
main.cpp:26:66: note: '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
edg[y].erase(find(edg[y].begin(), edg[y].end(), x)); }
^
main.cpp: In function 'int main()':
main.cpp:38:26: error: 'ok' was not declared in this scope
bool ans = true; ok.reset();
^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !