Problem | yayornay |
---|---|
User | lynovyl |
Submission Time | 2024-06-21 16:01:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
yayornay.cpp: In function ‘int main()’:
yayornay.cpp:4:17: error: no match for ‘operator&&’ (operand types are ‘const char [5]’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
4 | string s="CPIC"&&s="SGIO";
| ~~~~~~^~~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| const char [5]
yayornay.cpp:4:17: note: candidate: ‘operator&&(bool, bool)’ <built-in>
4 | string s="CPIC"&&s="SGIO";
| ~~~~~~^~~
yayornay.cpp:4:17: note: no known conversion for argument 2 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘bool’
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from yayornay.cpp:1:
/usr/include/c++/9/bits/valarray_after.h:415:5: note: candidate: ‘template<class _Dom1, class _Dom2>