foo.cc: In function 'int main()':
foo.cc:20:7: error: 'a' was not declared in this scope
if(a[j]<a[m])
^
foo.cc:28:7: error: 'a' was not declared in this scope
show(a[k+1]);
^
foo.cc: In function 'void show(int)':
foo.cc:35:10: error: too many arguments to function 'void dan(int)'
dan(a,a1);
^
foo.cc:6:6: note: declared here
void dan(int );
^~~
foo.cc:36:10: error: too many arguments to function 'void dan(int)'
dan(b,b1);
^
foo.cc:6:6: note: declared here
void dan(int );
^~~
foo.cc:37:10: error: too many arguments to function 'void dan(int)'
dan(c,c1);
^
foo.cc:6:6: note: declared here
void dan(int );
^~~
foo.cc: At global scope:
foo.cc:126:1: error: expected declaration before '}' token
}
^
[Hydro](https://hydro.ac)提供评测服务