#include <iostream> #include <cstdio> #include <cstring> using namespace std; char s[100],*dic[]={"zero","one","two","three","four","five","six","seven","eight","nine"}; int A[5],B[5],ANS_A,ANS_B,ca,cb; bool compare(char *s,char *p){ if(strlen(s)!=strlen(p)) return false; int i;for(i=0;i<strlen(s);++i) if(s[i]!=p[i]) return false;return true; } int convert(char* s){ int i;for(i=0;i<10;++i) if(compare(s,dic[i])) return i; } void convA_B(){ int i;ANS_A=0,ANS_B=0;//全局变量重新声明导致未初始化 for(i=0;i<ca;++i) ANS_A=ANS_A*10+A[i]; for(i=0;i<cb;++i) ANS_B=ANS_B*10+B[i]; } int main(){ char c;int cnt=0,i,j,END=0; while(!END){ c=getchar(); if(c!=' ') s[cnt++]=c; else{ s[cnt++]=' ';s[cnt++]='