记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:63:9: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   63 |  Output(a, na);
      |         ^
      |         |
      |         int
foo.cc:4:17: note:   initializing argument 1 of 'void Output(int*, int)'
    4 | void Output(int a[], int n)
      |             ~~~~^~~
foo.cc:64:9: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   64 |  Output(b, nb);
      |         ^
      |         |
      |         int
foo.cc:4:17: note:   initializing argument 1 of 'void Output(int*, int)'
    4 | void Output(int a[], int n)
      |             ~~~~^~~
foo.cc:66:16: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   66 |  nc = UnionSet(a,na, b,nb, c);
      |                ^
      |                |
      |                int
foo.cc:45:18: note:   initializing argument 1 of 'int UnionSet(int*, int, int*, int, int*)'
   45 | int UnionSet(int a[],int na, int b[],int nb, int c[])
      |              ~~~~^~~
foo.cc:66:22: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   66 |  nc = UnionSet(a,na, b,nb, c);
      |                      ^
      |                      |
      |                      int
foo.cc:45:34: note:   initializing argument 3 of 'int UnionSet(int*, int, int*, int, int*)'
   45 | int UnionSet(int a[],int na, int b[],int nb, int c[])
      |                              ~~~~^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
2-3 参赛人数
比赛
2022暑期青少年社团(入门赛)
语言
C++
递交时间
2022-07-28 21:16:29
评测时间
2022-07-28 21:16:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes