:

Subtraction and multiplication

Added by: ~kamsuri, 2016 IX 03

Added by: ~kamsuri, 2016 IX 03

typedef ttmath::Int<TTMATH_BITS(384)> Int;
int main()
{
Int t,o=0,z=0,x;
Int p;
//this segment is giving errors
p=z-o;
if(p<0)
p*=-1;
//segmen ends

//and in the below code p==1 is also giving errors
if(p==1&&z!=0&&o!=0)
cout<<"YES\n";
}

can u please help me with this?

Added by: tomek, 2016 IX 03

What kind of errors? For me that code is compiled correctly either with gcc and with clang.