Questions tagged [operand]
177 questions
0
votes
1 answer
Operand should contain 1 column(s) Database error
Hi guys I know this has been answered on here in a number of threads, but I just can't figure out what the error is in my query. I get the error 'Operand should contain 1 column(s)'. Looks like a monster of a query I'm building here, and any help…

gabz
- 51
- 8
0
votes
1 answer
Invalid combination of opcode and operands FPC
I'm trying to implement a function StrPos in assembler. I have 64-bit processor and FPC. When I'm compiling this shows the following errors:
function StrPos(Str1, Str2: PChar): LONGINT; assembler;
asm
PUSH DS
CLD
…

Mila
- 3
- 2
0
votes
2 answers
How can I override the behavior of the division operator?
When dividing in JS you get Infinity if you divide by zero, I want to change that behavior by returning undefined so I can identify a real Infinity vs. an error result.
Assuming that writing the next line calls some math or build-in function for…

Avishay
- 305
- 1
- 11
0
votes
1 answer
lvalue required as left operando of assignment
my code is having a bug here and i don't know how to fix it, so if you could please help me that'd be great.
Here's my code:
unsigned reverse(unsigned value)
{
unsigned res;
int l_mask, r_mask;
l_mask = 0x00000002, r_mask = 0x40000000;
…
0
votes
2 answers
Type Error: Unsupported operand types Int and NoneType
Hey guys I am working on a python program and I keep getting errors returned from the loop which is supposed to just reprompt the user to enter a number. The problem I am having is that it keeps returning a nonetype which cannot be used to operate…

GrapeSoda3
- 583
- 1
- 7
- 17
0
votes
0 answers
What does the ampersand do in a print statement?
& = Check both statements.
&& = Check one statement.
I understand the use of the ampersand as an operand but I have no idea how or why it would be used in a print statement.
Take Java for example:
System.out.println(10 & 7);
This outputs 2. Why…

undefined
- 469
- 2
- 10
- 23
0
votes
1 answer
fuzzylite operands number error . logical operator expects two operands, but found <3>
in fuzzylite API , when i define a rule with more than 2 operator(i am not sure), i receive below error :
03-06 17:19:49.155: W/System.err(712): java.lang.RuntimeException: [syntax error] logical operator expects two operands, but found…

user3362240
- 13
- 3
0
votes
2 answers
Bad operand type for binary operator &&
I'm getting an error for the string of code below:
int status = readInt("Status: ");
double income = readDouble("Please enter your taxable income: ");
println("You owe: ");
if ((status = 0) && (income <= 9075))
It is giving me a…

user3361101
- 1
- 1
0
votes
3 answers
What does <> mean in PicBasic Pro (or similar language)
I'm trying to understand the line if variable <> 1 then.
I'm having a guess, based on a similar question for a different language, that <> is an alternative way of saying != which means not equal to.
Am I right in saying this?

Azaxa
- 49
- 7
0
votes
2 answers
boost::shared_ptr operand mismatch for 'xadd'
I am using code::blocks and boost. I can compile using boost::regex.
When I use boost::shared_ptr and compile my project. I am getting this compilation errors:
...\Local\Temp\ccviNbsT.s|30|Error: operand size mismatch for xadd'|
…
0
votes
1 answer
Election Query Hopefully last one
This query is working fine:
select rc.[race number],
max(case when seqnum = 1 then [candidate num] end) as Winner,
max(case when seqnum = 1 then Votes end) as WinningVotes,
max(case when seqnum = 1 then party end) as WinningParty,
…

user3242661
- 89
- 4
- 12
0
votes
0 answers
syntax error: operand expected (error token is "- ")
Could anyone point out what's wrong with the below line from a bash script I'm using?
if [ "$(( $(date +"%s")-$(stat -c "%Y" $SENDDIR/$NIGHTLY_FILE) ))" -gt "3600" ]; then
I receive the error noted in the subject line.
I had copied the script from…

PeteJ
- 1
- 3
0
votes
2 answers
Operand should contain 1 column(s) error
I have an sql query that was returning some incorrect results due to product id's being duplicated for linked products, so i added the following to the end of my query expecting it to only take the first instance of any product id:
AND…

Steve Price
- 600
- 10
- 28
0
votes
3 answers
MPI operands in C error
I am trying to create an mpi program that will run my bellard function to calculate pi to ten thousand decimal places. When i compile the program i get the following error:
error: invalid operands to binary + (have ‘float *’ and ‘float *’)
The line…

user2838928
- 57
- 1
- 8
0
votes
1 answer
Purpose of Particular Java Variable
I'm taking an AP Computer Science course and have a brief question about the purpose of a particular variable in Java program. Below is my own slight adaption of a certain program in my textbook...
public class Nineteen {
public static void…

Eric
- 99
- 2
- 9