foo.cc: In function 'int main()':
foo.cc:54:6: error: invalid conversion from 'int' to 'int*' [-fpermissive]
54 | mai(a,b);
| ^
| |
| int
foo.cc:54:9: error: too few arguments to function 'int mai(int*, int, int, int)'
54 | mai(a,b);
| ^
foo.cc:3:5: note: declared here
3 | int mai(int a[105], int n,int k,int b) {
| ^~~
foo.cc:55:6: error: invalid conversion from 'int' to 'int*' [-fpermissive]
55 | man(c,d);
| ^
| |
| int
foo.cc:55:9: error: too few arguments to function 'int man(int*, int, int, int)'
55 | man(c,d);
| ^
foo.cc:26:5: note: declared here
26 | int man(int a[105], int n,int k,int b) {
| ^~~
[Hydro](https://hydro.ac)提供评测服务