Wrong Answer

foo.cc: In function 'int isExist(int*, int, int)':
foo.cc:36:7: warning: statement has no effect [-Wunused-value]
   flag==1;
   ~~~~^~~
foo.cc: In function 'int main()':
foo.cc:62:15: warning: unused variable 'i' [-Wunused-variable]
  int n1,n2,n3,i;
               ^
foo.cc: In function 'int bj(int*, int, int*, int, int*)':
foo.cc:52:3: warning: 'flag' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(flag==0)
   ^~
foo.cc: In function 'int main()':
foo.cc:52:3: warning: 'flag' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(flag==0)
   ^~
foo.cc:51:7: note: 'flag' was declared here
   int flag;
       ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read {1,3,5,7,9,3,13,..., expect {1,3,5,7,9,13,23,33}. 1ms 408.0 KiB
#2 Wrong Answer Read {2,3,4,6,2,3,4,6}, expect {2,3,4,6}. 1ms 404.0 KiB

信息

递交者
类型
递交
题目
P1145 数组模拟集合--并集
语言
C++
递交时间
2021-10-24 19:01:58
评测时间
2021-10-24 19:01:58
评测机
分数
0
总耗时
3ms
峰值内存
408.0 KiB