for online judge. i get cpmpile error and judge says asm is undefined keyword.
I coded & compiled it with Borland C++.
I will be very pleased if anyone tells me how to write that part in
visual studio.
thanks a lot !

-- ali arman
CODE:
int checkParity(int n)
{
int i,count = 0;
for(i=0;i<s;i++)
{
asm {
shl n,1;
jc Label1;
}
val='0';
goto skip;
Label1:
val='1';
count++;
skip:
}
return count;
}