Problem duckwander
User zsinfo2010
Submission Time 2023-11-09 15:30:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckwander.cpp: In function ‘int32_t main()’:
duckwander.cpp:11:9: error: could not convert ‘s.std::__cxx11::basic_string<char>::operator=(((const char*)"UP"))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
11 | if (s = "UP"){
| ~~^~~~~~
| |
| std::__cxx11::basic_string<char>
duckwander.cpp:13:16: error: could not convert ‘s.std::__cxx11::basic_string<char>::operator=(((const char*)"DOWN"))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
13 | } else if (s = "DOWN") {
| ~~^~~~~~~~
| |
| std::__cxx11::basic_string<char>
duckwander.cpp:15:16: error: could not convert ‘s.std::__cxx11::basic_string<char>::operator=(((const char*)"RIGHT"))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
15 | } else if (s = "RIGHT") {
| ~~^~~~~~~~~
| |