Problem | ultimateifelse |
---|---|
User | Benroy |
Submission Time | 2023-01-11 17:40:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:19:13: error: could not convert ‘S.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"world") != 0) && (N == 3)))))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
19 | else if(S = "world" && N ==3){
| ~~^~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
ultimateifelse.cpp:22:14: error: could not convert ‘S.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"hmm") != 0) || (N == 20)))))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
22 | else if (S = "hmm" || N ==20){
| ~~^~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
ultimateifelse.cpp:25:11: error: ‘s’ was not declared in this scope
25 | else if(s.length > 5){
| ^