Problem lazy_robot
User StormyGood
Submission Time 2025-10-16 12:03:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lazy_robot.cpp: In function ‘int main()’:
lazy_robot.cpp:7:10: error: ‘length’ was not declared in this scope
7 | int b = length(a);
| ^~~~~~
lazy_robot.cpp:9:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if (c == "1" || c == "3" || c == "5" || c == "7" || c == "9") cout<<"Odd";
| ^~~
lazy_robot.cpp:9:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if (c == "1" || c == "3" || c == "5" || c == "7" || c == "9") cout<<"Odd";
| ^~~
lazy_robot.cpp:9:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if (c == "1" || c == "3" || c == "5" || c == "7" || c == "9") cout<<"Odd";
| ^~~
lazy_robot.cpp:9:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if (c == "1" || c == "3