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_13664780_18732.cpp:13:1: error: 'vectror' does not name a type
 vectror < vector<int> > edge;
 ^
0_0_13664780_18732.cpp:14:26: error: two or more data types in declaration of 'type name'
 queue < int, vector<int> greater<int> > q;
                          ^
0_0_13664780_18732.cpp:14:39: error: template argument 2 is invalid
 queue < int, vector<int> greater<int> > q;
                                       ^
0_0_13664780_18732.cpp:14:42: error: invalid type in declaration before ';' token
 queue < int, vector<int> greater<int> > q;
                                          ^
0_0_13664780_18732.cpp: In function 'void solve()':
0_0_13664780_18732.cpp:19:12: error: request for member 'empty' in 'q', which is of non-class type 'int'
  while (!q.empty())
            ^
0_0_13664780_18732.cpp:20:5: error: request for member 'pop' in 'q', which is of non-class type 'int'
   q.pop();
     ^
0_0_13664780_18732.cpp:23:6: error: request for member 'push' in 'q', which is of non-class type 'int'
    q.push(i);
      ^
0_0_13664780_18732.cpp:25:12: error: request for member 'empty' in 'q', which is of non-class type 'int'
  while (!q.empty()) {
            ^
0_0_13664780_18732.cpp:26:15: error: request for member 'top' in 'q', which is of non-class type 'int'
   int tmp = q.top();
               ^
0_0_13664780_18732.cpp:27:5: error: request for member 'pop' in 'q', which is of non-class type 'int'
   q.pop();
     ^
0_0_13664780_18732.cpp:29:28: error: 'edge' was not declared in this scope
   for (int i = 0; i < (int)edge.size(); i++) {
                            ^
0_0_13664780_18732.cpp:33:8: error: request for member 'push' in 'q', which is of non-class type 'int'
      q.push(edge[i][j]);
        ^
0_0_13664780_18732.cpp: In function 'int main()':
0_0_13664780_18732.cpp:44:15: error: 'T' was not declared in this scope
  scanf("%d", &T);
               ^
0_0_13664780_18732.cpp:48:3: error: 'edge' was not declared in this scope
   edge.clear();
   ^


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-12-03 05:57:38, Gzip enabled