Problem ultimateifelse
User boaznumberd5555
Submission Time 2026-02-03 20:24:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:8:22: error: expected initializer before ‘==’ token
8 | else if(string S == "hello") cout<<"world";
| ^~
ultimateifelse.cpp:8:21: error: expected ‘)’ before ‘==’ token
8 | else if(string S == "hello") cout<<"world";
| ~ ^~~
| )
ultimateifelse.cpp:8:32: error: could not convert ‘S’ from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘bool’
8 | else if(string S == "hello") cout<<"world";
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
ultimateifelse.cpp:9:22: error: expected initializer before ‘==’ token
9 | else if(string S == "world" and N == 3) cout<< "andss";
| ^~
ultimat