记录详情

Compile Error

/in/foo.cc:3:39: error: use of parameter outside function body before ']' token
 int minPath(int n, int m, const char[n][m])
                                       ^
/in/foo.cc:3:42: error: use of parameter outside function body before ']' token
 int minPath(int n, int m, const char[n][m])
                                          ^
/in/foo.cc: In function 'int minPath(...)':
/in/foo.cc:5:5: error: 'n' was not declared in this scope
  if(n < 0 || m < 0)
     ^
/in/foo.cc:5:14: error: 'm' was not declared in this scope
  if(n < 0 || m < 0)
              ^
/in/foo.cc:5:14: note: suggested alternative: 'tm'
  if(n < 0 || m < 0)
              ^
              tm
/in/foo.cc:8:6: error: 's' was not declared in this scope
  if (s[n-1][m-2] != '1')
      ^
/in/foo.cc:8:8: error: 'n' was not declared in this scope
  if (s[n-1][m-2] != '1')
        ^
/in/foo.cc:8:13: error: 'm' was not declared in this scope
  if (s[n-1][m-2] != '1')
             ^
/in/foo.cc:8:13: note: suggested alternative: 'tm'
  if (s[n-1][m-2] != '1')
             ^
             tm
/in/foo.cc:10:6: error: 's' was not declared in this scope
  if (s[n-2][m-1] != '1')
      ^
/in/foo.cc:10:8: error: 'n' was not declared in this scope
  if (s[n-2][m-1] != '1')
        ^
/in/foo.cc:10:13: error: 'm' was not declared in this scope
  if (s[n-2][m-1] != '1')
             ^
/in/foo.cc:10:13: note: suggested alternative: 'tm'
  if (s[n-2][m-1] != '1')
             ^
             tm

信息

递交者
类型
自测
题目
6 营救公主
语言
C++
递交时间
2018-12-02 11:51:33
评测时间
2018-12-02 11:51:33
评测机
分数
0
总耗时
252ms
峰值内存
29.445 MiB