What wrong in this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
20th Feb 2020, 5:02 AM
Anuj Raghu
Anuj Raghu - avatar
21 Answers
+ 1
You haven't declared operand. You declared operator.
20th Feb 2020, 5:04 AM
A͢J
A͢J - avatar
+ 4
Line 13 is operator not operand
20th Feb 2020, 5:05 AM
Cmurio
Cmurio - avatar
+ 3
It's @name for example @Anuj Raghu = Anuj Raghu
20th Feb 2020, 5:37 AM
Tanmay Gupta
Tanmay Gupta - avatar
+ 3
In line 13 it is operand not operator
20th Feb 2020, 5:39 AM
Tanmay Gupta
Tanmay Gupta - avatar
+ 3
Hey Anuj Raghu why did you want to tag me? Your question seems already answered.
20th Feb 2020, 6:12 AM
Sonic
Sonic - avatar
+ 3
Mirielle👽 that's true. Either you have to follow the person you are trying to tag or that person needs to be an existing participant in the current thread.
20th Feb 2020, 6:23 AM
Sonic
Sonic - avatar
+ 3
Apart from what I mentioned about the order of the prompt and input it looks OK to me. 'first' and 'second' are the operands, so no issue there.
20th Feb 2020, 7:56 AM
Sonic
Sonic - avatar
+ 2
You need to have the printf in line 8 before the scanf in line 5 and the prompt needs to say 'operator' rather than 'operand' although the order of statements does not matter so much in code playground.
20th Feb 2020, 6:16 AM
Sonic
Sonic - avatar
+ 2
You have used operator word that should not be used . You should use Operator word insted of that
22nd Feb 2020, 5:08 AM
Syed Wasif Shah
Syed Wasif Shah - avatar
+ 1
Sonic
20th Feb 2020, 5:10 AM
Anuj Raghu
Anuj Raghu - avatar
+ 1
@<Sonic>
20th Feb 2020, 5:11 AM
Anuj Raghu
Anuj Raghu - avatar
+ 1
operator is a keyword of c++ . You should declare it as Operator
21st Feb 2020, 4:57 PM
Syed Wasif Shah
Syed Wasif Shah - avatar
0
Thank you guys for helping me specially AJ and Jesus
20th Feb 2020, 5:10 AM
Anuj Raghu
Anuj Raghu - avatar
0
Break function
20th Feb 2020, 12:13 PM
Vikas Chaubey
Vikas Chaubey - avatar
0
You can try again you will get correct answer.
20th Feb 2020, 7:28 PM
Akash
0
its hard
21st Feb 2020, 10:14 PM
Hawaluul Ali
0
<php if(!issue($_SESSION))session_start(); If(isset($_POST'submit3'])){ $application_id=rand(1, 9999); $SESSION['application_id']=4application_I'd; //define a maxim size for the uploaded images I KB define (MAX SIZE"", "100"); I/this function read the extension of the file. It is used to determine if the file is in image by checking the extension. function get extention($str) { $i=strrpos($str, "."); if (!$i) {return";} $1=strlen($str) - i; $ext=substrate($str, $i÷1, $I', : return $ext; } $errors=0; //checks if the form has been submitted //for uploading image $image=$_FILES['image'] [name]; if($image) { $file name =stripslashes($_FILES['image'] ['name']); $extention= get Extention($filename); $extention=strlower($extention); if (($extention!=" jpg") &&($extention"jpeg")&&($extention"png")&&($extention !="gift")) { $_SESSION['errors']=Unknown extention!'; $img=""; } }else{ $size=filesize($_FILES['image'] ['tmp_name']); if ($size>MAX_SIZE*1024) $ SESSION['error']='You have excee
21st Feb 2020, 10:24 PM
Muhammad Bello
Muhammad Bello - avatar
0
not operand
21st Feb 2020, 10:28 PM
Madison
0
Is a software for online payment for secondary school i try my best but is not working, is going to submited on 25/feb
21st Feb 2020, 11:00 PM
Muhammad Bello
Muhammad Bello - avatar
0
Can you plese help me out
21st Feb 2020, 11:01 PM
Muhammad Bello
Muhammad Bello - avatar