Problem | ultimateifelse |
---|---|
User | Pandin |
Submission Time | 2024-06-18 10:47:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:13:16: error: incompatible types in assignment of ‘const char [6]’ to ‘char [1]’
13 | } else if (S = "hello") {
| ^~~~~~~
ultimateifelse.cpp:15:32: error: incompatible types in assignment of ‘bool’ to ‘char [1]’
15 | } else if (S = "world" && N == 3) {
| ^
ultimateifelse.cpp:17:30: error: incompatible types in assignment of ‘bool’ to ‘char [1]’
17 | } else if (S = "hmm" && N == 20) {
| ^~