Wrong Answer

/in/foo.cc: In function 'void bfs(long long int, long long int*)':
/in/foo.cc:10:32: warning: 'sizeof' on array function parameter 'dis' will return size of 'long long int*' [-Wsizeof-array-argument]
   10 |         memset(dis,0x3f,sizeof dis);
      |                                ^~~
/in/foo.cc:8:20: note: declared here
    8 | void bfs(int x,int dis[])
      |                    ^
/in/foo.cc:10:25: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
   10 |         memset(dis,0x3f,sizeof dis);
      |                         ^~~~~~~~~~
/in/foo.cc:16:30: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |                 for(int i=0;i<g[u].size();i++)
      |                             ~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 4ms 2.691 MiB
#2 Wrong Answer 3ms 2.824 MiB
#3 Wrong Answer 4ms 2.812 MiB
#4 Wrong Answer 3ms 2.598 MiB
#5 Wrong Answer 4ms 2.605 MiB
#6 Wrong Answer 4ms 2.688 MiB
#7 Wrong Answer 4ms 2.641 MiB
#8 Wrong Answer 4ms 2.703 MiB
#9 Wrong Answer 3ms 2.84 MiB
#10 Wrong Answer 3ms 2.77 MiB

信息

递交者
类型
递交
题目
P3023 猫和老鼠202512GESP8级T1
语言
C++
递交时间
2026-01-05 10:57:02
评测时间
2026-01-05 10:57:02
评测机
分数
0
总耗时
39ms
峰值内存
2.84 MiB