Borderou de evaluare (job #3161909)
Utilizator | Data | 28 octombrie 2023 10:25:29 | |
---|---|---|---|
Problema | Ciurul lui Eratosthenes | Status | done |
Runda | Arhiva educationala | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:25: error: no matching function for call to 'begin(bool [(n + 1)])'
10 | std::fill(std::begin(C),std::end(C), 0)
| ~~~~~~~~~~^~~
In file included from /usr/include/c++/12.2.1/bits/range_access.h:36,
from /usr/include/c++/12.2.1/string:52,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:1:
/usr/include/c++/12.2.1/initializer_list:90:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::begin(initializer_list<_Tp>)'
90 | begin(initializer_list<_Tp> __ils) noexcept
| ^~~~~
/usr/include/c++/12.2.1/initializer_list:90:5: note: template argument deduction/substitution failed:
main.cpp:10:25: note: mismatched types 'std::initializer_list<_Tp>' and 'bool*'
10 | std::fill(std::begin(C),std::end(C), 0)
| ~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/range_access.h:52:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.begin()) std::begin(_Container&)'
52 | begin(_Container& __cont) -> decltype(__cont.begin())
| ^~~~~
/usr/include/c++/12.2.1/bits/range_access.h:52:5: note: template argument deduction/substitution failed:
main.cpp:10:25: note: variable-sized array type 'bool [(n + 1)]' is not a valid template argument
10 | std::fill(std::begin(C),std::end(C), 0)
| ~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/range_access.h:63:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.begin()) std::begin(const _Container&)'
63 | begin(const _Container& __cont) -> decltype(__cont.begin())
| ^~~~~
/usr/include/c++/12.2.1/bits/range_access.h:63:5: note: template argument deduction/substitution failed:
main.cpp:10:25: note: variable-sized array type 'bool [(n + 1)]' is not a valid template argument
10 | std::fill(std::begin(C),std::end(C), 0)
| ~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/range_access.h:95:5: note: candidate: 'template<class _Tp, unsigned int _Nm> constexpr _Tp* std::begin(_Tp (&)[_Nm])'
95 | begin(_Tp (&__arr)[_Nm]) noexcept
| ^~~~~
/usr/include/c++/12.2.1/bits/range_access.h:95:5: note: template argument deduction/substitution failed:
main.cpp:10:25: note: variable-sized array type 'int' is not a valid template argument
10 | std::fill(std::begin(C),std::end(C), 0)
| ~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/range_access.h:113:31: note: candidate: 'template<class _Tp> _Tp* std::begin(valarray<_Tp>&)'
113 | template<typename _Tp> _Tp* begin(valarray<_Tp>&) noexcept;
| ^~~~~
/usr/include/c++/12.2.1/bits/range_access.h:113:31: note: template argument deduction/substitution failed:
main.cpp:10:25: note: mismatched types 'std::valarray<_Tp>' and 'bool [(n + 1)]'
10 | std::fill(std::begin(C),std::end(C), 0)
| ~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/range_access.h:114:37: note: candidate: 'template<class _Tp> const _Tp* std::begin(const valarray<_Tp>&)'
114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !