| Problem | ultimateifelse |
|---|---|
| User | yanwen |
| Submission Time | 2026-01-14 16:07:00 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:18:32: error: lvalue required as left operand of assignment
18 | else if(S == "world" && N = 3) {
| ^
ultimateifelse.cpp:21:30: error: lvalue required as left operand of assignment
21 | else if(S == "hmm" && N = 20) {
| ^~
ultimateifelse.cpp:27:14: error: no match for ‘operator==’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
27 | else if(S == N) {
| ~ ^~ ~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from ultimateifelse.cpp:1:
/usr/include/c++/9/bits/regex.h:1026:5: note: candidate: ‘template<cla