/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int mov(int, int)':
/in/foo.cc:5:10: error: 'a' was not declared in this scope
  if ((h==a)&&(v==b))
          ^
/in/foo.cc:5:18: error: 'b' was not declared in this scope
  if ((h==a)&&(v==b))
                  ^
/in/foo.cc:7:3: error: 'nfr' was not declared in this scope
   nfr++;
   ^~~
/in/foo.cc:8:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   return;
   ^~~~~~
/in/foo.cc:11:7: error: 'board' was not declared in this scope
   if (board[h+1])
       ^~~~~
/in/foo.cc:22:15: error: return-statement with no value, in function returning 'int' [-fpermissive]
          else return;
               ^~~~~~
/in/foo.cc:23:2: error: return-statement with no value, in function returning 'int' [-fpermissive]
  return;
  ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:29:13: error: 'c' was not declared in this scope
  cin>>a>>b>>c>>d;
             ^
/in/foo.cc:29:16: error: 'd' was not declared in this scope
  cin>>a>>b>>c>>d;
                ^
/in/foo.cc:28:10: warning: unused variable 'n' [-Wunused-variable]
  int a,b,n,m,i,j,nfr=0; // nfr denotes the number of routes
          ^
/in/foo.cc:28:12: warning: unused variable 'm' [-Wunused-variable]
  int a,b,n,m,i,j,nfr=0; // nfr denotes the number of routes
            ^

信息

递交者
类型
递交
题目
P1121 马拦过河卒
语言
C++
递交时间
2017-11-24 17:16:01
评测时间
2017-11-24 17:16:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes