QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#156691#7109. Traveling on the Axisucup-team1611#Compile Error//C++142.4kb2023-09-02 14:03:222023-09-02 14:38:20

Details

answer.code: In function ‘void sC()’:
answer.code:17:12: error: ‘array’ was not declared in this scope
   17 |     vector<array<int, 3> > ve(n);
      |            ^~~~~
answer.code:6:1: note: ‘std::array’ is defined in header ‘<array>’; did you forget to ‘#include <array>’?
    5 | #include <cassert>
  +++ |+#include <array>
    6 | 
answer.code:17:24: error: template argument 1 is invalid
   17 |     vector<array<int, 3> > ve(n);
      |                        ^
answer.code:17:24: error: template argument 2 is invalid
answer.code:17:26: error: expected unqualified-id before ‘>’ token
   17 |     vector<array<int, 3> > ve(n);
      |                          ^
answer.code:22:13: error: ‘ve’ was not declared in this scope
   22 |             ve[i] = {0, a};
      |             ^~
answer.code:25:13: error: ‘ve’ was not declared in this scope
   25 |             ve[i] = {_C[s[1]], a, --b};
      |             ^~
answer.code:30:12: error: missing template arguments before ‘vis’
   30 |     vector vis(n, vector<int>(256));
      |            ^~~
answer.code:33:13: error: ‘vis’ was not declared in this scope
   33 |         if (vis[now][val]) {
      |             ^~~
answer.code:37:9: error: ‘vis’ was not declared in this scope
   37 |         vis[now][val] = 1;
      |         ^~~
answer.code:38:17: error: ‘ve’ was not declared in this scope
   38 |         switch (ve[now][0]) {
      |                 ^~