F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_19825231_17504.cpp:1:442: fatal error: GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/iostream>in: Invalid argument
 #include<iostream>int main(){    int s,m,i;    while(scanf("%d%d",&s,&m)!=EOF)    {        int a[100001]={0},seed=0;        while(!a[seed])        {            a[seed]=1;            seed=(seed+s)%m;        }        for(i=0;i<m;i++)           {           if(a[i]==0)               {              printf("%10d%10d    Bad Choice\n\n",s,m);break;           }        }        if(i==m) printf("%10d%10d    Good Choice\n\n",s,m);    }    return 0;}
                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
compilation terminated.


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-17 02:49:35, Gzip enabled