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:24:1: error: a function-definition is not allowed here before '{' token
24 | {
| ^
foo.cc:48:1: error: expected '}' at end of input
48 | }
| ^
foo.cc:4:1: note: to match this '{'
4 | {
| ^
[Hydro](https://hydro.ac)提供评测服务