Problem ultimateifelse
User Jiajing
Submission Time 2026-09-12 19:01:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:17:16: error: unable to find string literal operator ‘operator""and’ with ‘const char [6]’, ‘long unsigned int’ arguments
17 | else if(S=="world"and n==3){
| ^~~~~~~~~~
ultimateifelse.cpp:17:26: error: expected ‘)’ before ‘n’
17 | else if(S=="world"and n==3){
| ~ ^~
| )
ultimateifelse.cpp:20:16: error: unable to find string literal operator ‘operator""or’ with ‘const char [4]’, ‘long unsigned int’ arguments
20 | else if(S=="hmm"or n==20){
| ^~~~~~~
ultimateifelse.cpp:20:23: error: expected ‘)’ before ‘n’
20 | else if(S=="hmm"or n==20){
| ~ ^~
| )
ultimateifelse.cpp:27:14: error: no match for ‘operator<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘const char [6]