Compile Error

foo.cc: In function 'void jiaoji(int*, int*, int, int)':
foo.cc:37:1: error: expected ';' before numeric constant
 2
 ^
foo.cc:46:1: warning: statement has no effect [-Wunused-value]
 11
 ^~
foo.cc: In function 'int main()':
foo.cc:115:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&n);
 ~~~~~^~~~~~~~~
foo.cc:117:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&a[i]);
 ~~~~~^~~~~~~~~~~~
foo.cc:119:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&m);
 ~~~~~^~~~~~~~~
foo.cc:121:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&b[i]);
 ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1146 数组模拟集合--交集
语言
C++
递交时间
2021-10-25 12:39:45
评测时间
2021-10-25 12:39:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes