0_0_24903611_28893.cpp: In function 'int main()':
0_0_24903611_28893.cpp:9:400: error: expected '}' at end of input
while(1) { a = m / n; b = m % n; if(b == 0) break; m = n; n = b; } return n; } /*int gcd( int a, int b ) { if( b == 0 ) return a; return gcd( b, a % b ); }*/ int main(){ int step; int mod; int a[N]; while(scanf("%d%d",&step,&mod) != EOF) { if(mod == 0) break; int flag= gcd(step,mod); if(flag==1) printf("%10d%10d Good Choice\n",step,mod); else printf("%10d%10d Bad Choice\n",step,mod); cout << endl;
^
0_0_24903611_28893.cpp:9:400: error: expected '}' at end of input
|