Problem ultimateifelse
User yanwen
Submission Time 2026-01-14 16:02:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:27:12: error: could not convert ‘S.std::__cxx11::basic_string<char>::operator=(((int)((char)N)))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
27 | else if(S = N) {
| ~~^~~
| |
| std::__cxx11::basic_string<char>
ultimateifelse.cpp:28:18: error: expected ‘;’ before ‘}’ token
28 | cout << "equal"
| ^
| ;
29 | }
| ~
ultimateifelse.cpp:30:15: error: expected primary-expression before ‘%’ token
30 | else if(N == %2) {
| ^
ultimateifelse.cpp:31:34: error: expected ‘;’ before ‘}’ token
31 | cout << "222222222222222222222"
| ^
| ;
32 | }
| ~