Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:7:2: warning: ‘nt’ is used uninitialized [-Wuninitialized]
    7 | n=nt;
      | ~^~~
foo.cc:5:15: note: ‘nt’ was declared here
    5 | int n,m,j1,j2,nt,nt1;
      |               ^~
foo.cc:8:2: warning: ‘nt1’ is used uninitialized [-Wuninitialized]
    8 | n=nt1;
      | ~^~~~
foo.cc:5:18: note: ‘nt1’ was declared here
    5 | int n,m,j1,j2,nt,nt1;
      |                  ^~~
foo.cc:9:9: warning: ‘j1’ is used uninitialized [-Wuninitialized]
    9 | while(j1!=0)
      |       ~~^~~
foo.cc:5:9: note: ‘j1’ was declared here
    5 | int n,m,j1,j2,nt,nt1;
      |         ^~
foo.cc:14:9: warning: ‘j2’ is used uninitialized [-Wuninitialized]
   14 | while(j2!=0)
      |       ~~^~~
foo.cc:5:12: note: ‘j2’ was declared here
    5 | int n,m,j1,j2,nt,nt1;
      |            ^~
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 30286. 2ms 504.0 KiB
#2 Wrong Answer Read -114957832, expect 27941. 3ms 320.0 KiB
#3 Wrong Answer Read -62166200, expect 25620. 3ms 320.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 536.0 KiB
#6 Accepted 2ms 320.0 KiB
#7 Wrong Answer Read -102240232, expect 0. 2ms 536.0 KiB
#8 Accepted 2ms 520.0 KiB
#9 Accepted 2ms 532.0 KiB
#10 Accepted 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P2705 最近的数字
语言
C++
递交时间
2024-07-21 09:39:00
评测时间
2024-07-21 09:39:00
评测机
分数
60
总耗时
27ms
峰值内存
536.0 KiB