Problem childsetter4
User PyAce
Submission Time 2025-06-17 10:13:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

childsetter4.cpp: In function ‘int main()’:
childsetter4.cpp:10:12: error: no match for ‘operator&&’ (operand types are ‘int’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
10 | if (NumOf && Word) {
| ~~~~~ ^~ ~~~~
| | |
| int std::string {aka std::__cxx11::basic_string<char>}
childsetter4.cpp:10:12: note: candidate: ‘operator&&(bool, bool)’ <built-in>
10 | if (NumOf && Word) {
| ~~~~~~^~~~~~~
childsetter4.cpp:10:12: note: no known conversion for argument 2 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘bool’