/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:64:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   64 |         for(int i = 2; i <= 9; i ++) scanf("%d", &ch[i]);
      |                                      ~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'void bfs()':
foo.cc:20:12: warning: 'a1[1]' may be used uninitialized in this function [-Wmaybe-uninitialized]
   20 |     if(a1[1]+a1[5]+a1[9] != 15) return false;
      |        ~~~~^
foo.cc:20:18: warning: 'a1[5]' may be used uninitialized in this function [-Wmaybe-uninitialized]
   20 |     if(a1[1]+a1[5]+a1[9] != 15) return false;
      |              ~~~~^
foo.cc:20:24: warning: 'a1[9]' may be used uninitialized in this function [-Wmaybe-uninitialized]
   20 |     if(a1[1]+a1[5]+a1[9] != 15) return false;
      |                    ~~~~^
foo.cc:21:12: warning: 'a1[7]' may be used uninitialized in this function [-Wmaybe-uninitialized]
   21 |     if(a1[7]+a1[8]+a1[9] != 15) return false;
      |        ~~~~^
foo.cc:21:18: warning: 'a1[8]' may be used uninitialized in this function [-Wmaybe-uninitialized]
   21 |     if(a1[7]+a1[8]+a1[9] != 15) return false;
      |              ~~~~^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 374ms 2.867 MiB
#2 Accepted 363ms 2.902 MiB
#3 Accepted 333ms 2.922 MiB
#4 Accepted 368ms 2.84 MiB
#5 Accepted 338ms 2.867 MiB
#6 Accepted 323ms 2.746 MiB
#7 Accepted 375ms 2.867 MiB
#8 Accepted 390ms 2.867 MiB
#9 Accepted 360ms 2.867 MiB
#10 Accepted 349ms 2.867 MiB

信息

递交者
类型
递交
题目
P1029 晴天小猪历险记之Number
语言
C++
递交时间
2021-12-24 16:23:49
评测时间
2021-12-24 16:23:49
评测机
分数
100
总耗时
3578ms
峰值内存
2.922 MiB