记录详情

Compile Error

foo.cc: In function 'void solve()':
foo.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>n>>m>>a>>b>>c>>d>>k;
      |     ^~~
foo.cc:10:5: error: 'array' was not declared in this scope
   10 |     array<int,2> dir8[] = {
      |     ^~~~~
foo.cc:10:11: error: expected primary-expression before 'int'
   10 |     array<int,2> dir8[] = {
      |           ^~~
foo.cc:21:5: error: 'dp' was not declared in this scope; did you mean 'd'?
   21 |     dp[a][b][0] = 1;
      |     ^~
      |     d
foo.cc:28:29: error: 'dir8' was not declared in this scope
   28 |                 for(auto _: dir8)
      |                             ^~~~
foo.cc:31:31: error: 'y1' was not declared in this scope; did you mean 'x1'?
   31 |                     if(ok(x1, y1))
      |                               ^~
      |                               x1
foo.cc:40:5: error: 'Mint' was not declared in this scope; did you mean 'int'?
   40 |     Mint ans = 0;
      |     ^~~~
      |     int
foo.cc:41:27: error: 'ans' was not declared in this scope
   41 |     for(int i=1;i<=k;i++) ans += dp[c][d][i];
      |                           ^~~
foo.cc:42:5: error: 'cout' was not declared in this scope
   42 |     cout<<ans<<'\n';
      |     ^~~~
foo.cc:42:11: error: 'ans' was not declared in this scope
   42 |     cout<<ans<<'\n';
      |           ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1345 1D 象棋
语言
C++
递交时间
2022-08-08 16:15:09
评测时间
2022-08-08 16:15:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes