记录详情

Compile Error

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)提供评测服务

信息

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