/ JoyAc /

记录详情

Compile Error

foo.cc:6:43: error: expected '}' before ';' token
    6 | int dir[4][2] = {{1,2},{2,1},{2,-1},{1,-2};
      |                 ~                         ^
foo.cc: In function 'void dfs(int, int)':
foo.cc:13:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |      for(int i = 0;i < way.size();i ++) {
      |                    ~~^~~~~~~~~~~~
foo.cc:15:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   15 |          if(i < way.size() - 1) cout << "-";
      |             ~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1045 骑士遍历
语言
C++
递交时间
2022-02-23 15:04:09
评测时间
2022-02-23 15:04:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes