Bacri
#1
//$res is boolean
if ($res)
echo(“true\n”);
else
echo(“false\n”);
// When echoing true/false, i got this error.
Standard Output Stream:
true
Failure
Found:Nothing
Expected:Nothing
If i try to output anything else except true/false, like “tru” i will get
Found:tru
Expected:true
but if it’s “true” or “false” i get Nothing.
Did i missinterpret problem, or is it a bug?
THX
You don’t need to add an extra \n with echo, right?
Bacri
#3
I add it by habit, but same thing happens without it.
If i do just echo(“true”); i also got Nothing.
Input
A single line: expression.
Output
A single line: true if each kind of bracket (), [] and {} in expression are paired correctly, false otherwise.
Also tried echo (‘true’); Same thing.
Bacri
#5
Resolved.
I copied the code and used “restore default code option”, and pasted code again. Works fine now.
Thx 