foo.cc: In function 'void solve()':
foo.cc:12:5: error: 'array' was not declared in this scope
12 | array<int,2> dir8[] = {
| ^~~~~
foo.cc:2:1: note: 'std::array' is defined in header '<array>'; did you forget to '#include <array>'?
1 | #include<iostream>
+++ |+#include <array>
2 | using namespace std;
foo.cc:12:11: error: expected primary-expression before 'int'
12 | array<int,2> dir8[] = {
| ^~~
foo.cc:23:5: error: 'dp' was not declared in this scope; did you mean 'd'?
23 | dp[a][b][0] = 1;
| ^~
| d
foo.cc:30:29: error: 'dir8' was not declared in this scope
30 | for(auto _: dir8)
| ^~~~
foo.cc:33:31: error: 'y1' was not declared in this scope; did you mean 'x1'?
33 | if(ok(x1, y1))
| ^~
| x1
foo.cc:42:5: error: 'Mint' was not declared in this scope; did you mean 'uint'?
42 | Mint ans = 0;
| ^~~~
| uint
foo.cc:43:27: error: 'ans' was not declared in this scope; did you mean 'abs'?
43 | for(int i=1;i<=k;i++) ans += dp[c][d][i];
| ^~~
| abs
foo.cc:44:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
44 | cout<<ans<<'\n';
| ^~~
| abs
[Hydro](https://hydro.ac)提供评测服务