记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
自测
题目
P1041 函数2(字符串1)
语言
C++
递交时间
2021-11-07 10:21:11
评测时间
2021-11-07 10:21:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes