0
Find the error
5 Respuestas
+ 1
code is running better i did not found any error . you can also print direct. ex:cout<<a+b;
+ 5
ClearCutLogic ,
is this a quiz or do you have an issue with this code?
+ 2
ClearCutLogic ,
There are 3 issues that I found in your code:
1. Unused variable "result": The variable `result` is not being used in the code. In C++, the compiler will warn you if you leave a variable without using it once.
2. if(**char o**=="+") {}:You should not specify the type of the variable you want to check condition if the variable is already declared, or even if the variable name does not exist. Instead, you should do something like: if(o== "+") {}.
3. Incorrect syntax for cout ``` cout("WRONG SYNTAX"); ```: Usually, when calling cout, the syntax is like this:
std::cout<<"Something here";
std:: should be called if you don't include `using namespace std;` in the code..
For endline, add an additional <<endl after the string, or use "\n" inside the string.
+ 1
Yeah, you got it right 👍
Thanks
0
It's a issue just find the error