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_33289657_21355.cpp:43:22: error: conflicting declaration 'std::priority_queue<node> q'
 priority_queue<node> q;
                      ^
0_0_33289657_21355.cpp:9:16: note: previous declaration as 'int q [22]'
 int m[22][22], q[22], n, low, up;
                ^
0_0_33289657_21355.cpp: In function 'int get_lb(node)':
0_0_33289657_21355.cpp:68:15: error: invalid types 'int[int]' for array subscript
   if (p.vsip[i] == 0 && min1 > m[i][p.st])
               ^
0_0_33289657_21355.cpp:74:15: error: invalid types 'int[int]' for array subscript
   if (p.vsip[i] == 0 && min2 > m[p.ed][i])
               ^
0_0_33289657_21355.cpp:80:15: error: invalid types 'int[int]' for array subscript
   if (p.vsip[i] == 0)
               ^
0_0_33289657_21355.cpp: In function 'int solve()':
0_0_33289657_21355.cpp:127:14: error: invalid types 'int[int]' for array subscript
   star.vsip[i] = 0;
              ^
0_0_33289657_21355.cpp:128:13: error: invalid types 'int[int]' for array subscript
  star.vsip[1] = 1;
             ^
0_0_33289657_21355.cpp:132:4: error: request for member 'push' in 'q', which is of non-class type 'int [22]'
  q.push(star);
    ^
0_0_33289657_21355.cpp:133:12: error: request for member 'empty' in 'q', which is of non-class type 'int [22]'
  while (!q.empty())
            ^
0_0_33289657_21355.cpp:135:16: error: request for member 'top' in 'q', which is of non-class type 'int [22]'
   node tmp = q.top();
                ^
0_0_33289657_21355.cpp:136:5: error: request for member 'top' in 'q', which is of non-class type 'int [22]'
   q.top();
     ^
0_0_33289657_21355.cpp:142:19: error: invalid types 'int[int]' for array subscript
     if (tmp.vsip[i] == 0)
                   ^
0_0_33289657_21355.cpp:149:19: error: request for member 'top' in 'q', which is of non-class type 'int [22]'
    node judge = q.top();
                   ^
0_0_33289657_21355.cpp:165:18: error: invalid types 'int[int]' for array subscript
    if (tmp.vsip[i] == 0)
                  ^
0_0_33289657_21355.cpp:172:17: error: invalid types 'int[int]' for array subscript
      next.vsip[j] = tmp.vsip[j];
                 ^
0_0_33289657_21355.cpp:172:31: error: invalid types 'int[int]' for array subscript
      next.vsip[j] = tmp.vsip[j];
                               ^
0_0_33289657_21355.cpp:176:7: error: request for member 'push' in 'q', which is of non-class type 'int [22]'
     q.push(next);
       ^


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-22 22:05:13, Gzip enabled