You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int static inline quot( int x, int y ) {
if( x == 0 || y == 0 )
return 0;
if( x > y )
return x%y ? 0 : x/y;
else
return y%x ? 0 : y/x;
}
int main() {
quot(2,2);
}
Instead, I had to rewrite using this:
int static inline quot( int x, int y ) { return ( x == 0 || y == 0 ) ? 0 : (( x > y ) ? ( x%y ? 0 : x/y ) : ( y%x ? 0 : y/x )); }
This generate an unhandled errror:
Instead, I had to rewrite using this:
Here is the error message:
The text was updated successfully, but these errors were encountered: