Compile Error
/in/foo.cc: In function 'int minPath(const char**, int, int)': /in/foo.cc:8:25: error: 'i' was not declared in this scope if (*((char*)s + (n-1)*i + m-2) != '1') ^ /in/foo.cc:10:25: error: 'i' was not declared in this scope if (*((char*)s + (n-2)*i + m-1) != '1') ^ /in/foo.cc: In function 'int main()': /in/foo.cc:25:25: error: cannot convert 'char (*)[m]' to 'const char**' for argument '1' to 'int minPath(const char**, int, int)' cout << minPath(s, n, m); ^
信息
- 递交者
- 类型
- 自测
- 题目
- 6 营救公主
- 语言
- C++
- 递交时间
- 2018-12-02 11:46:54
- 评测时间
- 2018-12-02 11:46:57
- 评测机
- 分数
- 0
- 总耗时
- 243ms
- 峰值内存
- 29.438 MiB