F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39075596_29873.cpp:1:10: error: 'bits' was not declared in this scope
    1 | include <bits/stdc++.h>
      |          ^~~~
0_0_39075596_29873.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
    1 | include <bits/stdc++.h>
      |               ^~~~
      |               std
0_0_39075596_29873.cpp:1:10: error: 'bits' was not declared in this scope
    1 | include <bits/stdc++.h>
      |          ^~~~
0_0_39075596_29873.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
    1 | include <bits/stdc++.h>
      |               ^~~~
      |               std
0_0_39075596_29873.cpp:1:10: error: 'bits' was not declared in this scope
    1 | include <bits/stdc++.h>
      |          ^~~~
0_0_39075596_29873.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
    1 | include <bits/stdc++.h>
      |               ^~~~
      |               std
0_0_39075596_29873.cpp:1:10: error: 'bits' was not declared in this scope
    1 | include <bits/stdc++.h>
      |          ^~~~
0_0_39075596_29873.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
    1 | include <bits/stdc++.h>
      |               ^~~~
      |               std
0_0_39075596_29873.cpp:1:10: error: 'bits' was not declared in this scope
    1 | include <bits/stdc++.h>
      |          ^~~~
0_0_39075596_29873.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
    1 | include <bits/stdc++.h>
      |               ^~~~
      |               std
0_0_39075596_29873.cpp:1:10: error: 'bits' was not declared in this scope
    1 | include <bits/stdc++.h>
      |          ^~~~
0_0_39075596_29873.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
    1 | include <bits/stdc++.h>
      |               ^~~~
      |               std
0_0_39075596_29873.cpp:1:10: error: 'bits' was not declared in this scope
    1 | include <bits/stdc++.h>
      |          ^~~~
0_0_39075596_29873.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
    1 | include <bits/stdc++.h>
      |               ^~~~
      |               std
0_0_39075596_29873.cpp:1:10: error: 'bits' was not declared in this scope
    1 | include <bits/stdc++.h>
      |          ^~~~
0_0_39075596_29873.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
    1 | include <bits/stdc++.h>
      |               ^~~~
      |               std
0_0_39075596_29873.cpp:1:10: error: 'bits' was not declared in this scope
    1 | include <bits/stdc++.h>
      |          ^~~~
0_0_39075596_29873.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
    1 | include <bits/stdc++.h>
      |               ^~~~
      |               std
0_0_39075596_29873.cpp:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
0_0_39075596_29873.cpp:3:1: error: 'string' does not name a type
    3 | string s[15];
      | ^~~~~~
0_0_39075596_29873.cpp:5:7: error: 'pair' was not declared in this scope
    5 | deque<pair<int, int> > q;
      |       ^~~~
0_0_39075596_29873.cpp:5:7: error: 'pair' was not declared in this scope
0_0_39075596_29873.cpp:5:7: error: 'pair' was not declared in this scope
0_0_39075596_29873.cpp:5:7: error: 'pair' was not declared in this scope
0_0_39075596_29873.cpp:5:7: error: 'pair' was not declared in this scope
0_0_39075596_29873.cpp:5:7: error: 'pair' was not declared in this scope
0_0_39075596_29873.cpp:5:7: error: 'pair' was not declared in this scope
0_0_39075596_29873.cpp:5:7: error: 'pair' was not declared in this scope
0_0_39075596_29873.cpp:5:7: error: 'pair' was not declared in this scope
0_0_39075596_29873.cpp:5:1: error: 'deque' does not name a type
    5 | deque<pair<int, int> > q;
      | ^~~~~
0_0_39075596_29873.cpp: In function 'void push(int, int, int)':
0_0_39075596_29873.cpp:7:66: error: 's' was not declared in this scope
    7 |     if (X >= 0 && X < n && Y >= 0 && Y < m && cnt[X][Y] == -1 && s[X][Y] != 'D')
      |                                                                  ^
0_0_39075596_29873.cpp:8:26: error: 'q' was not declared in this scope
    8 |         cnt[X][Y] = nex, q.push_back({ X, Y });
      |                          ^
0_0_39075596_29873.cpp: In function 'void bfs(int, int)':
0_0_39075596_29873.cpp:11:5: error: 'memset' was not declared in this scope
   11 |     memset(cnt, -1, sizeof cnt);
      |     ^~~~~~
0_0_39075596_29873.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | include <bits/stdc++.h>
0_0_39075596_29873.cpp:13:5: error: 'q' was not declared in this scope
   13 |     q = { { x, y } };
      |     ^
0_0_39075596_29873.cpp:17:13: error: 's' was not declared in this scope
   17 |         if (s[X][Y] == 'G' || s[X][Y] == 'Y')
      |             ^
0_0_39075596_29873.cpp:17:18: error: 'Y' was not declared in this scope
   17 |         if (s[X][Y] == 'G' || s[X][Y] == 'Y')
      |                  ^
0_0_39075596_29873.cpp:19:26: error: 'Y' was not declared in this scope
   19 |         int nex = cnt[X][Y] + 1;
      |                          ^
0_0_39075596_29873.cpp: At global scope:
0_0_39075596_29873.cpp:26:1: error: 'vector' does not name a type
   26 | vector<int> v;
      | ^~~~~~
0_0_39075596_29873.cpp: In function 'bool check(int)':
0_0_39075596_29873.cpp:29:5: error: 'memset' was not declared in this scope
   29 |     memset(dp, 0x3f, sizeof dp);
      |     ^~~~~~
0_0_39075596_29873.cpp:29:5: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_39075596_29873.cpp:30:25: error: 'v' was not declared in this scope
   30 |     for (int i = 0; i < v.size(); i++) dp[1 << i][i] = f[15][i];
      |                         ^
0_0_39075596_29873.cpp:31:31: error: 'v' was not declared in this scope
   31 |     for (int i = 0; i < (1 << v.size()); i++) {
      |                               ^
0_0_39075596_29873.cpp: In function 'int main()':
0_0_39075596_29873.cpp:46:12: error: 'cin' was not declared in this scope
   46 |     while (cin >> n >> m, n) {
      |            ^~~
0_0_39075596_29873.cpp:47:44: error: 's' was not declared in this scope
   47 |         for (int i = 0; i < n; i++) cin >> s[i];
      |                                            ^
0_0_39075596_29873.cpp:48:9: error: 'v' was not declared in this scope
   48 |         v.clear();
      |         ^
0_0_39075596_29873.cpp:53:21: error: 's' was not declared in this scope
   53 |                 if (s[i][j] == 'G') {
      |                     ^
0_0_39075596_29873.cpp:63:13: error: 'puts' was not declared in this scope
   63 |             puts("0");
      |             ^~~~
0_0_39075596_29873.cpp:66:9: error: 'memset' was not declared in this scope
   66 |         memset(f, 0x3f, sizeof f);
      |         ^~~~~~
0_0_39075596_29873.cpp:66:9: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_39075596_29873.cpp:69:21: error: 's' was not declared in this scope
   69 |                 if (s[i][j] == 'G' || s[i][j] == 'Y' || s[i][j] == 'F')
      |                     ^
0_0_39075596_29873.cpp:80:13: error: 'puts' was not declared in this scope
   80 |             puts("-1");
      |             ^~~~
0_0_39075596_29873.cpp:82:13: error: 'cout' was not declared in this scope
   82 |             cout << l << endl;
      |             ^~~~
0_0_39075596_29873.cpp:82:26: error: 'endl' was not declared in this scope
   82 |             cout << l << endl;
      |                          ^~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 02:32:11, Gzip enabled