记录详情

Compile Error

foo.cc:10:14: error: 'MaxQueue' was not declared in this scope
   10 |     Box data[MaxQueue];
      |              ^~~~~~~~
foo.cc:48:9: error: 'M' was not declared in this scope
   48 | int map[M][N] = {
      |         ^
foo.cc:48:12: error: 'N' was not declared in this scope
   48 | int map[M][N] = {
      |            ^
foo.cc:55:22: error: 'N' was not declared in this scope
   55 | void mappush(int a[][N]) {
      |                      ^
foo.cc:151:2: error: expected '}' at end of input
  151 | }
      |  ^
foo.cc:9:16: note: to match this '{'
    9 |  struct QuType {
      |                ^
foo.cc: In member function 'bool QuType::PushQueue(QuType*&, Box)':
foo.cc:25:19: error: 'MaxQueue' was not declared in this scope
   25 |     if (q->rear ==MaxQueue-1) {
      |                   ^~~~~~~~
foo.cc:29:8: error: 'struct QuType' has no member named 'data'
   29 |     q->data[q->rear] = x;
      |        ^~~~
foo.cc: In member function 'bool QuType::PopQueue(QuType*&, Box&)':
foo.cc:38:12: error: 'struct QuType' has no member named 'data'
   38 |     x = q->data[q->front];
      |            ^~~~
foo.cc: In member function 'void QuType::mappush(...)':
foo.cc:56:29: error: 'M' was not declared in this scope
   56 |         for (int i = 0; i < M; i++) {
      |                             ^
foo.cc:57:37: error: 'N' was not declared in this scope
   57 |                 for (int j = 0; j < N; j++) {
      |                                     ^
foo.cc:58:29: error: 'a' was not declared in this scope
   58 |                         if (a[i][j] == -1) {
      |                             ^
foo.cc:59:33: error: 'ontinue' was not declared in this scope
   59 |                                 ontinue;
      |                                 ^~~~~~~
foo.cc: In member function 'void QuType::printmap(QuType*&)':
foo.cc:89:9: error: 'map' was not declared in this scope
   89 |         map[q->data[k].i][q->data[k].j] = 10;
      |         ^~~
foo.cc:2:1: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
    1 | #include<iostream>
  +++ |+#include <map>
    2 | using namespace std;
foo.cc:89:16: error: 'struct QuType' has no member named 'data'
   89 |         map[q->data[k].i][q->data[k].j] = 10;
      |                ^~~~
foo.cc:89:30: error: 'struct QuType' has no member named 'data'
   89 |         map[q->data[k].i][q->data[k].j] = 10;
      |                              ^~~~
foo.cc:90:16: error: 'struct QuType' has no member named 'data'
   90 |         k = q->data[k].pre;
      |                ^~~~
foo.cc:92:24: error: 'struct QuType' has no member named 'data'
   92 |                 map[q->data[k].i][q->data[k].j] += 4;
      |                        ^~~~
foo.cc:92:38: error: 'struct QuType' has no member named 'data'
   92 |                 map[q->data[k].i][q->data[k].j] += 4;
      |                                      ^~~~
foo.cc:93:24: error: 'struct QuType' has no member named 'data'
   93 |                 k = q->data[k].pre;
      |                        ^~~~
foo.cc:95:16: error: 'struct QuType' has no member named 'data'
   95 |         map[q->data[k + 1].i][q->data[k + 1].j] = -1;
      |                ^~~~
foo.cc:95:34: error: 'struct QuType' has no member named 'data'
   95 |         map[q->data[k + 1].i][q->data[k + 1].j] = -1;
      |                                  ^~~~
foo.cc: In member function 'bool QuType::MgPath(int, int, int, int)':
foo.cc:135:29: error: 'map' was not declared in this scope
  135 |                         if (map[i1][j1] == 0) {
      |                             ^~~
foo.cc:135:29: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
foo.cc: In member function 'int QuType::main()':
foo.cc:148:13: error: 'map' was not declared in this scope
  148 |     mappush(map);
      |             ^~~
foo.cc:148:13: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
foo.cc: At global scope:
foo.cc:151:2: error: expected unqualified-id at end of input
  151 | }
      |  ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
6 营救公主
比赛
2022暑期青少年社团(告别赛)
语言
C++
递交时间
2022-08-21 22:28:49
评测时间
2022-08-21 22:28:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes