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_33445377_26227.cpp:41:4: error: stray '\243' in program
    cout<<top<<" ";
    ^
0_0_33445377_26227.cpp:41:4: error: stray '\273' in program
0_0_33445377_26227.cpp: In function 'void topo()':
0_0_33445377_26227.cpp:32:42: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
  priority_queue<int,vector<int> , greater> q;
                                          ^
0_0_33445377_26227.cpp:32:42: error:   expected a type, got 'greater'
0_0_33445377_26227.cpp:32:45: error: invalid type in declaration before ';' token
  priority_queue<int,vector<int> , greater> q;
                                             ^
0_0_33445377_26227.cpp:34:16: error: request for member 'push' in 'q', which is of non-class type 'int'
   if(!in[i]) q.push(i);
                ^
0_0_33445377_26227.cpp:36:11: error: request for member 'empty' in 'q', which is of non-class type 'int'
  while(!q.empty())
           ^
0_0_33445377_26227.cpp:38:15: error: request for member 'tpo' in 'q', which is of non-class type 'int'
   int top = q.tpo(); q.pop() ;
               ^
0_0_33445377_26227.cpp:38:24: error: request for member 'pop' in 'q', which is of non-class type 'int'
   int top = q.tpo(); q.pop() ;
                        ^
0_0_33445377_26227.cpp:42:3: error: expected ';' before '}' token
   } else {
   ^
0_0_33445377_26227.cpp:50:17: error: request for member 'push' in 'q', which is of non-class type 'int'
    if(!in[i]) q.push(i);
                 ^


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-03 08:51:42, Gzip enabled