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

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:7:13: error: ‘n’ was not declared in this scope
7 | else if(n == 9) cout<<9;
| ^
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:8:40: error: ‘world’ was not declared i