Wrong Answer

foo.cc: In function 'int Setlnter(int*, int*, int, int)':
foo.cc:39:19: warning: statement has no effect [-Wunused-value]
   39 |                 w == n[k];
      |                 ~~^~~~~~~
foo.cc: In function 'int main()':
foo.cc:10:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   10 |     scanf("%d %d %d", &n1, &n2, &n3);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:15:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   15 |         scanf("%d", &a1[i]);
      |         ~~~~~^~~~~~~~~~~~~~
foo.cc:19:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   19 |         scanf("%d", &a2[i]);
      |         ~~~~~^~~~~~~~~~~~~~
foo.cc:23:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   23 |         scanf("%d", &a3[i]);
      |         ~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'int Setlnter(int*, int*, int, int)':
foo.cc:42:12: warning: 'w' is used uninitialized in this function [-Wuninitialized]
   42 |     return w;
      |            ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 4ms 384.0 KiB
#2 Wrong Answer Standard answer longer than user output. 2ms 640.0 KiB
#3 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#4 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#5 Wrong Answer Standard answer longer than user output. 2ms 512.0 KiB

信息

递交者
类型
递交
题目
P1055 A10-4 集合的交集
语言
C++
递交时间
2021-12-09 14:38:02
评测时间
2021-12-09 14:38:02
评测机
分数
0
总耗时
15ms
峰值内存
640.0 KiB