foo.cc: In function 'void solve(char*, char*)':
foo.cc:10:2: error: expected ';' before 'if'
if(s[i]=='B')
^~
foo.cc:6:24: warning: unused variable 'a4' [-Wunused-variable]
int a1=0,a2=0,a3=0,a4=0,a5=0,a6=0,a7=0,a8=0,a9=0;
^~
foo.cc:6:29: warning: unused variable 'a5' [-Wunused-variable]
int a1=0,a2=0,a3=0,a4=0,a5=0,a6=0,a7=0,a8=0,a9=0;
^~
foo.cc:6:34: warning: unused variable 'a6' [-Wunused-variable]
int a1=0,a2=0,a3=0,a4=0,a5=0,a6=0,a7=0,a8=0,a9=0;
^~
foo.cc:6:39: warning: unused variable 'a7' [-Wunused-variable]
int a1=0,a2=0,a3=0,a4=0,a5=0,a6=0,a7=0,a8=0,a9=0;
^~
foo.cc:6:44: warning: unused variable 'a8' [-Wunused-variable]
int a1=0,a2=0,a3=0,a4=0,a5=0,a6=0,a7=0,a8=0,a9=0;
^~
foo.cc:6:49: warning: unused variable 'a9' [-Wunused-variable]
int a1=0,a2=0,a3=0,a4=0,a5=0,a6=0,a7=0,a8=0,a9=0;
^~
foo.cc: In function 'int main()':
foo.cc:38:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",s); //s为要处理的加密字符串,答案储存在ans里
~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务