Problem ultimateifelse
User Craftless
Submission Time 2023-01-24 17:14:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int32_t main()’:
ultimateifelse.cpp:22:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
22 | else if (S == "hello") cout << "world";
| ^~~~~~~
ultimateifelse.cpp:23:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
23 | else if (S == "world" or N == 3) cout << "andss";
| ^~~~~~~
ultimateifelse.cpp:24:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
24 | else if (S == "hmm" or N == 20) cout << "sus";
| ^~~~~
ultimateifelse.cpp:25:16: error: request for member ‘size’ in ‘second’, which is of non-class type ‘long long int’
25 | else if (S.size() > 5) cout << "long";
| ^~~~
ultimateifelse.cpp:26:16: error: request for member ‘size’ in ‘second’, which is of non-class type ‘long lon