Borderou de evaluare (job #3041242)
Utilizator | Negret Bianca Bianca2507 | Data | 31 martie 2023 10:41:50 |
---|---|---|---|
Problema | Reteta | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:41:30: error: no match for 'operator&' (operand types are 'std::bitset<25>' and 'std::bitset<20>')
41 | if((reuniune & r[elem]).count()==0)
| ~~~~~~~~ ^ ~~~~~~~
| | |
| bitset<25> bitset<20>
In file included from main.cpp:3:
/usr/include/c++/12.2.1/bitset:1435:5: note: candidate: 'template<long unsigned int _Nb> std::bitset<_Nb> std::operator&(const bitset<_Nb>&, const bitset<_Nb>&)'
1435 | operator&(const bitset<_Nb>& __x, const bitset<_Nb>& __y) _GLIBCXX_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/12.2.1/bitset:1435:5: note: template argument deduction/substitution failed:
main.cpp:41:38: note: deduced conflicting values for non-type parameter '_Nb' ('25' and '20')
41 | if((reuniune & r[elem]).count()==0)
| ^
In file included from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/ios_base.h:83:3: note: candidate: 'constexpr std::_Ios_Fmtflags std::operator&(_Ios_Fmtflags, _Ios_Fmtflags)'
83 | operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/ios_base.h:83:27: note: no known conversion for argument 1 from 'std::bitset<25>' to 'std::_Ios_Fmtflags'
83 | operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/ios_base.h:126:3: note: candidate: 'constexpr std::_Ios_Openmode std::operator&(_Ios_Openmode, _Ios_Openmode)'
126 | operator&(_Ios_Openmode __a, _Ios_Openmode __b)
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/ios_base.h:126:27: note: no known conversion for argument 1 from 'std::bitset<25>' to 'std::_Ios_Openmode'
126 | operator&(_Ios_Openmode __a, _Ios_Openmode __b)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/ios_base.h:166:3: note: candidate: 'constexpr std::_Ios_Iostate std::operator&(_Ios_Iostate, _Ios_Iostate)'
166 | operator&(_Ios_Iostate __a, _Ios_Iostate __b)
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/ios_base.h:166:26: note: no known conversion for argument 1 from 'std::bitset<25>' to 'std::_Ios_Iostate'
166 | operator&(_Ios_Iostate __a, _Ios_Iostate __b)
| ~~~~~~~~~~~~~^~~
main.cpp:43:40: error: no match for 'operator|' (operand types are 'std::bitset<25>' and 'std::bitset<20>')
43 | reuniune=(reuniune | r[elem]);
| ~~~~~~~~ ^ ~~~~~~~
| | |
| bitset<25> bitset<20>
/usr/include/c++/12.2.1/bitset:1444:5: note: candidate: 'template<long unsigned int _Nb> std::bitset<_Nb> std::operator|(const bitset<_Nb>&, const bitset<_Nb>&)'
1444 | operator|(const bitset<_Nb>& __x, const bitset<_Nb>& __y) _GLIBCXX_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/12.2.1/bitset:1444:5: note: template argument deduction/substitution failed:
main.cpp:43:48: note: deduced conflicting values for non-type parameter '_Nb' ('25' and '20')
43 | reuniune=(reuniune | r[elem]);
| ^
/usr/include/c++/12.2.1/bits/ios_base.h:87:3: note: candidate: 'constexpr std::_Ios_Fmtflags std::operator|(_Ios_Fmtflags, _Ios_Fmtflags)'
87 | operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !