Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

到底为什么是compile error 求大神

Posted by baiyu928 at 2018-07-13 18:13:07
#include <iostream>
using namespace std;
int main()
{
   string Haab[]={"pop", "no", "zip", "zotz", "tzec", "xul", "yoxkin", "mol", "chen", "yax", "zac", "ceh", "mac", "kankin", "muan", "pax", "koyab", "cumhu","uayet"};
   string Tzolkin[]={"imix", "ik", "akbal", "kan", "chicchan", "cimi", "manik", "lamat", "muluk", "ok", "chuen", "eb", "ben", "ix", "mem","cib", "caban","eznab", "canac", "ahau"};
   int n,m,data,year,sum,year2,spare,shuzi,zimu;
   string month;
   char s;
   cin>>m;
   cout<<m<<endl;
   while(m--){
     cin>>data>>s>>month>>year;
     for(n=0;n<19;n++){
       if(month==Haab[n]){
           sum=year*365+n*20+data;
           break;
       }
     }
     year2=sum/260;
     spare=sum-260*year2;
     shuzi=spare%13+1;
     zimu=spare%20;
     cout<<shuzi<<' '<<Tzolkin[zimu]<<' '<<year2<<endl;
   }
   return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator