/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:22:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   22 | scanf("%d",&miao[1][i][j]);
      | ~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:20:23: warning: iteration 369999 invokes undefined behavior [-Waggressive-loop-optimizations]
   20 | { FOR(i,1,370000) k[i]=0;
      |                   ~~~~^~
foo.cc:5:33: note: within this loop
    5 | #define FOR(x,y,z) for(int x=y;x<=z;x++)
......
   20 | { FOR(i,1,370000) k[i]=0;
      |       ~~~~~~~~~~                 
foo.cc:20:3: note: in expansion of macro 'FOR'
   20 | { FOR(i,1,370000) k[i]=0;
      |   ^~~
foo.cc:27:23: warning: iteration 8 invokes undefined behavior [-Waggressive-loop-optimizations]
   27 | FOR(i,1,9) if(d==ans[i]) {printf("0\n");rbt=1;}
      |                  ~~~~~^
foo.cc:5:33: note: within this loop
    5 | #define FOR(x,y,z) for(int x=y;x<=z;x++)
......
   27 | FOR(i,1,9) if(d==ans[i]) {printf("0\n");rbt=1;}
      |     ~~~~~                        
foo.cc:27:1: note: in expansion of macro 'FOR'
   27 | FOR(i,1,9) if(d==ans[i]) {printf("0\n");rbt=1;}
      | ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 868ms 5.617 MiB
#2 Accepted 1050ms 7.617 MiB
#3 Accepted 781ms 7.492 MiB
#4 Accepted 828ms 6.367 MiB
#5 Accepted 825ms 6.992 MiB
#6 Accepted 845ms 6.117 MiB
#7 Accepted 952ms 6.992 MiB
#8 Accepted 1336ms 8.379 MiB
#9 Accepted 1062ms 7.617 MiB
#10 Accepted 675ms 5.492 MiB

信息

递交者
类型
递交
题目
P1029 晴天小猪历险记之Number
语言
C++
递交时间
2021-12-22 19:45:58
评测时间
2021-12-22 19:45:58
评测机
分数
100
总耗时
9227ms
峰值内存
8.379 MiB