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_24363762_16886.cpp: In function 'void parse()':
0_0_24363762_16886.cpp:30:20: error: 'x' was not declared in this scope
    if(!p) g1 = loc(x, y),p = 1;
                    ^
0_0_24363762_16886.cpp:30:23: error: 'y' was not declared in this scope
    if(!p) g1 = loc(x, y),p = 1;
                       ^
0_0_24363762_16886.cpp:31:18: error: 'x' was not declared in this scope
    else g2 = loc(x, y);
                  ^
0_0_24363762_16886.cpp:31:21: error: 'y' was not declared in this scope
    else g2 = loc(x, y);
                     ^
0_0_24363762_16886.cpp:33:31: error: 'x' was not declared in this scope
   if(mp[i][j] == 'G') t = loc(x, y);
                               ^
0_0_24363762_16886.cpp:33:34: error: 'y' was not declared in this scope
   if(mp[i][j] == 'G') t = loc(x, y);
                                  ^
0_0_24363762_16886.cpp:34:31: error: 'x' was not declared in this scope
   if(mp[i][j] == 'M') s = loc(x, y);
                               ^
0_0_24363762_16886.cpp:34:34: error: 'y' was not declared in this scope
   if(mp[i][j] == 'M') s = loc(x, y);
                                  ^
0_0_24363762_16886.cpp: In function 'int bfs()':
0_0_24363762_16886.cpp:45:8: error: no match for 'operator!' (operand type is 'std::queue<loc>')
  while(!Qs && !Qt)
        ^
0_0_24363762_16886.cpp:45:8: note: candidate is:
0_0_24363762_16886.cpp:45:8: note: operator!(bool) <built-in>
0_0_24363762_16886.cpp:45:8: note:   no known conversion for argument 1 from 'std::queue<loc>' to 'bool'
0_0_24363762_16886.cpp:45:15: error: no match for 'operator!' (operand type is 'std::queue<loc>')
  while(!Qs && !Qt)
               ^
0_0_24363762_16886.cpp:45:15: note: candidate is:
0_0_24363762_16886.cpp:45:15: note: operator!(bool) <built-in>
0_0_24363762_16886.cpp:45:15: note:   no known conversion for argument 1 from 'std::queue<loc>' to 'bool'
0_0_24363762_16886.cpp:47:16: error: 'class std::queue<loc>' has no member named 'top'
   int cur = Qs.top(); Qs.pop();
                ^
0_0_24363762_16886.cpp: In function 'int main()':
0_0_24363762_16886.cpp:54:15: error: 'T' was not declared in this scope
  scanf("%d", &T);
               ^
0_0_24363762_16886.cpp:60:18: error: no match for 'operator[]' (operand types are 'loc' and 'int')
    scanf("%s", &s[i] + 1);
                  ^
0_0_24363762_16886.cpp:61:5: error: no match for 'operator[]' (operand types are 'loc' and 'int')
    s[i][m+1] = s[i][0] = 'X';
     ^
0_0_24363762_16886.cpp:61:17: error: no match for 'operator[]' (operand types are 'loc' and 'int')
    s[i][m+1] = s[i][0] = 'X';
                 ^
0_0_24363762_16886.cpp:64:3: error: 'ans' was not declared in this scope
   ans = bfs();
   ^


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-07-05 19:59:17, Gzip enabled