Wrong Answer

foo.cc: In function 'void fun(int, int)':
foo.cc:22:5: warning: unused variable 'i' [-Wunused-variable]
 int i;
     ^
foo.cc: In function 'int main()':
foo.cc:33:9: warning: unused variable 'i' [-Wunused-variable]
 int k=0,i,j,a;
         ^
foo.cc:33:11: warning: unused variable 'j' [-Wunused-variable]
 int k=0,i,j,a;
           ^
foo.cc:34:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&n);
 ~~~~~^~~~~~~~~
foo.cc:35:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&a);
 ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1, expect {3}. 1ms 404.0 KiB
#2 Wrong Answer Read 1, expect {2,3,4,6}. 1ms 404.0 KiB

信息

递交者
类型
递交
题目
P1146 数组模拟集合--交集
语言
C++
递交时间
2021-10-31 10:36:02
评测时间
2021-10-31 10:36:02
评测机
分数
0
总耗时
3ms
峰值内存
404.0 KiB