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_32504334_19500.cpp:17:2: error: 'typedef struct round round' redeclared as different kind of symbol
 }round;
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_32504334_19500.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:874:25: note: previous declaration 'double round(double)'
   extern double __cdecl round (double);
                         ^
0_0_32504334_19500.cpp: In function 'void bfs()':
0_0_32504334_19500.cpp:34:13: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Sequence> class std::queue'
  queue<round> que;
             ^
0_0_32504334_19500.cpp:34:13: error:   expected a type, got 'std::round'
0_0_32504334_19500.cpp:34:13: error: template argument 2 is invalid
0_0_32504334_19500.cpp:34:18: error: invalid type in declaration before ';' token
  queue<round> que;
                  ^
0_0_32504334_19500.cpp:35:8: error: expected ';' before 'tmp'
  round tmp;
        ^
0_0_32504334_19500.cpp:35:11: error: statement cannot resolve address of overloaded function
  round tmp;
           ^
0_0_32504334_19500.cpp:36:2: error: 'tmp' was not declared in this scope
  tmp.MP = 100;
  ^
0_0_32504334_19500.cpp:40:6: error: request for member 'push' in 'que', which is of non-class type 'int'
  que.push(tmp);
      ^
0_0_32504334_19500.cpp:42:12: error: request for member 'size' in 'que', which is of non-class type 'int'
  while(que.size()){
            ^
0_0_32504334_19500.cpp:43:13: error: request for member 'front' in 'que', which is of non-class type 'int'
   tmp = que.front();
             ^
0_0_32504334_19500.cpp:44:7: error: request for member 'pop' in 'que', which is of non-class type 'int'
   que.pop();
       ^
0_0_32504334_19500.cpp:45:9: error: expected ';' before 'now'
   round now;
         ^
0_0_32504334_19500.cpp:45:12: error: statement cannot resolve address of overloaded function
   round now;
            ^
0_0_32504334_19500.cpp:51:3: error: 'now' was not declared in this scope
   now.MP = tmp.MP+t;
   ^
0_0_32504334_19500.cpp:55:22: error: request for member 'push' in 'que', which is of non-class type 'int'
   if(now.HP > 0) que.push(now);
                      ^
0_0_32504334_19500.cpp:68:21: error: request for member 'push' in 'que', which is of non-class type 'int'
    if(now.HP>0) que.push(now);
                     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-11 19:45:15, Gzip enabled