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_14264906_14161.cpp:24:8: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Sequence> class std::queue'
 queue<Y>q;
        ^
0_0_14264906_14161.cpp:24:8: error:   expected a type, got 'Y'
0_0_14264906_14161.cpp:24:8: error: template argument 2 is invalid
0_0_14264906_14161.cpp:24:10: error: invalid type in declaration before ';' token
 queue<Y>q;
          ^
0_0_14264906_14161.cpp: In function 'void add(int, int, int)':
0_0_14264906_14161.cpp:31:5: error: expected ';' before 'tx'
   Y tx;
     ^
0_0_14264906_14161.cpp:32:3: error: 'tx' was not declared in this scope
   tx.x=x;
   ^
0_0_14264906_14161.cpp:36:5: error: request for member 'push' in 'q', which is of non-class type 'int'
   q.push(tx);
     ^
0_0_14264906_14161.cpp: In function 'int main()':
0_0_14264906_14161.cpp:46:12: error: request for member 'empty' in 'q', which is of non-class type 'int'
   while(!q.empty())q.pop();
            ^
0_0_14264906_14161.cpp:46:22: error: request for member 'pop' in 'q', which is of non-class type 'int'
   while(!q.empty())q.pop();
                      ^
0_0_14264906_14161.cpp:57:12: error: request for member 'front' in 'q', which is of non-class type 'int'
    while(q.front().layer == T)
            ^
0_0_14264906_14161.cpp:59:7: error: expected ';' before 'u'
     Y u;
       ^
0_0_14264906_14161.cpp:60:5: error: 'u' was not declared in this scope
     u = q.front();
     ^
0_0_14264906_14161.cpp:60:11: error: request for member 'front' in 'q', which is of non-class type 'int'
     u = q.front();
           ^
0_0_14264906_14161.cpp:61:7: error: request for member 'pop' in 'q', which is of non-class type 'int'
     q.pop();
       ^
0_0_14264906_14161.cpp:63:23: error: 'ty' was not declared in this scope
     if(tx<1 || tx>r|| ty<1 || ty>c)continue;
                       ^
0_0_14264906_14161.cpp:64:14: error: 'ty' was not declared in this scope
     if(a[tx][ty]>=1)a[tx][ty]++;
              ^
0_0_14264906_14161.cpp:70:8: error: request for member 'push' in 'q', which is of non-class type 'int'
      q.push(u);
        ^


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-01 11:07:31, Gzip enabled