foo.cc:31:6: error: redefinition of 'bool f'
31 | bool f;
| ^
foo.cc:6:6: note: 'bool f' previously declared here
6 | bool f;
| ^
foo.cc:32:6: error: redefinition of 'char am(char, int, int)'
32 | char am(char b,int k,int c){
| ^~
foo.cc:7:6: note: 'char am(char, int, int)' previously defined here
7 | char am(char b,int k,int c){
| ^~
foo.cc:38:6: error: redefinition of 'void hy1()'
38 | void hy1(){
| ^~~
foo.cc:13:6: note: 'void hy1()' previously defined here
13 | void hy1(){
| ^~~
foo.cc:48:5: error: redefinition of 'int main()'
48 | int main(){
| ^~~~
foo.cc:23:5: note: 'int main()' previously defined here
23 | int main(){
| ^~~~
foo.cc: In function 'int main()':
foo.cc:49:17: error: 's1' was not declared in this scope; did you mean 'y1'?
49 | cin>>n>>s1>>s2>>s3;
| ^~
| y1
foo.cc:49:21: error: 's2' was not declared in this scope; did you mean 's'?
49 | cin>>n>>s1>>s2>>s3;
| ^~
| s
foo.cc:49:25: error: 's3' was not declared in this scope; did you mean 's'?
49 | cin>>n>>s1>>s2>>s3;
| ^~
| s
[Hydro](https://hydro.ac)提供评测服务