/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'state readInput()':
/in/foo.cc:46:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   46 |     for(int j = 0; j < s.size(); j++) {
      |                    ~~^~~~~~~~~~
In file included from /usr/include/c++/12/cassert:44,
                 from /in/foo.cc:7:
/in/foo.cc: In function 'void solve()':
/in/foo.cc:123:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  123 |             assert(i == buf.size());
      |                    ~~^~~~~~~~~~~~~
/in/foo.cc: In function 'void dfs(state&, int, int)':
/in/foo.cc:85:32: warning: 'zy' may be used uninitialized [-Wmaybe-uninitialized]
   85 |         int nx = zx+dir[i][0], ny = zy+dir[i][1];
      |                                ^~
/in/foo.cc:77:13: note: 'zy' was declared here
   77 |     int zx, zy, zp;
      |             ^~
/in/foo.cc:85:13: warning: 'zx' may be used uninitialized [-Wmaybe-uninitialized]
   85 |         int nx = zx+dir[i][0], ny = zy+dir[i][1];
      |             ^~
/in/foo.cc:77:9: note: 'zx' was declared here
   77 |     int zx, zy, zp;
      |         ^~
# 状态 耗时 内存占用
#1 Accepted 4ms 2.055 MiB
#2 Accepted 4ms 2.055 MiB
#3 Accepted 4ms 2.062 MiB
#4 Accepted 4ms 2.066 MiB
#5 Accepted 5ms 2.055 MiB
#6 Accepted 5ms 2.047 MiB
#7 Accepted 4ms 2.051 MiB
#8 Accepted 4ms 2.059 MiB

信息

递交者
类型
递交
题目
P1360 八数码问题
语言
C++
递交时间
2025-05-31 12:48:11
评测时间
2025-05-31 12:48:11
评测机
分数
100
总耗时
37ms
峰值内存
2.066 MiB