程序无法运行,调试显示program received signal SIGFPE
程序无法运行,调试时显示program received signal SIGFPE,arithmetic exception。代码如下
程序代码:
#include <stdio.h> #include <iostream> using namespace std; int main(void) { int m,n,r,max; cin>>m; cin>>n; r=n; for(;;) { if(r=0) break; r=m%n; m=n; n=r; } max=n; cout<<m<<endl; return 0; }