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
通过程序翻译出来的中间代码
(106) T1 := v * v
(107) T2 := u / T1
(108) T3 := u - T2
应该是
(106) T1 := u / v
(107) T2 := T1 * v
(108) T3 := u - T2
源代码是
int gcd (int u, int v)
{
if (v == 0) return u ;
else return gcd(v,u-u/vv);
}
翻译的时候u-u/vv被翻译成了u/(v*v) ,没有处理优先级。
The text was updated successfully, but these errors were encountered:
通过程序翻译出来的中间代码
(106) T1 := v * v
(107) T2 := u / T1
(108) T3 := u - T2
应该是
(106) T1 := u / v
(107) T2 := T1 * v
(108) T3 := u - T2
源代码是
int gcd (int u, int v)
{
if (v == 0) return u ;
else return gcd(v,u-u/vv);
}
翻译的时候u-u/vv被翻译成了u/(v*v) ,没有处理优先级。
The text was updated successfully, but these errors were encountered: